ZegoMediaPlayer class abstract

Constructors

ZegoMediaPlayer()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearView() → Future<void>
Clears the last frame of the playback control that remains on the control after playback ends.
enableAccurateSeek(bool enable, ZegoAccurateSeekConfig config) → Future<void>
Enable accurate seek and set relevant attributes.
enableAudioData(bool enable) → Future<void>
Whether to audio data playback.
enableAux(bool enable) → Future<void>
Whether to mix the player's sound into the stream being published.
enableBlockData(bool enable, int blockSize) → Future<void>
Whether to throw block data of the media resource.
enableFrequencySpectrumMonitor(bool enable, int millisecond) → Future<void>
Whether to enable frequency spectrum monitoring.
enableLiveAudioEffect(bool enable, ZegoLiveAudioEffectMode mode) → Future<void>
Enable live audio effect.
enableLocalCache(bool enable, String cacheDir) → Future<void>
Enable local caching of http/https network resources.
enableRepeat(bool enable) → Future<void>
Whether to repeat playback.
enableSoundLevelMonitor(bool enable, int millisecond) → Future<void>
Whether to enable sound level monitoring.
enableVideoData(bool enable, ZegoVideoFrameFormat format) → Future<void>
Whether to video data playback.
enableViewMirror(bool enable) → Future<void>
Enable the view mirror.
enableVoiceChanger(ZegoMediaPlayerAudioChannel audioChannel, bool enable, ZegoVoiceChangerParam param) → Future<void>
Enable voice changer, set up the specific voice changer parameters.
getAudioTrackCount() → Future<int>
Get the number of audio tracks of the playback file.
getCurrentProgress() → Future<int>
Get current playing progress.
getCurrentRenderingProgress() → Future<int>
Get current rendering progress.
getCurrentState() → Future<ZegoMediaPlayerState>
Get the current playback status.
getIndex() → int
Get media player index.
getMediaInfo() → Future<ZegoMediaPlayerMediaInfo>
Get meida information such as video resolution from media file.
getNetWorkResourceCache() → Future<ZegoNetWorkResourceCache>
Get the playable duration and size of the cached data of the current network material cache queue
getPlaybackStatistics() → Future<ZegoMediaPlayerStatisticsInfo>
Get playback statistics.
getPlayVolume() → Future<int>
Gets the current local playback volume of the mediaplayer, the range is 0 ~ 200, with the default value of 60.
getPublishVolume() → Future<int>
Gets the current publish volume of the mediaplayer, the range is 0 ~ 200, with the default value of 60.
getTotalDuration() → Future<int>
Get the total progress of your media resources.
loadCopyrightedMusicResourceWithPosition(String resourceID, int startPosition) → Future<ZegoMediaPlayerLoadResourceResult>
Load copyrighted music resource.
loadResource(String path) → Future<ZegoMediaPlayerLoadResourceResult>
Load local or network media resource.
loadResourceFromMediaData(Uint8List mediaData, int startPosition) → Future<ZegoMediaPlayerLoadResourceResult>
Load binary audio resource.
loadResourceWithConfig(ZegoMediaPlayerResource resource) → Future<ZegoMediaPlayerLoadResourceResult>
Load local or network media resource with config.
loadResourceWithPosition(String path, int startPosition) → Future<ZegoMediaPlayerLoadResourceResult>
Load local or network media resource and specify the start position.
muteLocal(bool mute) → Future<void>
Whether to play locally silently.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → Future<void>
Pause playing.
resume() → Future<void>
Resume playing.
seekTo(int millisecond) → Future<ZegoMediaPlayerSeekToResult>
Set the specified playback progress.
setActiveAudioChannel(ZegoMediaPlayerAudioChannel audioChannel) → Future<void>
Set the playback channel.
setAudioTrackIndex(int index) → Future<void>
Set the audio track of the playback file.
setAudioTrackMode(ZegoMediaPlayerAudioTrackMode mode) → Future<void>
Set the audio track mode of the player.
setAudioTrackPublishIndex(int index) → Future<void>
Set the audio track for the media file to be publish.
setHttpHeader(Map<String, String> headers) → Future<void>
Set http headers.
setNetWorkBufferThreshold(int threshold) → Future<void>
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
setNetWorkResourceMaxCache(int time, int size) → Future<void>
Set the maximum cache duration and cache data size of web materials.
setPlayerCanvas(ZegoCanvas canvas) → Future<void>
Set the view of the player playing video. Note: This function is only available in ZegoExpressVideo SDK!
setPlayMediaStreamType(ZegoMediaStreamType streamType) → Future<void>
Set play media stream type.
setPlaySpeed(double speed) → Future<void>
Set the speed of play.
setPlayVolume(int volume) → Future<void>
Set mediaplayer local playback volume.
setProgressInterval(int millisecond) → Future<void>
Set playback progress callback interval.
setPublishVolume(int volume) → Future<void>
Set mediaplayer publish volume.
setVoiceChangerParam(ZegoMediaPlayerAudioChannel audioChannel, ZegoVoiceChangerParam param) → Future<void>
Deprecated Setting up the specific voice changer parameters.
setVolume(int volume) → Future<void>
Set mediaplayer volume. Both the local play volume and the publish volume are set.
start() → Future<void>
Start playing.
stop() → Future<void>
Stop playing.
takeSnapshot() → Future<ZegoMediaPlayerTakeSnapshotResult>
Take a screenshot of the current playing screen of the media player.
toString() → String
A string representation of this object.
inherited
updatePosition(Float32List position) → Future<void>
Update the position of the media player (audio source).

Operators

operator ==(Object other) → bool
The equality operator.
inherited