initialize method
- @override
- @Deprecated("this method call will no longer be effective")
- bool? onlyAudio,
override
To initialize the player, you would need to create a shared texture and initialize the player. @param onlyAudio 是否是纯音频模式 if pure audio mode
播放器初始化,创建共享纹理、初始化播放器
Implementation
@override
@Deprecated("this method call will no longer be effective")
Future<void> initialize({bool? onlyAudio}) async {
if (_isNeedDisposed) return;
await _initPlayer.future;
// final textureId = await _vodPlayerApi.initialize(BoolPlayerMsg()
// ..value = onlyAudio ?? false
// ..playerId = _playerId);
_changeState(TXPlayerState.paused);
}