ByteRTCMediaPlayerEventHandler class
- Inheritance
-
- Object
- NativeClass
- NativeObserverClass
- ByteRTCMediaPlayerEventHandler
- Implementers
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>
-
-
onMediaPlayerPlayingProgress$progress(int playerId, int64_t progress)
→ FutureOr<void>
-
@detail callback
@brief Periodic callback for audio mixing progress. The period is set by setProgressInterval:{@link #ByteRTCMediaPlayer#setProgressInterval}.
@param playerId The ID of ByteRTCMediaPlayer{@link #ByteRTCMediaPlayer}. Set by getMediaPlayer:{@link #ByteRTCEngine#getMediaPlayer}.
@param progress Mixing progress in ms.
-
onMediaPlayerStateChanged$state$error(int playerId, ByteRTCPlayerState state, ByteRTCPlayerError error)
→ FutureOr<void>
-
@detail callback
@brief Callback for audio mixing status change.
@param playerId The ID of ByteRTCMediaPlayer{@link #ByteRTCMediaPlayer}. Set by getMediaPlayer:{@link #ByteRTCEngine#getMediaPlayer}.
@param state See ByteRTCPlayerState{@link #ByteRTCPlayerState}.
@param error See 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