Ignore:
Timestamp:
12/14/11 19:36:12 (18 months ago)
Author:
pablo
Message:

Implements onBeforePlay event 1424

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fl5/src/com/longtailvideo/jwplayer/player/JavascriptAPI.as

    r2022 r2032  
    203203                        if (callbacks) { 
    204204                                for each (var call:String in callbacks) { 
    205                                         // Not a great workaround, but the JavaScript API competes with the Controller when dealing with the COMPLETE event 
    206                                         if (evt.type == MediaEvent.JWPLAYER_MEDIA_COMPLETE) { 
     205                                        // Not a great workaround, but the JavaScript API competes with the Controller when dealing with certain events 
     206                                        if (evt.type == MediaEvent.JWPLAYER_MEDIA_COMPLETE || evt.type == MediaEvent.JWPLAYER_MEDIA_BEFOREPLAY) { 
    207207                                                ExternalInterface.call(call, args); 
    208208                                        } else { 
Note: See TracChangeset for help on using the changeset viewer.