ByteRTCKTVPlayerDelegate class
- Inheritance
-
- Object
- NativeClass
- NativeObserverClass
- ByteRTCKTVPlayerDelegate
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
-
ktvPlayer$onPlayProgress$progress(ByteRTCKTVPlayer ktvPlayer, NSString musicId, int64_t progress)
→ FutureOr<void>
-
@detail callback
@author lihuan.wuti2ha
@brief Music playing progress callback.
@param ktvPlayer Current ktvPlayer. See ByteRTCKTVPlayer{@link #ByteRTCKTVPlayer}.
@param musicId Music ID.
@param progress Music playing progress in milliseconds.
-
ktvPlayer$onPlayStateChanged$state$error(ByteRTCKTVPlayer ktvPlayer, NSString musicId, ByteRTCPlayState state, ByteRTCKTVPlayerErrorCode error)
→ FutureOr<void>
-
@detail callback
@author lihuan.wuti2ha
@brief Music playing state changed callback.
@param ktvPlayer Current ktvPlayer. See ByteRTCKTVPlayer{@link #ByteRTCKTVPlayer}.
@param musicId Music ID.
@param state Music playing status. See ByteRTCPlayState{@link #ByteRTCPlayState}.
@param error Error code. See ByteRTCKTVPlayerErrorCode{@link #ByteRTCKTVPlayerErrorCode}.
@note
You will receive this callback on following events.
- When you successfully start playing music by calling playMusic:audioTrackType:audioPlayType:{@link #ByteRTCKTVPlayer#playMusic:audioTrackType:audioPlayType}, you will receive this callback with ByteRTCPlayStatePlaying playState. Otherwise the playState will be ByteRTCPlayStateFailed.
- If the music with the same music ID is playing when you call playMusic:audioTrackType:audioPlayType:{@link #ByteRTCKTVPlayer#playMusic:audioTrackType:audioPlayType} again, the music will restart from the starting position, and you will receive this callback with ByteRTCPlayStatePlaying playState to inform the latter music has started.
- When you successfully pause the music by calling pauseMusic:{@link #ByteRTCKTVPlayer#pauseMusic}, you will receive this callback with ByteRTCPlayStatePaused playState. Otherwise the playState will be ByteRTCPlayStateFailed.
- When you successfully resume the music by calling resumeMusic:{@link #ByteRTCKTVPlayer#resumeMusic}, you will receive this callback with ByteRTCPlayStatePlaying playState. Otherwise the playState will be ByteRTCPlayStateFailed.
- When you successfully stop the music by calling stopMusic:{@link #ByteRTCKTVPlayer#stopMusic}, you will receive this callback with ByteRTCPlayStateStoped playState. Otherwise the playState will be ByteRTCPlayStateFailed.
- When the music ends, you will receive this callback with ByteRTCPlayStateFinished playState.
-
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
-
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