Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Html5 Video - Full Screen Aspect Ratio

Html5 Video - Full Screen Aspect Ratio

Scheduled Pinned Locked Moved General Discussion
12 Posts 3 Posters 5.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mariusjopenM
    mariusjopenM
    mariusjopen
    Global Moderator
    wrote on last edited by
    #2

    Hi @sebastianpetrov

    for all the 3 questions I cannot really help.

    You can edit with CSS the behavior of HTML5 videos. Even the aspect ratio.
    With jQuery you could trigger the fullscreen button.

    I think it is not that difficult. I did something similar once. There are pretty good tutorials online to do this.

    Sorry I cannot help you further. If you have a more specific problem, when you are working on that solution – I am happy to assist.

    Many wishes!

    Marius

    www.mariusjopen.world

    1 Reply Last reply
    0
    • S
      S
      sebastianpetrov
      wrote on last edited by
      #3

      Hi @mariusjopen

      Ok, thank you :)

      1 Reply Last reply
      0
      • H
        H
        heberbrandao
        wrote on last edited by
        #4

        @sebastianpetrov I am also facing the same issue on my website. Did you manage to find a solution for this?

        Usually I have videos on 2.35:1 and whenever I set them in fullscreen, they are somehow cropped. I lose most of the details on both left and right sides.

        S 1 Reply Last reply
        0
        • mariusjopenM
          mariusjopenM
          mariusjopen
          Global Moderator
          wrote on last edited by
          #5

          Dear @heberbrandao
          can you show us a link?

          Best!

          Marius

          www.mariusjopen.world

          1 Reply Last reply
          0
          • H heberbrandao

            @sebastianpetrov I am also facing the same issue on my website. Did you manage to find a solution for this?

            Usually I have videos on 2.35:1 and whenever I set them in fullscreen, they are somehow cropped. I lose most of the details on both left and right sides.

            S
            S
            sebastianpetrov
            wrote on last edited by
            #6

            @heberbrandao No, I did a bit of research as Marius suggested, but I couldn't really figure it out. Would be awesome if this was built into an update of lay theme!

            1 Reply Last reply
            1
            • H
              H
              heberbrandao
              wrote on last edited by
              #7

              @mariusjopen, here is an example of the website I am building:
              http://andreszardenings.com/nahe-shortfilm/.

              In this page the video, is shown with an aspect ratio of 2.35:1, as I said before.

              But when I make it fullscreen, somehow the code cuts the right and left sides and we miss most of the details.
              I've been trying to fix it for a week now, but no luck with that.

              1 Reply Last reply
              1
              • mariusjopenM
                mariusjopenM
                mariusjopen
                Global Moderator
                wrote on last edited by
                #8

                Dear @sebastianpetrov

                ok, I can see what you mean.

                Try to add this into your CUSTOM CSS code:

                .html5video video {
                    object-fit: contain;
                }
                

                Berst!

                Marius

                www.mariusjopen.world

                S 1 Reply Last reply
                2
                • mariusjopenM mariusjopen

                  Dear @sebastianpetrov

                  ok, I can see what you mean.

                  Try to add this into your CUSTOM CSS code:

                  .html5video video {
                      object-fit: contain;
                  }
                  

                  Berst!

                  Marius

                  S
                  S
                  sebastianpetrov
                  wrote on last edited by
                  #9

                  @mariusjopen said in Html5 Video - Full Screen Aspect Ratio:

                  .html5video video {
                  object-fit: contain;
                  }

                  That did it for me! Thank you :)

                  1 Reply Last reply
                  0
                  • mariusjopenM
                    mariusjopenM
                    mariusjopen
                    Global Moderator
                    wrote on last edited by
                    #10

                    Dear @sebastianpetrov
                    Ah great! Happy to hear!

                    Marius

                    www.mariusjopen.world

                    1 Reply Last reply
                    0
                    • H
                      H
                      heberbrandao
                      wrote on last edited by heberbrandao
                      #11

                      @mariusjopen said in Html5 Video - Full Screen Aspect Ratio:

                      .html5video video {
                      object-fit: contain;
                      }

                      Also worked magically for me!
                      Thanks!

                      1 Reply Last reply
                      0
                      • mariusjopenM
                        mariusjopenM
                        mariusjopen
                        Global Moderator
                        wrote on last edited by
                        #12

                        Perfect! Happy to hear!

                        www.mariusjopen.world

                        1 Reply Last reply
                        0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        Online Users
                        K
                        kp-hb
                        Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                        laytheme.com
                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Search