add start/stopEmbeddedMedia API methods for controlling playback of video/audio/iframes

This commit is contained in:
Hakim El Hattab committed 2023-08-25 08:51:52 +02:00
1 parent edf6638065
commit 680cf5edb8
5 files changed
+8 -4

No files matched your search

+4
View File
@@ -2705,6 +2705,10 @@ export default function( revealElement, options ) {
loadSlide: slideContent.load.bind( slideContent ),
unloadSlide: slideContent.unload.bind( slideContent ),
// Media playback
startEmbeddedContent: () => slideContent.startEmbeddedContent( currentSlide ),
stopEmbeddedContent: () => slideContent.stopEmbeddedContent( currentSlide, { unloadIframes: false } ),
// Preview management
showPreview,
hidePreview: closeOverlay,