stop method

FutureOr<int> stop()

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

Implementation

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