initialize method

  1. @override
  2. @Deprecated("this method call will no longer be effective")
Future<void> initialize({
  1. 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);
}