start method
@detail api
@brief Start playing the audio. Call this API when you call open:config:{@link #ByteRTCMediaPlayer#open:config} and set AutoPlay=False.
@return
- 0: Success.
- < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details.
@note
- For audio file in PCM format, see openWithCustomSource:config:{@link #ByteRTCMediaPlayer#openWithCustomSource:config}.
openWithCustomSourceand this API are mutually exclusive. - After calling this API, call stop{@link #ByteRTCMediaPlayer#stop} to stop playing the audio file.
Implementation
FutureOr<int> start() async {
return await nativeCall('start', []);
}