fix(android): refactor source, fix random DRM issue and crop start on local asset (#3835)

* fix: refactor source parameter parsing

Also fix a side issue when using a local file cropping props were not applied
Also fix random DRM issue by refactoring initializePlayerSource https://github.com/TheWidlarzGroup/react-native-video/issues/3082

* chore: restore metadata checks before appling them
This commit is contained in:
Olivier Bouillet
2024-05-30 08:53:49 +02:00
committed by GitHub
parent 1b51c15348
commit bdf3e556d8
5 changed files with 296 additions and 179 deletions

View File

@@ -130,6 +130,12 @@ class VideoPlayer extends Component {
description: 'local file landscape',
uri: require('./broadchurch.mp4'),
},
{
description: 'local file landscape cropped',
uri: require('./broadchurch.mp4'),
cropStart: 3000,
cropEnd: 10000,
},
{
description: 'local file portrait',
uri: require('./portrait.mp4'),