mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-12 09:35:14 +02:00
add start/stopEmbeddedMedia API methods for controlling playback of video/audio/iframes
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user