initialize method
- @override
- @Deprecated("this method call will no longer be effective")
- bool? onlyAudio,
override
Initialize the player, which creates a shared texture and initializes the player. @param onlyAudio whether to use 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;
_changeState(TXPlayerState.paused);
}