Optional onOptional onOccurs when the media metadata is received. The callback occurs when the player receives the media metadata and reports the detailed information of the media metadata.
The detailed data of the media metadata.
The data length (bytes).
Optional onReports the playback duration that the buffered data can support. When playing online media resources, the SDK triggers this callback every two seconds to report the playback duration that the currently buffered data can support.When the playback duration supported by the buffered data is less than the threshold (0 by default), the SDK returns PlayerEventBufferLow.When the playback duration supported by the buffered data is greater than the threshold (0 by default), the SDK returns PlayerEventBufferRecover.
The playback duration (ms) that the buffered data can support.
Optional onReports the player events. After calling the seek method, the SDK triggers the callback to report the results of the seek operation.
The player events. See MediaPlayerEvent .
The time (ms) when the event occurs.
Information about the event.
Optional onOccurs when information related to the media player changes. When the information about the media player changes, the SDK triggers this callback. You can use this callback for troubleshooting.
Information related to the media player. See PlayerUpdatedInfo .
Optional onReports the changes of playback state. When the state of the media player changes, the SDK triggers this callback to report the current playback state.
The playback state. See MediaPlayerState .
The error code. See MediaPlayerError .
Optional onOptional onOptional onReports the events of preloaded media resources.
The URL of the media resource.
Events that occur when media resources are preloaded. See PlayerPreloadEvent .
Generated using TypeDoc
Provides callbacks for media players.