JW Player - How can I add an event listener for fullscreen toggling?
Posted
by Charles
on Stack Overflow
See other posts from Stack Overflow
or by Charles
Published on 2010-05-07T04:21:53Z
Indexed on
2010/05/07
4:28 UTC
Read the original article
Hit count: 394
I'm using JW Player 4.5 on my site and I need to add an event listener for when fullscreen is toggled.
The reason for this is to switch between a low-def version and high-def version. The default video will be the low-def version and when they switch to a fullscreen display, it will change to the high-def version.
According to http://developer.longtailvideo.com/trac/wiki/Player5Events, the ViewEvent.JWPLAYER_VIEW_FULLSCREEN1
event can only be called from Actionscript. I need it to be from Javascript...
Is there any way to achieve this? Can you recommend a better solution?
© Stack Overflow or respective owner