ZegoUIKitMediaEventInterface class
Example:
...
final mediaEvent = MediaEvent();
ZegoUIKit().registerMediaEvent(mediaEvent);
...
class MediaEvent extends ZegoUIKitMediaEventInterface
{
...
@override
void onMediaPlayerStateUpdate(
ZegoMediaPlayer mediaPlayer,
ZegoMediaPlayerState state,
int errorCode,) {
/// your code
}
...
}
class MediaEvent implements ZegoUIKitMediaEventInterface
{
...
}
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onMediaDataPublisherFileClose(
ZegoMediaDataPublisher mediaDataPublisher, int errorCode, String path) → void - The event callback of the media data publisher closing a media file.
-
onMediaDataPublisherFileDataBegin(
ZegoMediaDataPublisher mediaDataPublisher, String path) → void - The event callback that the media data publisher has read data from the media file.
-
onMediaDataPublisherFileOpen(
ZegoMediaDataPublisher mediaDataPublisher, String path) → void - The event callback of the media data publisher opening a media file.
-
onMediaPlayerFirstFrameEvent(
ZegoMediaPlayer mediaPlayer, ZegoMediaPlayerFirstFrameEvent event) → void - The callback triggered when the media player plays the first frame.
-
onMediaPlayerFrequencySpectrumUpdate(
ZegoMediaPlayer mediaPlayer, List< double> spectrumList) → void - The callback of frequency spectrum update.
-
onMediaPlayerNetworkEvent(
ZegoMediaPlayer mediaPlayer, ZegoMediaPlayerNetworkEvent networkEvent) → void - The callback triggered when the network status of the media player changes.
-
onMediaPlayerPlayingProgress(
ZegoMediaPlayer mediaPlayer, int millisecond) → void - The callback to report the current playback progress of the media player.
-
onMediaPlayerRecvSEI(
ZegoMediaPlayer mediaPlayer, Uint8List data) → void - The callback triggered when the media player got media side info.
-
onMediaPlayerRenderingProgress(
ZegoMediaPlayer mediaPlayer, int millisecond) → void - The callback to report the current rendering progress of the media player.
-
onMediaPlayerSoundLevelUpdate(
ZegoMediaPlayer mediaPlayer, double soundLevel) → void - The callback of sound level update.
-
onMediaPlayerStateUpdate(
ZegoMediaPlayer mediaPlayer, ZegoMediaPlayerState state, int errorCode) → void - MediaPlayer playback status callback.
-
onMediaPlayerVideoSizeChanged(
ZegoMediaPlayer mediaPlayer, int width, int height) → void - The callback triggered when when the resolution of the playback video changes.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited