openPlayer method
Future<int>
openPlayer(
- TauPlayerCallback callback, {
- required Level logLevel,
- AudioFocus? focus,
- SessionCategory? category,
- SessionMode? mode,
- int? audioFlags,
- AudioDevice? device,
- 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 ,},) ;
}