diff --git a/just_audio_background/CHANGELOG.md b/just_audio_background/CHANGELOG.md index 4035a212c..c483164a8 100644 --- a/just_audio_background/CHANGELOG.md +++ b/just_audio_background/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.0.1-beta.12 + +* Support setWebCrossOrigin. + ## 0.0.1-beta.11 * Pass through missing API methods. diff --git a/just_audio_background/lib/just_audio_background.dart b/just_audio_background/lib/just_audio_background.dart index 17caf5897..e57d7c7d7 100644 --- a/just_audio_background/lib/just_audio_background.dart +++ b/just_audio_background/lib/just_audio_background.dart @@ -291,6 +291,13 @@ class _JustAudioPlayer extends AudioPlayerPlatform { SetShuffleOrderRequest request) => _playerAudioHandler.customSetShuffleOrder(request); + @override + Future setWebCrossOrigin( + SetWebCrossOriginRequest request) async { + _playerAudioHandler.customSetWebCrossOrigin(request); + return SetWebCrossOriginResponse(); + } + @override Future seek(SeekRequest request) => _playerAudioHandler.customPlayerSeek(request); @@ -507,6 +514,11 @@ class _PlayerAudioHandler extends BaseAudioHandler )); } + Future customSetWebCrossOrigin( + SetWebCrossOriginRequest request) async { + return await (await _player).setWebCrossOrigin(request); + } + Future customConcatenatingInsertAll( ConcatenatingInsertAllRequest request) async { final cat = _source!.findCat(request.id)!;