openPlayer method

  1. @override
Future<int> openPlayer(
  1. TauPlayerCallback callback, {
  2. required Level logLevel,
  3. AudioFocus? focus,
  4. SessionCategory? category,
  5. SessionMode? mode,
  6. int? audioFlags,
  7. AudioDevice? device,
  8. bool? withUI,
})
override

Implementation

@override
Future<int> openPlayer(TauPlayerCallback callback, {required Level logLevel, AudioFocus? focus, SessionCategory? category, SessionMode? mode, int? audioFlags, AudioDevice? device, bool? withUI})
{
  return  invokeMethod( callback, 'openPlayer', {'logLevel': logLevel.index, 'focus': focus!.index, 'category': category!.index, 'mode': mode!.index, 'audioFlags': audioFlags, 'device': device!.index, 'withUI': withUI! ? 1 : 0 ,},) ;
}