Click or drag to resize
MediaUnit Fields

The MediaUnit type exposes the following members.

Fields
  NameDescription
Protected field_absoluteDuration (Inherited from MediaEvent.)
Protected field_endPoint (Inherited from MediaEvent.)
Public field_positionedDynamicEvents
Protected field_relativeEndPoint (Inherited from MediaEvent.)
Protected field_relativeStartPoint (Inherited from MediaEvent.)
Protected field_startPoint (Inherited from MediaEvent.)
Public fieldcanReplay
Defines whether the player can replay the current unit or not after it has ended in the playlist.
Public fieldcontrolsDisplay
Defines how the controls bar will be displayed for the unit. See MediaUnitMediaControlsDisplay for possible values.
Public fieldcontrolsParameters
The configuration for the controls bar overlay. Construct this using the configureFromDictionary() method of MediaBuilder.
Public fieldcontrolStyle
Used to set the style of the controls
Public fielddebug
Toggle to enable logs.
Public fielddisplayFirstFrame
Specifies if the first frame of the unit should be displayed until the unit is played
Public fielddynamicPosition (Inherited from MediaEvent.)
Public fieldinitialPlaybackTime
Initial video playback time in seconds.
Protected fieldloaded (Inherited from MediaEvent.)
Public fieldmanager
The associated registered unit manager of this unit (for example the Marlin Unit Manager for DRM encoding.)
Public fieldmetadata
A Dictionary containing the metadata associated with the unit.
Public fieldmidcontentAdMinimumFinalOffset
For ad breaks assigned to this unit without an ad offset (breaks that should be auto-positioned within the content), this parameter defines the minimum time interval in seconds (relative to the end of the video) that should be ad-free. Defaults to 300 seconds.
Public fieldmidcontentAdMinimumInitialOffset
For ad breaks assigned to this unit without an ad offset (breaks that should be auto-positioned within the content), this parameter defines the minimum time interval in seconds to wait before displaying the first ad batch. Defaults to 300 seconds.
Public fieldmidcontentAdMinimumSpacing
For ad breaks assigned to this unit without an ad offset (breaks that should be auto-positioned within the content), this parameter defines the minimum time interval in seconds to wait between ad batches. Defaults to 300 seconds.
Public fieldpinchToFullscreen
Defines if pinch-to-fullscreen should be allowed.
Public fieldplayed
Public fieldpreloadInterval
Defines the number of seconds before the scheduled start point when the event should receive the preload call.
(Inherited from MediaEvent.)
Public fieldpreloadPoint
Set by the player to the current playback time in seconds, after the current event begins preloading. Defaults to -1 if the event did not start preloading.
(Inherited from MediaEvent.)
Public fieldrenderer
The renderer associated with this unit.
Public fieldrepeatAfter
If this parameter is greater than 0, then the event will be retriggered by the MediaPlayer after the specific time interval (in seconds).
(Inherited from MediaEvent.)
Public fieldseekHandling
Defines how mid content ads should be handled when the user has skipped over several batches. Use this parameter to instruct the player to render: only the first ad batch, only the last ad batch or all passed ad batches. Defaults to `APSHandleSeekEventPlayLastBreak`.
Public fieldshouldAutoplay
Defines if the unit should start playing as soon as it loads or wait for a play command.
Public fieldsourceAdBreak
Public fieldtimeout
Defines the maximum number of seconds the event is allowed to live once it has been pretriggered, without setting the loaded property to true.
(Inherited from MediaEvent.)
Public fieldtrackingURLs
This dictionary defines all URLs that need to be notified of specific events from the object's lifecycle. The keys are event constants, as defined in MediaPlayer
(Inherited from MediaTrackableObject.)
Public fieldurl
The video clip URL.
Top
See Also