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