Initializes the Media Session object. This does not start a session, you can do so by calling logMediaSessionStart
.
Your mParticle global object
A unique identifier for your media content
The title of your media content
The length of time for the complete media content (not including ads or breaks)
A descriptor for the type of content, i.e. Audio or Video
A descriptor for the type of stream, i.e. live or on demand
A unique identifier for your media content
A descriptor for the type of content, i.e. Audio or Video
The length of time for the complete media content (not including ads or breaks)
Your mParticle global object
A descriptor for the type of stream, i.e. live or on demand
The title of your media content
Logs when an AdBreak pod has ended
Logs when a single ad is clicked on by a visitor
Logs when a single ad ends
Logs when a single ad is skipped by a visitor
Logs when a single ad plays
An object representing a single Ad
Logs the end of a buffering event
The duration of a buffering event
The percent that has been buffered
The playhead position of the buffering event
Logs the start of a buffering event
The duration of a buffering event
The percent that has been buffered
The playhead position of the buffering event
Logs when your media content has ended, usually before a post-roll ad. Must be fired between MediaSessionStart and MediaSessionEnd
Ends your media session. Should be the method thing triggered, after all ads and content have been completed
Starts your media session. Should be triggered before any prerolls or ads
Logs a pause event
Logs a play event
Logs when the playhead position is updated
The updated playhead position
Logs when a visitor stops seeking
the desired playhead position
Logs when a visitor starts seeking
the desired playhead position
Logs the end of a Segment or Chapter
Logs when a visitor skips a Segment or Chapter
Logs the start of a Segment or Chapter
An object representing a segment or chapter of content
Logs number of frames that have been dropped by the player
Number of frames dropped
Logs an update in the Quality of Service
An object representing QoS
Generated using TypeDoc
The MediaSession class is the primary class that will be used to engage with the mParticle Media SDK.