You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have multiple buttons that show videos on the same location in the page. To do this I keep an array of node subtrees of each player and I'm removing (with element.remove()) and adding back subtrees (with parent.appendChild()) to the main DOM. If visible video is playing and I remove it then append another one, then remove it and re-append the first one, controls of the first one are duplicated, but this happen only when using the PlyrLayout layout.
In prod I'm using Plyr (and my subtrees moving mechanics works without any problems) and I'm trying to move to Vidstack, so this bug is a blocker for me. Thanks!
Current Behavior:
I have multiple buttons that show videos on the same location in the page. To do this I keep an array of node subtrees of each player and I'm removing (with element.remove()) and adding back subtrees (with parent.appendChild()) to the main DOM. If visible video is playing and I remove it then append another one, then remove it and re-append the first one, controls of the first one are duplicated, but this happen only when using the PlyrLayout layout.
In prod I'm using Plyr (and my subtrees moving mechanics works without any problems) and I'm trying to move to Vidstack, so this bug is a blocker for me. Thanks!
Could be related to #1191 but I don't think so.
Expected Behavior:
No duplication of the controls when adding and removing node subtrees of players.
Steps To Reproduce:
Code
Set the two buttons'
data-src
to two different and accessible video sources then load the page and follow these stepsVideo 1
buttonVideo 2
buttonVideo 1
buttonVideo 2
buttonVideo 1
button (now there's at least two sets of player controls)Environment:
Anything Else?
I'm using the
<video>
tag because in production my site need to work without JS and the first video is already in the page, not like in my example.The text was updated successfully, but these errors were encountered: