vue-youtube-embed icon indicating copy to clipboard operation
vue-youtube-embed copied to clipboard

onPlaybackRateChange

Open edellaq opened this issue 8 years ago • 0 comments

Hi, I'm struggling with the palyback rate change. I get the available rates from the player.getAvailablePlaybackRates() function, but when i set e.g. player.setPlaybackRate(0.5), it doesn't change. I use a radio button list to select the various rates, and I have to click on the radio button twice, to have the Playback rate updated... maybe it's asynchronous?

my question: I read about the onPlaybackRateChange event, but I don't actually know how/where to define the event function in the component... has to be a method? or an external function? or passed in the events{} object as a prop in the HTML tag? I'm a bit confused... thanks in advance whoever will help.

edellaq avatar Oct 19 '17 11:10 edellaq