Click or drag to resize
MediaEvent Class
The MediaEvent class describes a container that developers can use to instruct the player to run specific blocks of code at specific moments of time. Objects extending and implementing this class can be added to the player's main queue and can also be attached to a specific MediaUnit object, for runtime triggering.
Inheritance Hierarchy

Namespace: Veeplay.media.events
Assembly: Veeplay (in Veeplay.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public abstract class MediaEvent : MediaTrackableObject

The MediaEvent type exposes the following members.

Constructors
  NameDescription
Public methodMediaEvent
Initializes a new instance of the MediaEvent class
Top
Methods
  NameDescription
Public methodadjustForAbsoluteDuration
Public methodadjustRelativeToDuration
Translates percentual values set via setStartPoint to actual time intervals in seconds, relative to a specified total duration.
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.

Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
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
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.
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.
Public methodonPreload
This method will be invoked on a different thread by the player, before the event start point, as set by the preTriggerInterval field.
Public methodonTrigger
This code will be executed once the event is triggered by the player.
Public methodonUnload
This method will be invoked by the player once the event has reached the end point and will be deallocated.
Public methodonUpdate
This method will be invoked by the player periodically, giving the event the opportunity to respond to updated playback information.
Public methodpreload
Public methodsetEndPoint
Sets the ending time point of the overlay.
Public methodsetStartPoint
Sets the starting time point of the overlay.
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.

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodtrigger
Public methodunload
Public methodupdateState
Update the event state
Top
Fields
  NameDescription
Protected field_absoluteDuration
Protected field_endPoint
Protected field_relativeEndPoint
Protected field_relativeStartPoint
Protected field_startPoint
Public fielddynamicPosition
Protected fieldloaded
Public fieldpreloadInterval
Defines the number of seconds before the scheduled start point when the event should receive the preload call.
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.
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).
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.
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.)
Top
Events
  NameDescription
Public eventStateChanged
Public eventTimeoutEvent
Top
See Also