Panopto videos can not be played inside Virtual Tour

Description

Acceptance Criteria

Background

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.

Environment

None

Acceptance Criteria

None

Activity

Show:
Thomas Marstrander
January 7, 2021, 10:51 AM

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.

Pål Jørgensen
January 7, 2021, 2:52 PM
  • Fix is Released everywhere

  • Left a comment on the forum thread

Done

Assignee

Thomas Marstrander

Reporter

Thomas Marstrander

Labels

None

Funding

None

Code reviewer

None

Released

None

Time tracking

0m

Time remaining

0m

Fix versions

None

Sprint

None

Priority

Highest