Loading
Issue #3638960: Add temporary fix for modal video playback (autoplay on open, stop on close)
The Video.js doesn't control playback: Closing the dialog doesn't stop the video and the native "autoplay" attribute applies on page load, while the dialog is still closed.
- Add the "videojs/dialog.playback" library (attached by the videojs:dialog component): Pauses playback on dialog close and starts it on dialog open, if the player has "data-dialog-autoplay" (incl. consent-blocked sources).
- The formatters replace the native "autoplay" with "data-dialog-autoplay" for "Open in dialog (Video.js)".
Temporary workaround for https://github.com/videojs/video.js/issues/9562
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Related to #3638960