Add support for changing isMuted and isPlaying.
PlasmaPower opened this issue · 2 comments
PlasmaPower commented
Currently, changing isMuted
and isPlaying
have no effect. This means there is no good way to mute or pause the player.
Edit: For future visitors, it would appear I am supposed to use delegate-as
to do this.
PlasmaPower commented
I'm working on making a PR to fix this now.
oskarrough commented
Thank you, as of 0.5.1 it now works properly. Check the demo http://ember-youtube.surge.sh and readme for examples.
What you need to do is target the emberYoutube
component. To do that, first expose it:
then call the appropriate methods:
and call send
, pause
to control playback.