restart method

Future<int> restart()

恢复播放(eg:进入回放或者设置界面需要停止播放) 无需重新创建播放窗口

Implementation

Future<int> restart() async {
  _playHandle = await _mediaPlayer.restart(
      msg: SurfaceMessage(playHandle: _playHandle, textureId: textureId));
  _createdSurface!.playHandle = _playHandle;
  _onCreate();
  return _playHandle;
}