•  » Extensions
  •  » video.js resolution selector

#1 2023-11-22 19:06:28

marfig
Member
2013-12-12
48

video.js resolution selector

Hello,
there is a Resolution module switch on VideoJS plugin config page, but it does not work in my case. It means, when switched on, it automatically gets switched off when page reloads.
I suppose it should enable resolution selector in the gallery, means based on my connectivity I can choose the best bitrate. Is my understanding correct? Is there any wiki, which describes what's needed? How it should work?

Thanks
Martin

Offline

 

#2 2023-11-29 21:42:01

Christian Girstmair
Member
Austria
2023-05-24
16

Re: video.js resolution selector

I also recently added videos to my site and first looked into video.js. But as time went on, more and more problems came.

Then I switched to embedded videos -
https://piwigo.org/ext/extension_view.php?eid=136

It's a detour via YouTube, but in my opinion it works best and cleanest. Of course, you can assign a non-public area to the videos on YT so that they can only be seen on your page. If you then, for example, deactivate all functions on YT, it's almost! as if you were hosting it yourself.


And also a little tip that I had previously solved in an incredibly complicated way, but it is so much easier (well I really didn't have that on my radar ;D). It's about the "problem" of portrait and landscape format - you can solve it using CSS like this:
@media (orientation: portrait) {
      iframe {
          Aspect ratio: 9 / 16;
      }
}
@media (orientation: landscape) {
      iframe {
          Aspect ratio: 16/9;
      }
}

In addition, the plugin does not recognize the short videos, but this can also be easily solved by just copying the video ID and remove the "shorts" from the url.

Last edited by Christian Girstmair (2023-11-29 22:01:33)

Offline

 
  •  » Extensions
  •  » video.js resolution selector

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact