Commit Graph

1500 Commits

Author SHA1 Message Date
Gabriel Rivero
03f77495fc
VEX-6350: add onPlaybackStateChanged prop (#25)
* Adds the new prop onPlaybackStateChanged
2022-04-19 12:12:47 -04:00
Eran Hammer
6da215ccad
Create stale.yml 2022-04-19 00:40:15 -07:00
Eran Hammer
f61f9df833
Merge pull request #2633 from hueniverse/master
Fix iOS 15.4 race condition (HLS playback)
2022-04-15 13:30:41 -07:00
virgil
329df1d91a chore: 🤖 update changelog 2022-04-15 17:36:23 +08:00
virgil
285e9ca881 fix: 🐛 support ios cameraroll 2022-04-15 17:29:56 +08:00
Armands Malejev
f78c623df4
VEX-6779: React Native Video buildDrmSessionManager crash followup (#24)
Fix infinite loading on some devices caused by earlier fix to drm session manager crash
2022-04-07 12:36:50 -04:00
Gabriel Rivero
4d17096630
VEX-6779: React Native Video buildDrmSessionManager crash (#23)
Move DRM initialization logic into a separate thread to prevent ANRs.
2022-04-05 18:19:43 -04:00
Eran Hammer
0e3de84972
Update CHANGELOG.md 2022-04-05 12:45:53 -07:00
Eran Hammer
ccd9894910
Fix iOS 15.4 race condition 2022-04-05 12:34:41 -07:00
Armands Malejev
e39d87edae
VEX-6778: Android: React Native video getVideoTrackInfoFromManifest crash (#20)
JIRA: VEX-6778

Move video track info request logic entirely on a different thread, completely preventing ANRs in this section of code.
2022-03-31 15:37:53 +03:00
Renaud Chaput
4bf4ee7392
Use prop types from deprecated-react-native-prop-types
Starting with React Native 0.68, using Prop Types from `react-native` emits a warning.
2022-03-30 22:36:21 +02:00
Armands Malejevs
0e3fe11b78 Fix runtime issues 2022-03-30 15:33:17 +03:00
Armands Malejevs
edd3cc1698 Fix runtime issues 2022-03-30 15:27:09 +03:00
Armands Malejevs
bd1f7f50cb Fix runtime issues 2022-03-30 15:19:50 +03:00
Armands Malejevs
7067afa609 Fix runtime crash 2022-03-30 15:04:49 +03:00
Armands Malejevs
cca2744542 Fix typo 2022-03-30 14:49:40 +03:00
Armands Malejevs
142521bc0e Fix build issues 2022-03-30 14:43:04 +03:00
Armands Malejevs
2f77765fe2 Clean up 2022-03-30 14:35:48 +03:00
Armands Malejevs
88f32ae3c8 Move DRM init to a separate thread 2022-03-30 14:29:08 +03:00
Nick Fujita
39dee21efa
Updates disableDisconnectError retry condition to be more specific (#22)
Updates disableDisconnectError retry condition to be more specific.

Jira: VEX-6518

Reviews
Major reviewer (domain expert): @armadilio3
Minor reviewer: @gabriel-rivero
2022-03-30 18:17:56 +09:00
Armands Malejevs
b6f3652636 Capture more errors from DRM session manager 2022-03-29 15:21:39 +03:00
Igor Tironi
4eed72f224 update changelog 2022-03-03 16:03:59 -08:00
Igor Tironi
6d74eb686f Always check for hideShutterView before showing shutterView 2022-03-03 15:57:21 -08:00
Gabriel Rivero
e6dd52a245
VEX-6540: Disable recording when playing local videos (#18)
This PR adds core actions to enable or disable screenshots

Jira: VEX-6540
https://jira.tenkasu.net/browse/VEX-6540

velocity PR: crunchyroll/velocity#2248

New core actions were added to control the player surface and mark it as secure. Sending the prop to react-native-video will recreate the surface of the player changing it to a SurfaceView and enabling security

Reviews
Major reviewer (domain expert): @nickfujita
Minor reviewer: @armadilio3
2022-02-15 15:20:01 -04:00
Gabriel
2af360a7bb add useSecureView prop to prevent screen recording 2022-02-14 21:17:22 -04:00
Owen Hart
9398a15fc6 Update shaka-player 2022-02-04 16:29:58 -08:00
Owen Hart
5b41407d71 Fix lint 2022-02-04 12:32:34 -08:00
Armands Malejev
2ab029995f
VEX-6365: Improve memory management (#17)
Improve memory management to reduce pressure on low end devices.

JIRA: VEX-6365
2022-01-21 14:10:22 +02:00
Baris Sencan
63f12eaed6
Merge pull request #2552 from iagormoraes/master
Add google's maven repository to avoid to depend on JCenter dependency for Android
2022-01-19 19:14:00 +00:00
Preetam D'Souza
24434f44c2 Fix NPE with null codecInfo 2022-01-14 23:48:11 -05:00
Tuan Luong
7373761a4c check null before trigger action 2021-12-12 13:47:50 +07:00
Tuan Luong
859a0b8447 Merge https://github.com/react-native-video/react-native-video into feature/android-fullscreen 2021-12-12 13:17:12 +07:00
Iagor Moraes
28d3ec42b8 update CHANGELOG.md 2021-12-09 15:28:00 -03:00
Iagor Moraes
e7c009d908 add repository dependency and patch version 2021-12-09 15:23:48 -03:00
mike castleman
d10f7c5b85
clarify onProgress documentation
The docs for `progressUpdateInterval` say that the value is in milliseconds, but the docs for `onProgress` said that the value was in seconds. This fixes the latter documentation to be consistent with the former.
2021-12-06 12:44:47 -05:00
Gabriel Rivero
aa63361695
VEX-6030: Further prevent memory crashes (#15)
This PR is intended to prevent memory crashes when the free memory runs out

Jira: VEX-6030
https://jira.tenkasu.net/browse/VEX-6030

Velocity PR: crunchyroll/velocity#2043

By forcefully calling the garbage collector the memory crashes, specially on lower resolutions (<720p) are gone on devices with 2GB of ram or less and Android 6, also testing 3GB Android 7 with this patch, so far is working as intended

Reviews
Major reviewer (domain expert): @nickfujita
Minor reviewer: @jctorresM
2021-11-17 14:58:27 -04:00
Gabriel Rivero
ab202c96b6 typo 2021-11-16 21:40:38 -04:00
Gabriel Rivero
2b310cbf7e force garbage collector when free memory reaches 0 2021-11-16 20:35:30 -04:00
namrog84
79d6ebf99e remove unsupported arch and fix uimanager for rnw release 2021-11-15 15:57:24 -08:00
Gabriel Rivero
292b53916a
VEX-6030: Reduce buffer size based on heap (#13)
This PR changes the behavior on old devices that have poor memory management.

Jira: VEX-6030
https://jira.tenkasu.net/browse/VEX-6030

The solution implied customizing the method shouldContinueLoading from RNVLoadControl to use only the available heap, performing tests on an old Nexus 5 it was determined the ideal bytes allocation to half the reported heap, that provided some buffering during ads but smooth playback during the video with no crashes (23:39 of 23:39 at the moment of writing this, video kept playing as expected after 3 ad breaks)

The fix is only targeting Marshmallow as the reduction of buffer is substantial and other versions that work properly should not get affected.

Depending on the test result of VEX-5758, this same fix can be applied to Nougat

Reviews
Major reviewer (domain expert): @armadilio3
Minor reviewer: @nickfujita
2021-11-09 14:37:52 -04:00
Armands Malejev
f712eecb4f
VEX-6011: Align AVOD resolutions with available resolutions on Content (#14)
Add support for content tracks and improve track selection to work even during ads playback.
2021-11-09 14:22:32 +02:00
Tomasz Baranowicz
dad33ef885
Disable pipController init if pictureInPicture is false
Disable pipController init if pictureInPicture is set to false prevents going to PIP mode on iOS when the app goes to the background.
2021-11-05 12:42:45 +01:00
Gabriel Rivero
7dbc5eb078 add config parameter maxHeapAllocationPercent 2021-11-04 13:54:43 -04:00
Gabriel Rivero
40e450b0b1 VEX-6030-reduce-buffer-size-based-on-heap 2021-11-03 19:35:27 -04:00
Gabriel Rivero
0ab7ff476b VEX-6030-reduce-buffer-size-based-on-heap 2021-11-03 19:14:19 -04:00
Nick Fujita
e27baeb065
VEX-5938: Update resource loader to handle encrypted local files (#12)
Adds offline decryption key and uses it to decrypt content during offline playback

Jira: VEX-5938
https://jira.tenkasu.net/browse/VEX-5938

- Update to accept scheme for key required to play offline playback
- Uses provided scheme to intercept call from player and return the key
- Fixes player item observer removal pattern

### Reviews
- Major reviewer (domain expert): @armadilio3
2021-10-28 10:34:05 +09:00
Nick Fujita
8b75438148
VEX-5682: iOS Swift Conversion (#11)
Converts ios implementation from objective-c to swift.
2021-10-27 10:35:07 +09:00
Jonas Dalesjö
81ae785090 Release 5.2.0 2021-10-20 15:38:04 +02:00
Armands Malejev
3bcf2c6061
VEX-5798: Implement DRM L1 to L3 fallback (#9)
Add support for L1 to L3 Widevine fallback if playback fails initially.
2021-10-13 18:03:29 +03:00
Armands Malejev
2fcc1de626
VEX-5825: Android player error handling improvements (#10)
Improve error handling.
2021-10-12 14:56:50 +03:00