new
improved
Interactive Video 1.4.2
Added
📢 Interaction type:
Video Track
(paid): currently being tested, with this extension, you can set up a multi-video activity or provide alternative videos (e.g., dubbed versions).Updated
- Player improvement #1: allowing multiple instances on the same page. Videos of the same type (e.g., YouTube, Vimeo, etc.) can be initialized on the same page, provided the player nodes have unique IDs.
- Player improvement #2: ThegetInfo(URL, node)method allows simple initialization of the video into the specific node and returns video information such as name, duration, and poster image.
- Player improvement #3: Better error handling when the player is no longer active (destroyed).
- Player improvement #4:iv:playerDestroyedis available on all players.
- Player improvement #5: new events:iv:playerStart(triggered after first play),iv:playerStarted(triggered after first play codes are complete),iv:playerReload(triggered after a new player replaces the current player).
- Player improvement #6: Interaction type plugins can now use thesetPlayermethod to switch players.
- Interaction type class now has a mainproperty that can be used to check if the current video is the main video (in a situation where there might be multiple videos, such as in Video Track extension).
- Interaction type plugins can now listen to the window event closemodal, which is posted when the player modal on the course page is closed.
- 100ms is added to ResizeObservers to avoid executing the observing function too frequently.
- Reset the interaction cache on every annotationupdatedevent to make sure interaction is refreshed.
- 'Last watched point' is no longer updated on every pause. Instead, the point is saved only when the user leaves the page (unloads the page and switches tabs). The change does not apply to the mobile app and embed mode.
- DOM search improvement.
Fixed
- In some non-standard themes, the modal backdrop was not hidden/removed after the video modal was closed.