getCurrentPosition method
获取当前播放位置的时间点 单位: ms, 需要在收到onPrepare的通知后调用 返回: 当前播放位置的时间点 -1: 失败 Get the timestamp of the current playback position. Unit: milliseconds. The method is called after receiving the notification sent by onPrepare. Return: The current playback position. -1: failure
Implementation
Future<int> getCurrentPosition() {
return NeliveplayerPlatform.instance.getCurrentPosition(_playerId);
}