Hi,

How could I define events for a player? I tried to use the field "Additional Flashvars" in the Configuration section of a player but unsuccessfully.

I tried to insert the following code in the "Additional Flashvars" field:

onMute="function(event){console.log(this.getMute())}", onReady="function(){console.log('player ready!')}"

Could you please advice what is the correct process of defining events for a player? Thank you very much in advance.

Regards
George Baev

Comments

JW Player’s picture

Hi George,

Unfortunately at this time the events can only be added on the jwplayer tag in your post body as the XML config files don't support them.

An example would be:

[jwplayer|file=path/to/file.mp4|onMute=function(event){console.log(this.getMute())}|onReady=function(){console.log('player ready')}]

Thanks.