Otherwise, the Video can be initiated with playback rate 0.5 and
play correctly (slower), but in native playback speed controls 1.0
will be marked as current playback speed.
* feat: manage asset plugins
* fix: continue when plugin is not exoplayer plugin
* refactor: change functions plugin type
* docs: introduce new plugins
* fix: call startForeground() immediately in onStartCommand() to prevent ForegroundServiceDidNotStartInTimeException
* fix: use string resources for notification text instead of hardcoded strings
* fix: add missing import
* fix: resolve CI issues
* fix: use getString() method to convert string resource IDs to actual strings
- When the metadata has the tag "iTunSMPB" or "iTunNORM" then the metadata is not converted correctly and comes [nil, nil, ...] which leads to crash
Co-authored-by: Alexander <aleksandar.todorov@serviceos.com>
* fix(android): fixed bug where listeners were not removed properly
* fix(android): fixes a bug that causes PIP to work when player is null
* refactor(android): call pipUnsubscriber without handler
* chore(android): apply lint
* fix(android): fix gradle exception text related to AndroidX version check
* Update android/build.gradle
---------
Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com>
This reverts the change in https://github.com/TheWidlarzGroup/react-native-video/pull/4319, I don't think that change is correct.
According to [docs](https://docs.thewidlarzgroup.com/react-native-video/component/props#selectedtexttrack) the default value for `selectedTextTrack.type` is "system" which means the video should respect user's preference in Settings > Accesibility > Subtitles & Captioning > Closed Captions + SDH. And this is exactly what happens by default without the changes in that PR. I think the author of that PR had this setting on, that's why it was showing the subtitles without setting something for `selectedTextTrack`, which IMO is the expected result. In order to explicitly turn off subtitles you have to set `selectedTextTrack={{ type: 'disabled' }}`. I tested it with this video and the settings option on and it works (disables the subtitles) -> https://devstreaming-cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_ts/master.m3u8
Another reason why I think it should be reverted is because it also affects `selectedAudioTrack`. By default it should also have 'system' type according to [docs](https://docs.thewidlarzgroup.com/react-native-video/component/props#selectedaudiotrack), which means "Play the audio track that matches the system language. If none match, play the first track.", but the change in that PR turns the audio off by default unless you explicitly turn it on with `selectedAudioTrack={{ type: 'system' }}`.
Fixes#4400