Jump to content

Theme video should default to playing in "cover" aspect ratio mode


Recommended Posts

Posted

I think the theme video should default to playing in "cover" aspect ratio mode, or just give a option in settings.

Changes to "playbackmanager.js":

...
player.play(streamInfo, signal).then(
  function () {
    
    if (item.ExtraType === "ThemeVideo") player.setAspectRatio("cover"); // Play theme video with "cover" aspect ratio mode.
    
    ("Audio" !== item.MediaType &&
      playOptions.fullscreen &&
      !player.isExternalPlayer) ||
      _loading.default.hide()
 ...
Posted
...
player.play(streamInfo, signal).then(
  function () {
    
    if (item.ExtraType === "ThemeVideo") {
      player.setAspectRatio("cover"); // Play theme video with "cover" aspect ratio mode.
    } else {
      player.setAspectRatio(null);
    }
    
    ("Audio" !== item.MediaType &&
      playOptions.fullscreen &&
      !player.isExternalPlayer) ||
      _loading.default.hide()
 ...

 

Posted

HI, yes it makes sense. Thanks.

Posted
On 10/3/2025 at 5:51 PM, UnkNow404 said:
...
player.play(streamInfo, signal).then(
  function () {
    
    if (item.ExtraType === "ThemeVideo") {
      player.setAspectRatio("cover"); // Play theme video with "cover" aspect ratio mode.
    } else if (item.ExtraType === "Video") {
      player.setAspectRatio(null);
    }
    
    ("Audio" !== item.MediaType &&
      playOptions.fullscreen &&
      !player.isExternalPlayer) ||
      _loading.default.hide()
 ...

 

 

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...