MediaPlayerSourceObserver class

Provides callbacks for the media player.

Properties

hashCode → int
The hash code for this object.
no setterinherited
onAudioVolumeIndication → void Function(int volume)?
Callback for media player audio volume indication.
final
onMetaData → void Function(Uint8List data, int length)?
Reports retrieved media metadata.
final
onPlayBufferUpdated → void Function(int volume)?
Reports the playable duration of buffered data.
final
onPlayerCacheStats → void Function(CacheStatistics stats)?
Reports information about the media resources currently in cache.
final
onPlayerEvent → void Function(MediaPlayerEvent eventCode, int elapsedTime, String message)?
Reports player events.
final
onPlayerInfoUpdated → void Function(PlayerUpdatedInfo info)?
Callback when media player-related information changes.
final
onPlayerPlaybackStats → void Function(PlayerPlaybackStats stats)?
Reports information about the currently playing media resource.
final
onPlayerSourceStateChanged → void Function(MediaPlayerState state, MediaPlayerReason reason)?
Reports changes in player state.
final
onPlayerSrcInfoChanged → void Function(SrcInfo from, SrcInfo to)?
Callback for changes in video bitrate of media resource.
final
onPositionChanged → void Function(int positionMs, int timestampMs)?
Reports the current playback position of the media resource.
final
onPreloadEvent → void Function(String src, PlayerPreloadEvent event)?
Reports events during media resource preloading.
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