SyncMediaErrorEngineEventData

class SyncMediaErrorEngineEventData(val objectType: EngineEventDataObjectType = EngineEventDataObjectType.SYNC_MEDIA_ERROR_ENGINE_EVENT, val type: EngineEventDataType, val approximateElapsedTimeMs: Int, val syncMediaTimelinePosition: SyncMediaTimelinePositionData, val error: String, val errorMessage: String?, val errorType: SyncMediaPlayerErrorType, val paused: Boolean, val segmentIndex: Int) : SyncMediaEngineEventData

Event used when a SyncMediaPlayer encounters an error.

Constructors

Link copied to clipboard
fun SyncMediaErrorEngineEventData(objectType: EngineEventDataObjectType = EngineEventDataObjectType.SYNC_MEDIA_ERROR_ENGINE_EVENT, type: EngineEventDataType, approximateElapsedTimeMs: Int, syncMediaTimelinePosition: SyncMediaTimelinePositionData, error: String, errorMessage: String?, errorType: SyncMediaPlayerErrorType, paused: Boolean, segmentIndex: Int)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

The approximate elapsed time from timeline start in milliseconds

Link copied to clipboard

The error object serialized as a string.

Link copied to clipboard

If errorData was an instance of Error, it is set to errorData.message, otherwise it is set to null.

Link copied to clipboard

The type of error that occurred.

Link copied to clipboard

The type of engine event object this JSON structure represents.

Link copied to clipboard

If the player has paused due to the error. If true, a "paused" event will also be fired right after this event.

Link copied to clipboard

The index of the segment related with the error.

Link copied to clipboard

The current player timeline position.

Link copied to clipboard

The type of event.