When you have two Panopto videos inside a virtual tour scene, and play one, then the other, they must play properly
Answer https://h5p.org/comment/39184#comment-39184 when fixed and released
In Virtual Tour, if you have two videos on a scene, then play 1, then the other, the second video is immediately paused after it is played, so it is unusable. Reproducible at https://ntnu.h5p.com/content/1291213621244138707.
See: https://h5p.org/comment/39184#comment-39184 for full context.
This is caused by an issue in the Panopto embed API where if there is multiple videos using the embed API the events from one of the players is emitted to all of the players. In Virtual Tour we have logic that ensures that only one video/audio is playing at the same time, so when it sees that both videos are trying to play, it pauses the video immediately. But since every time you press play, a play event is sent to all videos, we always think that both videos are playing, and thus pause them making the second video unplayable.
I’ve reached out to the Panopto guys with the problem, waiting to hear back.
I’ve also added a hack that should work around this problem.
Fix is Released everywhere
Left a comment on the forum thread