Click or drag to resize
MediaUnit Methods

The MediaUnit type exposes the following members.

Methods
  NameDescription
Public methodaddEvent
Public methodaddOverlay
Adds an MediaOverlay object to the unit, to be rendered together.
Public methodadjustForAbsoluteDuration (Inherited from MediaEvent.)
Public methodadjustRelativeToDuration
Translates percentual values set via setStartPoint to actual time intervals in seconds, relative to a specified total duration.
(Inherited from MediaEvent.)
Public methodclearOverlays
Removes all currently connected overlays.
Public methodcopyWithZone
Public methoddynamicEvents
Public methodendPoint
The time interval (in seconds) when the player needs to remove the overlay.

Warning: If percentual values were set via setStartPoint, this value will change immediately after the current clip's duration is available.

(Inherited from MediaEvent.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodevents
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodgetState
Get the current event state
(Inherited from MediaEvent.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodincrementStartAndEndPointsWithInterval
Shifts air-time for an overlay by a defined amount of time.
(Inherited from MediaEvent.)
Public methodinitWithURL
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodneedsToBeAdjustedRelativeToDuration
Determines if an overlay has start points, end points or duration relative to the unit duration.
(Inherited from MediaEvent.)
Public methodonPreload (Overrides MediaEventonPreload.)
Public methodonTrigger (Overrides MediaEventonTrigger.)
Public methodonUnload (Overrides MediaEventonUnload.)
Public methodonUpdate (Overrides MediaEventonUpdate.)
Public methodoverlays
Returns an list containing all MediaOverlay objects currently connected to the unit.
Public methodpreload (Inherited from MediaEvent.)
Public methodsetEndPoint
Sets the ending time point of the overlay.
(Inherited from MediaEvent.)
Public methodsetEvents
Connects an list of MediaEvent objects to the current unit (for example VastAdBreak objects)
Public methodsetOverlays
Connects an list of MediaOverlay objects to the current unit.
Public methodsetStartPoint
Sets the starting time point of the overlay.
(Inherited from MediaEvent.)
Public methodstartPoint
The time interval (in seconds) when the player needs to display the overlay.

Warning: If percentual values were set via setStartPoint, this value will change immediately after the current clip's duration is available.

(Inherited from MediaEvent.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodtrigger (Inherited from MediaEvent.)
Public methodunload (Inherited from MediaEvent.)
Public methodupdateState
Update the event state
(Inherited from MediaEvent.)
Top
See Also