I’m working on a side project (http://ma.pe) and I want to add the ability to play/pause/mute/change volume for the embedded streams from within my own UI.
If I run Chrome with -disable-web-security which disables cross origin checking I can solve it by document.querySelector('iframe').contentWindow.player.setMuted(true)
. But obviously doing that isn’t a solution for users of the site.
So I’m wondering if there are any plans for a JavaScript API for embedded streams similar to https://developers.google.com/youtube/iframe_api_reference to allow for greater control.
Cheers