Changes between Version 30 and Version 31 of OvaOnDemandCustomPlayer


Ignore:
Timestamp:
05/17/11 17:05:24 (2 years ago)
Author:
paul
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OvaOnDemandCustomPlayer

    v30 v31  
    400400 
    401401{{{ 
     402// Update playback time 
     403 
     404public function processTimeEvent(associatedStreamIndex:int, timeEvent:TimeEvent):void; 
     405 
     406// Update player state 
     407 
     408public function onPlayerSeek(activeStreamIndex:int=-1, isAdSlotKey:Boolean = false, newTimePoint:Number=0):void; 
     409public function onPlayerMute(activeStreamIndex:int=-1, isAdSlotKey:Boolean = false):void; 
     410public function onPlayerUnmute(activeStreamIndex:int=-1, isAdSlotKey:Boolean = false):void;                      
     411public function onPlayerStop(activeStreamIndex:int=-1, isAdSlotKey:Boolean = false):void; 
     412public function onPlayerResize(activeStreamIndex:int=-1, isAdSlotKey:Boolean = false):void; 
     413public function onPlayerFullscreenEntry(activeStreamIndex:int=-1, isAdSlotKey:Boolean = false):void; 
     414public function onPlayerFullscreenExit(activeStreamIndex:int=-1, isAdSlotKey:Boolean = false):void; 
     415public function onPlayerPause(activeStreamIndex:int=-1, isAdSlotKey:Boolean = false):void; 
     416public function onPlayerResume(activeStreamIndex:int=-1, isAdSlotKey:Boolean = false):void; 
     417}}} 
     418 
     419==== 4.9.1 Tracking Time 
     420 
     421The easiest way to inform OVA of the playback time for a linear ad clip is to use the `VASTController.processTimeEvent()` method. 
     422 
     423This method takes a stream index representing the index of the active ad clip within the OVA internal playlist (StreamSchedule) and a `TimeEvent`. 
     424 
     425A `TimeEvent` is a utility class that allows the time in milliseconds to be passed into `processTimeEvent()` along with the duration of the active clip. 
     426 
     427The following code snippet illustrates an example usage of `processTimeEvent()` method. In this case the active clip `position` reports the current playback time for the active clip. The `position` is reported in fractions of a second (e.g. 8.5 for 8.5 seconds) which needs to be converted to milliseconds as the `processTimeEvent()` method expects the time to be passed in milliseconds. 
     428 
     429{{{ 
     430_vastController.processTimeEvent(activeStreamIndex, new TimeEvent(_player.activeClip.position * 1000, _player.activeClip.duration)); 
     431}}} 
     432 
     433Normally a player implementation will call `processTimeEvent()` every 10th of a second - this is a fast enough cycle to ensure that all tracking events will correctly fire. 
     434 
     435==== 4.9.2 Tracking time more efficiently 
     436 
    402437X 
    403 }}} 
    404  
    405 ==== 4.9.1 Tracking Time 
     438 
     439==== 4.9.3 Tracking Player State Change 
    406440 
    407441X 
    408442 
    409 ==== 4.9.2 Tracking time more efficiently 
    410  
    411 X 
    412  
    413 ==== 4.9.3 Tracking Player State Change 
    414  
    415 X 
    416  
    417  
    418  
    419  
    420  
    421  
    422  
     443 
     444 
     445 
     446 
     447 
     448