Commit Graph

1508 Commits

Author SHA1 Message Date
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
Jonas Dalesjö
d05f3dd5b9 Typo 2021-10-11 10:27:04 +02:00
Jonas Dalesjö
31f866cd9f Release 5.2.0-alpha1 2021-10-11 10:20:32 +02:00
Armands Malejev
a0b679cc07
VEX-5545: Some Android codecs don't support specific resolutions (#8)
Add support for detecting if format is supported and exclude unsupported resolutions from auto quality selection and video track info in RN.
2021-09-26 16:38:10 +03:00
Jonas Dalesjö
bf11502fdb
Merge pull request #2215 from valtech-sd/master
Resolved ignored silent switch in iOS when player is set to paused
2021-09-09 21:34:50 +02:00
Shane Mckenna
688650a9db
Merge pull request #1 from valtech-sd/bugfix/fix-tvOS-audio-menu
Fix for tvOS native audio menu language selector
2021-08-26 15:33:10 -07:00
Shane Mckenna
a42240d554 Fix for tvOS native audio menu language selector 2021-08-23 11:59:53 -07:00
Jonas Dalesjö
724b8629f6
Merge pull request #2412 from crunchyroll/exo-pre-init
Update exoplayer to allow pre-init and content clear
2021-08-19 10:50:15 +02:00
Tuan Luong
7c17f5ec96
Update ReactExoplayerView.java 2021-08-06 10:56:07 +07:00
Armands Malejev
93604b2c25
VEX-3245: Buffer Progress UI While Paused (#7)
Add support for onBufferProgress prop on Android to get buffer data even when the player is paused.
2021-07-07 18:59:55 +03:00
Tuan Luong
4951c2e13c Merge https://github.com/react-native-video/react-native-video into feature/android-fullscreen 2021-07-04 15:18:38 +07:00
Nick
b5b5da0684 update exoplayer to allow pre-init and content clear 2021-06-30 11:34:02 +09:00
Nick Fujita
cba88fa9d8
VEX-5044: Allow exoplayer to preinit with empty source (#6)
- Allow player to be init before source is provided, and later update once a source is provided.
- Adds handling for providing a empty source in order to stop playback and clear out any existing content
2021-06-30 10:24:21 +09:00
Jonas Dalesjö
db58ba90f1
Merge pull request #2167 from redspear/1930-ios-reapply-rate-modifier
Fix: iOS rate is reset to 1.0 after play/pause #1930
2021-06-24 17:49:05 +02:00
Armands Malejev
141192a56d
Upgrade ExoPlayer to 2.13.2 (#2317)
Upgrade ExoPlayer from 2.11.4 to 2.13.2 and fix any issues related to the upgrade and deprecated method use.
2021-06-24 14:01:11 +09:00
Armands Malejev
fcc66df945
Fix AudoFocus pausing video when attempting to play (#2311)
Fix AudioFocus bug that could cause the player to stop responding to play/pause in some instances.

Fixes issue #1945

This was caused by the player requesting audio focus on each play (un-pause) and that resulted in a small window of Audio focus loss and then gain. The focus loss results in the player being paused while the player was supposed to play at the time. The solution is to keep track of Audio focus and not request new focus if we already have it.
2021-06-24 14:00:38 +09:00
Tuan Luong
d094886087 keep screen on when in fullscreen mode 2021-06-13 12:06:37 +07:00
Tuan Luong
c89649b513 Merge https://github.com/react-native-video/react-native-video into feature/android-fullscreen 2021-06-13 11:06:05 +07:00
anderslemke
dcea67eb96 Make sure modifiers are applied before playing 2021-06-03 15:11:57 +02:00
Dan Levy
adf895dcdf
Fix for issue #2153 2021-05-18 09:20:32 -06:00
Armands Malejev
80873102a4
VEX-4579: Network loss handling (#5)
Add support for customizing back buffer duration and handle network errors gracefully to prevent releasing the player when network is lost.
2021-05-17 13:09:09 +03:00
Armands Malejev
f6cce0d819
VEX-4556: The app crashes when the premium episode is loaded (#4)
Fix player crashing when it is being cleared.
2021-05-07 11:37:57 +03:00
Milan Susnjar
1eb11ce7b7
Update README.md (#2292)
Fix broken link for ignoresilentswitch
2021-04-08 13:52:10 -04:00
Jon Thysell
d7ac23d39b
React Native Windows updates (#2206)
Various updates for React Native Windows

**Docs**
* Fixed windows installation in readme
* Added local dev setup instructions

**Build**
* Added VS solutions for RNW 0.61, 0.62, and 0.63+
* Added clang-formatting definition

**Features**
* Fixed autolinking for RNW 0.63+
* Added support for `rate` property

**Examples**
* Upgraded examples/basic to RN 0.61 and replaced broken windows app
2021-04-08 13:37:35 -04:00
Sean Holbert
3dc607c461
Exoplayer: Use okhttp version specified in gradle.properties (#2340)
Because React Native uses okhttp, including exoplayer causes apps to use two different versions of okhttp.  This results in some unpredictable behavior.  Clients of `react-native-video` should be able to specify the same OKHTTP version to react-native and react-native video.

See where it's specified in react-native trunk: 
- https://github.com/facebook/react-native/blob/master/ReactAndroid/gradle.properties#L15
- e1b6cd3f75/ReactAndroid/build.gradle (L452-L453)
2021-04-08 13:36:11 -04:00
Alexander Sklar
edf0e27769
Update ReactNativeVideoCPP.vcxproj (#2288) 2021-04-07 20:51:01 -04:00
Adrian Mui
61e6535b2f
Feature/toggle buffering (#3)
This PR adds the property disableBuffering: boolean for android. The PR was initally created as a personal fork and referenced in crunchyroll/vilos#1227

also updated RNVLoadControl constructor and method to reflect new ExoPlayer.LoadControl api

related ticket: https://jira.tenkasu.net/browse/VEX-3776
2021-03-18 12:58:04 +02:00
Armands Malejev
6100981760
Upgrade exoplayer to 2.13.2 (#2)
Upgrade ExoPlayer from 2.11.4 to 2.13.2 and fix any related issues related to the upgrade and deprecated method use.
2021-03-17 17:49:10 +02:00
Armands Malejev
568971be77
Fix AudoFocus pausing video when attempting to play (#1)
Fix AudioFocus bug that could cause the player to stop responding to play/pause in some instances.

Fixes issue react-native-video#1945

This was caused by the player requesting audio focus on each play (un-pause) and that resulted in a small window of Audio focus loss and then gain. The focus loss results in the player being paused while the player was supposed to play at the time. The solution is to keep track of Audio focus and not request new focus if we already have it.
2021-03-15 16:51:16 +02:00
Nick
5adedb131b Update package.json version number to 5.1.1 2021-01-14 11:13:39 +09:00
Nick Fujita
88b636f158
iOS DRM Fixes for License Fetching (#2208) 2021-01-13 19:18:01 +09:00
Cameron Perry
f79782b447 Resolved an issue where setting a video to paused would ignore the “silent switch” setting 2020-11-19 16:18:31 -08:00
Mudaser Ali
e17ee74f79
Update README.md 2020-10-17 08:59:12 +05:00
Mudaser Ali
38511bbf1c
Update Method List 2020-10-17 08:58:05 +05:00
Mudaser Ali
2dea87c220
Update Event props in README.md 2020-10-17 08:54:44 +05:00
Mudaser Ali
991f94b228
Update README.md 2020-10-16 18:54:50 +05:00
Alec Winograd
42deedc8d1 Update changelog 2020-10-15 11:24:46 -05:00
Alec Winograd
5f1ec04cef
Fix default behavior for captions in ExoPlayer 2020-10-15 11:17:49 -05:00
Tero Paananen
faf8aed29b
Renaming Boolean etc to AsBoolean (#2119) 2020-09-30 14:27:39 -04:00
Radek Czemerys
f653589ecd
fix: Xcode 12 compatibility (#2152)
Latest Xcode 12 fails to build while without a module to depend on React-Core directly hence this change is necessary for native modules on iOS. This change requires to React Native 0.60.2 or newer. For more details please check: facebook/react-native#29633 (comment)
2020-09-29 10:05:28 -04:00
Irwin
4246016fb4
Update README.md (#2076)
You only need to perform linking for React Native < 0.60
2020-09-29 10:01:02 -04:00
Adam Gorman
408d3f720e
Add ARM64 support for windows (#2137)
Adding arm64 support for RNW builds.

Nothing in this project is using anything that isn't already supported in arm64 windows libs. It was simply overlooked when RNW was originally added.

We have been using RNW and RNV in our project for 6+ months and just been using a patch-package to apply this change. Figured it was overdue to upstream this change.

You can see this similar code in the RNW repo.
95935e0086/packages/microsoft-reactnative-sampleapps/windows/SampleLibraryCPP/SampleLibraryCPP.vcxproj (L28)
and
https://github.com/microsoft/react-native-windows/blob/master/packages/microsoft-reactnative-sampleapps/windows/SampleLibraryCPP/SampleLibraryCPP.vcxproj#L44
2020-09-29 10:00:27 -04:00
redspear
522af9eaa7 Bugfix: #1930 2020-09-28 09:56:06 +10:00