ByteRTCMediaPlayerEventHandler class

Inheritance
  • Object
  • NativeClass
  • NativeObserverClass
  • ByteRTCMediaPlayerEventHandler
Implementers

Constructors

ByteRTCMediaPlayerEventHandler([NativeClassOptions? options])

Properties

$instance ↔ dynamic
getter/setter pairinherited
$resource → NativeResource
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
ready Future<void>
Whether the instance is initialized
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

destroy() → void
inherited
emit(String name, List args) → dynamic
inherited
nativeCall<T>(String method, [List? args, NativeMethodMeta? meta]) Future<T>
Call instance method
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onMediaPlayerEvent$event$message(int playerId, ByteRTCPlayerEvent event, NSString message) FutureOr<void>
@valid since 3.59 @detail callback @author wangfeng.1004 @brief 播放事件回调。调用 selectAudioTrack:{@link #ByteRTCMediaPlayer#selectAudioTrack} 和 setPosition:{@link #ByteRTCMediaPlayer#setPosition} 后,会触发此回调。 @param playerId ByteRTCMediaPlayer{@link #ByteRTCMediaPlayer} 的 ID。通过 getMediaPlayer:{@link #ByteRTCEngine#getMediaPlayer} 设置。 @param event 播放器事件。参看 ByteRTCPlayerEvent{@link #ByteRTCPlayerEvent}。 @param message 事件描述信息,可能为空。
onMediaPlayerPlayingProgress$progress(int playerId, int64_t progress) FutureOr<void>
@detail callback @brief 播放进度周期性回调。回调周期通过 setProgressInterval:{@link #ByteRTCMediaPlayer#setProgressInterval} 设置。 @param playerId ByteRTCMediaPlayer{@link #ByteRTCMediaPlayer} 的 ID。通过 getMediaPlayer:{@link #ByteRTCEngine#getMediaPlayer} 设置。 @param progress 进度。单位 ms。
onMediaPlayerStateChanged$state$error(int playerId, ByteRTCPlayerState state, ByteRTCPlayerError error) FutureOr<void>
@detail callback @brief 播放状态改变时回调。 @param playerId ByteRTCMediaPlayer{@link #ByteRTCMediaPlayer} 的 ID。通过 getMediaPlayer:{@link #ByteRTCEngine#getMediaPlayer} 设置。 @param state 混音状态。参考 ByteRTCPlayerState{@link #ByteRTCPlayerState}。 @param error 错误码。参考 ByteRTCPlayerError{@link #ByteRTCPlayerError}。
registerEvent(String name, dynamic method) → void
inherited
sendInstanceGet<T>(String property) Future<T>
Get instance property
inherited
sendInstancePropertiesGet(dynamic nativeClass) Future<Map<String, dynamic>>
Get instance properties
inherited
sendInstanceSet(String property, dynamic value) Future<void>
Set instance property
inherited
toString() String
A string representation of this object.
inherited
updateInstance(dynamic instance) → void
inherited
updateResource(NativeResource resource) → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited