Packagecom.adobe.mediacore.timeline
Interfacepublic interface Timeline

Interface used by application developers to interact with the timeline.



Public Properties
 PropertyDefined By
  timelineItems : Vector.<AdTimelineItem>
[read-only] Returns the current timeline items.
Timeline
  timelineMarkers : Vector.<TimelineMarker>
[read-only] Returns the current timeline markers.
Timeline
Public Methods
 MethodDefined By
  
convertToLocalTime(time:Number):Number
Calculate the local time which maps to the specified virtual time.
Timeline
  
convertToVirtualTime(time:Number):Number
Calculate the virtual time which maps to the specified local time.
Timeline
Property Detail
timelineItemsproperty
timelineItems:Vector.<AdTimelineItem>  [read-only]

Returns the current timeline items. This method returns a copy of the internal list to prevent accidental modifications of the list.


Implementation
    public function get timelineItems():Vector.<AdTimelineItem>
timelineMarkersproperty 
timelineMarkers:Vector.<TimelineMarker>  [read-only]

Returns the current timeline markers. This method returns a copy of the internal list to prevent accidental modifications of the list.


Implementation
    public function get timelineMarkers():Vector.<TimelineMarker>
Method Detail
convertToLocalTime()method
public function convertToLocalTime(time:Number):Number

Calculate the local time which maps to the specified virtual time. If there are no ads inserted on the timeline, then the local time and virtual time are the same.

Parameters

time:Number — Virtual time which needs to be mapped.

Returns
Number — returns local time.
convertToVirtualTime()method 
public function convertToVirtualTime(time:Number):Number

Calculate the virtual time which maps to the specified local time. If there are no ads inserted on the timeline, then the local time and virtual time are the same.

Parameters

time:Number — Local time which needs to be mapped.

Returns
Number — returns virtual time.