gajus/youtube-player

Volume changed event

Closed this issue · 2 comments

4www commented

hi!

it seems that an onVolumeChange event can be attached to the player
see here https://github.com/videojs/videojs-youtube/blob/master/src/Youtube.js#L235
and here http://jsbin.com/ravucixoca/3/edit?html,console,output

I can't succeed doing player.on('onVolumeChange', this.handleVolumeChange)

any idea what I could do?

Thanks!

gajus commented

It should be a simple change to the codebase if only the event name is missing.

Great. It returns an object like this

{volume: 82.6923076923077, muted: false}

http://jsbin.com/werasumaqo/edit?html,js,output