setAudioFocus method
Future<int>
setAudioFocus(
- TauPlayerCallback callback, {
- AudioFocus? focus,
- SessionCategory? category,
- SessionMode? mode,
- int? audioFlags,
- AudioDevice? device,
override
Implementation
@override
Future<int> setAudioFocus(TauPlayerCallback callback, {AudioFocus? focus, SessionCategory? category, SessionMode? mode, int? audioFlags, AudioDevice? device,} ) async
{
return getWebSession(callback)!.setAudioFocus(focus!.index, category!.index, mode!.index, audioFlags, device!.index);
}