stop method

FutureOr<int> stop()

@detail api @brief 调用 open:config:{@link #ByteRTCMediaPlayer#open:config}, start{@link #ByteRTCMediaPlayer#start}, 或 openWithCustomSource:config:{@link #ByteRTCMediaPlayer#openWithCustomSource:config} 开始播放后,可以调用本方法停止。 @return - 0: 调用成功。 - < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明

Implementation

FutureOr<int> stop() async {
  return await nativeCall('stop', []);
}