ZegoLiveAudioRoomControllerMediaImpl class
media series API
- Available Extensions
Constructors
Properties
- currentProgress → int
-
current playing progress of current media
no setter
-
currentProgressNotifier
→ ValueNotifier<
int> -
current progress notifier of current media
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- info → ZegoUIKitMediaInfo
-
info of current media
no setter
-
muteNotifier
→ ValueNotifier<
bool> -
mute state notifier of current media
no setter
-
playStateNotifier
→ ValueNotifier<
ZegoUIKitMediaPlayState> -
play state notifier of current media
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalDuration → int
-
the total progress(millisecond) of current media resources
no setter
- type → ZegoUIKitMediaType
-
media type of current media
no setter
-
typeNotifier
→ ValueNotifier<
ZegoUIKitMediaType> -
type notifier of current media
no setter
- volume → int
-
volume of current media
no setter
-
volumeNotifier
→ ValueNotifier<
int> -
volume notifier of current media
no setter
Methods
-
destroy(
) → Future< void> - destroy current media
-
muteLocal(
bool mute) → Future< void> - mute current media
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → Future< void> - pause current media
-
pickFile(
{List< String> ? allowedExtensions = const ["avi", "flv", "mkv", "mov", "mp4", "mpeg", "webm", "wmv", "aac", "midi", "mp3", "ogg", "wav"]}) → 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". -
pickPureAudioFile(
) → Future< List< PlatformFile> > - pick pure audio media file
-
pickVideoFile(
) → Future< List< PlatformFile> > - pick video media file
-
play(
{required String filePathOrURL, bool enableRepeat = false}) → Future< ZegoUIKitMediaPlayResult> - start play current media
-
resume(
) → Future< void> - resume current media
-
seekTo(
int millisecond) → Future< ZegoUIKitMediaSeekToResult> - set the current media playback progress
-
setVolume(
int volume) → Future< void> - Set media player volume. Both the local play volume and the publish volume are set.
-
stop(
) → Future< void> - stop play current media
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited