ZegoMediaService mixin
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
destroyMedia ()
→ Future <void >
Destroy current media
getMediaCurrentProgress ()
→ int
Get current playing progress.
getMediaCurrentProgressNotifier ()
→ ValueNotifier <int >
getMediaInfo ()
→ ZegoUIKitMediaInfo
getMediaMuteNotifier ()
→ ValueNotifier <bool >
getMediaPlayStateNotifier ()
→ ValueNotifier <ZegoUIKitMediaPlayState >
getMediaTotalDuration ()
→ int
Get the total progress of your media resources, Returns Unit is millisecond.
getMediaType ()
→ ZegoUIKitMediaType
getMediaTypeNotifier ()
→ ValueNotifier <ZegoUIKitMediaType >
getMediaVolume ()
→ int
getMediaVolumeNotifier ()
→ ValueNotifier <int >
muteMediaLocal (bool mute )
→ Future <void >
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pauseMedia ()
→ Future <void >
Pause playing.
pickMediaFile ({List <String > ? allowedExtensions })
→ Future <List <PlatformFile > >
If you want to specify the allowed formats, you can set them using allowedExtensions
.
Currently, for video, we support "avi", "flv", "mkv", "mov", "mp4", "mpeg", "webm", "wmv".
For audio, we support "aac", "midi", "mp3", "ogg", "wav".
pickPureAudioMediaFile ()
→ Future <List <PlatformFile > >
pickVideoMediaFile ()
→ Future <List <PlatformFile > >
playMedia ({required String filePathOrURL , bool enableRepeat = false , bool autoStart = true })
→ Future <ZegoUIKitMediaPlayResult >
Start playing.
registerMediaEvent (ZegoUIKitMediaEventInterface event )
→ void
resumeMedia ()
→ Future <void >
Resume playing.
seekTo (int millisecond )
→ Future <ZegoUIKitMediaSeekToResult >
Set the specified playback progress, Unit is millisecond.
setMediaVolume (int volume , {bool isSync = false })
→ Future <void >
Set media player volume.
startMedia ()
→ Future <void >
Start playing.
stopMedia ()
→ Future <void >
Stop playing.
toString ()
→ String
A string representation of this object.
inherited
unregisterMediaEvent (ZegoUIKitMediaEventInterface event )
→ void