initialize method

  1. @override
  2. @Deprecated("this method call will no longer be effective")
Future<void> initialize({
  1. bool? onlyAudio,
})
override

Player initialization, creating shared textures and initializing the player. @param onlyAudio Whether it is pure audio mode.

播放器初始化,创建共享纹理、初始化播放器 @param onlyAudio 是否是纯音频模式

Implementation

@override
@Deprecated("this method call will no longer be effective")
Future<void> initialize({bool? onlyAudio}) async {
  if (_isNeedDisposed) return;
  await _initPlayer.future;
  // IntMsg intMsg = await _livePlayerApi.initialize(BoolPlayerMsg()
  //   ..value = onlyAudio ?? false
  //   ..playerId = _playerId);
  _state = TXPlayerState.paused;
}