Below is a list of all events sent by the SDK:
Events | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
module: global SDK event: player-ready Callback when Web Player SDK is ready. All modules are loaded. | ||||||||||||||||||||||
module: MediaPlayer event: stream-start Stream playback started. | ||||||||||||||||||||||
module: MediaPlayer event: stream-stop Stream playback stopped. | ||||||||||||||||||||||
module: MediaPlayer event: stream-select | ||||||||||||||||||||||
module: MediaPlayer event: stream-config-ready | ||||||||||||||||||||||
module: MediaPlayer event: stream-config-error | ||||||||||||||||||||||
module: MediaPlayer event: stream-config-load-error | ||||||||||||||||||||||
module: MediaPlayer event: stream-fail Connection to the stream failed. | ||||||||||||||||||||||
module: MediaPlayer event: stream-error A stream error has occurred event properties: text (String) The error text. | ||||||||||||||||||||||
module: MediaPlayer event: stream-status Stream status information. event properties:
Here is the list of the status messages and their associated codes. The code can be used to display a message other than the default one provided in the 'status' property.
Note: when a live stream is geo-blocked, | ||||||||||||||||||||||
module: MediaPlayer event: track-cue-point A new track cue point was received in the stream. event data properties:
Example (JavaScript):
| ||||||||||||||||||||||
module: MediaPlayer event: custom-cue-point A new custom cue point was received in the stream. event data properties:
| ||||||||||||||||||||||
module: MediaPlayer event: speech-cue-point A new speech cue point was received in the stream. event data properties:
For other parameters available within this cuepoint, please refer to the STWCue Metadata Dictionary. | ||||||||||||||||||||||
module: MediaPlayer event: hls-cue-point A new HLS cue point has been received in the stream (iOS only). event data properties:
| ||||||||||||||||||||||
module: MediaPlayer event: timeout-alert TimeOut Connection Alert: stream will stop in 30 seconds. Please refer to the play() function documentation (parameter connectionTimeOut) . | ||||||||||||||||||||||
module: MediaPlayer event: timeout-reach TimeOut Reached (the user did not click on the previous TimeOut Alert Message). At this time, the stream was automatically stopped by the Player SDK. | ||||||||||||||||||||||
module: MediaPlayer event: targetspot-cue-point A new TargetSpot cue point was received in the stream. event properties: duration: duration of the TargetSpot Ad Break, in milliseconds | ||||||||||||||||||||||
module: MediaPlayer event: timeshift-info Provides general information about the HLS stream. Embed the code snippet described under Event Listener to subscribe to the information. event properties: totalDuration: duration of the Timeshift session, in milliseconds | ||||||||||||||||||||||
module: MediaPlayer event: ad-break-cue-point A new Ad Break cue point was received in the stream. event properties:
| ||||||||||||||||||||||
module: MediaPlayer event: ad-break-cue-point-complete The current Ad break is finished. | ||||||||||||||||||||||
module: MediaPlayer event: ad-playback-start Ad Playback: Every time an audio/video ad starts playing, this event is fired. event properties: type (String) - The Ad Server Type (i.e. vastAd when VAST Ad Server was used). | ||||||||||||||||||||||
module: MediaPlayer event: ad-blocker-detected Event fired when an ad blocker is enabled on client-side. event properties: message (String) - The Ad blocker message. | ||||||||||||||||||||||
module: MediaPlayer event: ad-playback-complete Ad Playback: Every time an audio/video ad playback is complete, this event is fired. This is where you should call the play() function to play the Live Stream. event properties: type (String) - The Ad Server Type (i.e. vastAd when VAST Ad Server was used). | ||||||||||||||||||||||
module: MediaPlayer event: ad-playback-error Ad Playback: Every time an audio/video ad playback returns an error (i.e. the ad did not play), this event is fired. This is where you should call the play() function to play the Live Stream. | ||||||||||||||||||||||
module: MediaPlayer event: ad-countdown Ad CountDown: Event is fired when an audio/video ad is playing, allowing you to display a count down message (i.e., Advertisement: The stream will start in xx second(s) ) event properties:
| ||||||||||||||||||||||
module: MediaPlayer event: ad-quartile Ad Quartile. Event is fired on every quartile, when an audio/video ad is playing. event properties:
| ||||||||||||||||||||||
module: MediaPlayer event: vpaid-ad-companions VPAID campaign: when a VPAID campaign contains ad companions, this event is fired. Listen to this event to display the VPAID ad companions in the page. event properties:
| ||||||||||||||||||||||
module: MediaPlayer event: configuration-error Configuration Error - Event error is fired because the JSON data object sent to the library is invalid. | ||||||||||||||||||||||
module: MediaPlayer event: stream-geo-blocked Stream is Geo-blocked. Event is fired when the call to the provisioning server returns a Stream Geo Blocked status. | ||||||||||||||||||||||
module: MediaPlayer event: video-mid-roll-playback-start Video Mid Roll Ad Playback: Every time a video mid-roll ad playback starts playing, this event is fired. | ||||||||||||||||||||||
module: MediaPlayer event: video-mid-roll-playback-complete Video Mid Roll Ad Playback: Every time a video mid-roll ad playback is complete, this event is fired. | ||||||||||||||||||||||
module: SyncBanners event: ad-break-synced-element An ad break banner is available in the ad break cue-point and will be automatically loaded and displayed in its HTML div element in the page. event properties:
| ||||||||||||||||||||||
module: NowPlayingApi event: list-loaded Now Playing History loaded. Event is fired when now playing history data has been loaded and is available. event properties:
| ||||||||||||||||||||||
module: NowPlayingApi event: list-empty Now Playing History is empty (no data). Event is fired when now playing history data has been loaded and is empty.
| ||||||||||||||||||||||
module: NowPlayingApi event: nowplaying-api-error Now Playing API Error - Event is fired when now playing history data has not been retrieved due to en error.
|