Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Cannot add event listeners?


Hi, I just started working with jwplayer, but I am having trouble adding any event listeners to my player, but have no ideal what i am doing wrong... I cannot see any of the following methods on the player:
player.addControllerListener(EVENT,myFunction);
player.addModelListener(EVENT,myFunction);
player.addViewListener(EVENT,myFunction);

The only method there is 'removeEventListener', but this is kind of useless as I can't add any!

You can see a screenshot to show the lack of these methods here:
http://postimg.org/image/w9ewfq5hv/

Any help much appreciated!

3 Community Answers

mathew.a.corley

User  
-1 rated :

spam

oli

User  
-1 rated :

no, this is not spam- it's a genuine question!

Todd

JW Player Support Agent  
-1 rated :

What are you trying to use the event listeners for? There might be an existing API call that you can use. Check out our API reference at http://support.jwplayer.com/customer/portal/articles/1413089-javascript-api-reference

-Todd

This question has received the maximum number of answers.