ByteRTCMediaPlayerConfig class

Inheritance
  • Object
  • NativeClass
  • ByteRTCMediaPlayerConfig

Constructors

ByteRTCMediaPlayerConfig([NativeClassOptions? options])

Properties

$resource → NativeResource
no setterinherited
autoPlay FutureOr<BOOL?>
@brief Play the audio automatically. If not, call start{@link #ByteRTCMediaPlayer#start} to play the audio. True by default.
getter/setter pair
callbackOnProgressInterval FutureOr<NSInteger?>
@brief Set the interval of the periodic callback onMediaPlayerPlayingProgress:progress:{@link #ByteRTCMediaPlayerEventHandler#onMediaPlayerPlayingProgress:progress} during audio mixing in ms.
- interval > 0: The callback is enabled. The actual interval is a multiple of 10. If the input value is not divisible by 10, it will be automatically rounded up. For example, if 52 is entered, the actual interval is 60 ms. - interval <= 0: The callback is disabled.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
playCount FutureOr<NSInteger?>
@brief Mix playback times
- Play_count < = 0: Infinite loop - Play_count == 1: Play once (default) - Play_count > 1: Play play_count times
getter/setter pair
ready Future<void>
Whether the instance is initialized
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startPos FutureOr<NSInteger?>
@brief The starting position in ms. 0 by default.
getter/setter pair
syncProgressToRecordFrame FutureOr<BOOL?>
@brief Attach the process information of local audio file mixing to the captured audio data. Enable the function to enhance the synchronicity of the remote audio mixing.
- The function is effective when mixing a single audio file. - Use true for enabling the function and false for disable the function. The default is false.
getter/setter pair
type FutureOr<ByteRTCAudioMixingType?>
@brief For mixing playback types. See ByteRTCAudioMixingType{@link #ByteRTCAudioMixingType}
getter/setter pair

Methods

destroy() → void
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
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
updateResource(NativeResource resource) → void
inherited

Operators

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

Static Properties

codegen_$namespace → dynamic
no setter