Jump to content

Two videoosd views in the web client?


Protected
Go to solution Solved by Luke,

Recommended Posts

Protected

Just wanted to confirm this is by design. Is it normal to have two distinct videoosd views in the web client containing the same UI structure for controlling the video player? One of them seems to be displayed when I play the video using the local interface, and the other when I play the video using remote control. After each of them is used for the first time they both stay in the DOM, hidden. But there's only ever one htmlvideoplayer!

I'm trying to figure out an issue wherein after a video is initiated by remote control, sometimes the first pause and/or unpause will not be reported to the server, and I'm wondering if this might be because something or another is being put in the wrong node tree.

(Take the second paragraph with a grain of salt for now; it might well be caused by my own module, though I can't as of yet see how.)

Edited by Protected
Link to comment
Share on other sites

Protected

This is not the source of my issue unfortunately; I tagged the videoosd views with different attributes and tracked clicks on them on my end, but during the same playback session, clicks on the same videoosd view will first not report playbackprogress for pause, then it will ("onOsdClick playPause" will be logged into the console in both cases). So it could be an issue in my server plugin, or in emby's own client-side code.

Edited by Protected
Link to comment
Share on other sites

  • Solution

Hi, as you navigate back and forth, it's normal that a certain number of views will be retained and reused if you go back into them.

So rule of thumb is make sure all of your view related operations are scoped to the view element.

Link to comment
Share on other sites

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...