Whether to enable accurate seek
The property setting of precise seek is valid only when enable is YES.
Unsupported platform: Web
Whether to mix the player's sound into the stream being published.
Aux audio flag. The default is false.
Whether to repeat playback.
repeat playback flag. The default is false.
Get the count of audio tracks of the current media file.
The count of audio tracks
Unsupported platform: Web
Get current playing progress.
You should load resource before invoking this function, otherwise the return value is 0
Current progress. The unit is millisecond
Unsupported platform: Web
Get the current state of mediaplayer.
Current state
Unsupported platform: Web
Get media player index.
Get the playable duration and size of the cached data of the current network material cache queue
Returns the current cached information, including the length of time the data can be played and the size of the cached data.
Unsupported platform: Web
Gets the current local playback volume of the mediaplayer, the range is 0 ~ 200, with the default value of 60.
current play volume
Unsupported platform: Web
Gets the current publish volume of the mediaplayer, the range is 0 ~ 200, with the default value of 60.
current play volume
Get the total progress of your media resources.
You should load resource before invoking this function, otherwise the return value is 0
Total duration. The unit is millisecond
Load media resource.
Yon can pass the absolute path of the local resource or the URL of the network resource
the absolute path of the local resource or the URL of the network resource
the result of calling this API
Whether to play locally silently.
If [enableAux] switch is turned on, there is still sound in the publishing stream. The default is false.
Mute local audio flag, The default is false.
Unsupported platform: Web
Unregister the event handler of mediaplayer
event type
callback
Unsupported platform: Web
Register the event handler of mediaplayer
event type
callback
Unsupported platform: Web
Pause playing.
resume playing.
Set the specified playback progress.
Unit is millisecond
Point in time of specified playback progress
the result of calling this API
Unsupported platform: Web
Set the audio track of the playback file.
Audio track index, the number of audio tracks can be obtained through the [audioTrackCount].
Unsupported platform: Web
Use this interface to set the cache threshold that the media player needs to resume playback. The SDK default value is 5000ms,The valid value is greater than or equal to 1000ms
Threshold that needs to be reached to resume playback, unit ms.
Unsupported platform: Web
Set the maximum cache duration and cache data size of web materials.
The setting must be called before loading the resource, and it will take effect during the entire life cycle of the media player. Time and size are not allowed to be 0 at the same time. The SDK internal default time is 5000, and the size is 1510241024 byte.When one of time and size reaches the set value first, the cache will stop.
The maximum length of the cache time, in ms, the SDK internal default is 5000; the effective value is greater than or equal to 2000; if you fill in 0, it means no limit.
The maximum size of the cache, the unit is byte, the internal default size of the SDK is 1510241024 byte; the effective value is greater than or equal to 5000000, if you fill in 0, it means no limit.
Unsupported platform: Web
Set the speed of play
You should load resource before invoking this function
The range is 0.5 ~ 2.0. The default is 1.0.
Set mediaplayer local play volume.
The range is 0 ~ 200. The default is 60.
Unsupported platform: Web
Set the view of the player playing video.
Set playback progress callback interval.
This function can control the callback frequency of [onMediaPlayerPlayingProgress]. When the callback interval is set to 0, the callback is stopped. The default callback interval is 1s This callback are not returned exactly at the set callback interval, but rather at the frequency at which the audio or video frames are processed to determine whether the callback is needed to call
Interval of playback progress callback in milliseconds
Unsupported platform: Web
Set mediaplayer publish volume.
The range is 0 ~ 200. The default is 60.
Unsupported platform: Web
Setting up the specific voice changer parameters.
Voice changer parameters
The audio channel to be voice changed
Unsupported platform: Web
Set mediaplayer volume. Both the local play volume and the publish volume are set.
The range is 0 ~ 200. The default is 60.
Start playing.
You need to load resources before playing
Stop playing.
Take a screenshot of the current playing screen of the media player.
Only in the case of calling setPlayerCanvas
to set the display controls and the playback state, can the screenshot be taken normally
Generated using TypeDoc
Open precise seek and set relevant attributes.
Call the setting before loading the resource. After setting, it will be valid throughout the life cycle of the media player. For multiple calls to ‘enableAccurateSeek’, the configuration is an overwrite relationship, and each call to ‘enableAccurateSeek’ only takes effect on the resources loaded later.