6. Extras
Controlling the embedded iframe player via postMessage events
Vidzflow embedded videos allow the integrator to control various operations of the video using postMessage
functionality.
Play
var iframe = document.querySelector('iframe')
iframe.contentWindow.postMessage("playerPlay", "*")
Code above will trigger play of the video.
Pause
var iframe = document.querySelector('iframe')
iframe.contentWindow.postMessage("playerPause", "*")
Code above will trigger pause of the video.
Last updated