MediaPlayerSourceObserver class
Provides callbacks for media players.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onAudioVolumeIndication → void Function(int volume)?
-
Reports the volume of the media player.
final
- onMetaData → void Function(Uint8List data, int length)?
-
Occurs when the media metadata is received.
final
- onPlayBufferUpdated → void Function(int playCachedBuffer)?
-
Reports the playback duration that the buffered data can support.
final
- onPlayerCacheStats → void Function(CacheStatistics stats)?
-
Reports the statistics of the media file being cached.
final
- onPlayerEvent → void Function(MediaPlayerEvent eventCode, int elapsedTime, String message)?
-
Reports the player events.
final
- onPlayerInfoUpdated → void Function(PlayerUpdatedInfo info)?
-
Occurs when information related to the media player changes.
final
- onPlayerPlaybackStats → void Function(PlayerPlaybackStats stats)?
-
The statistics of the media file being played.
final
- onPlayerSourceStateChanged → void Function(MediaPlayerState state, MediaPlayerReason reason)?
-
Reports the changes of playback state.
final
- onPlayerSrcInfoChanged → void Function(SrcInfo from, SrcInfo to)?
-
Occurs when the video bitrate of the media resource changes.
final
- onPositionChanged → void Function(int positionMs, int timestampMs)?
-
Reports the playback progress of the media file.
final
- onPreloadEvent → void Function(String src, PlayerPreloadEvent event)?
-
Reports the events of preloaded media resources.
final
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited