Commit Graph

42 Commits

Author SHA1 Message Date
Olgun Kaya
79b659d614 implemented ad event propogation towards react component from native view for android. 2021-09-04 15:27:28 +03:00
Olgun Kaya
3fed079b34 no message 2021-06-18 13:52:03 +03:00
Olgun Kaya
f6e70de15f little positional tweak to make it look more composed on gradle build file 2021-06-18 13:51:47 +03:00
Olgun Kaya
6c46dcffa8 Merge branch 'implement-ima-sdk' into master
# Conflicts:
#	android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java
#	examples/basic/package.json
#	examples/basic/yarn.lock
#	ios/Video/RCTVideo.h
#	ios/Video/RCTVideo.m
#	ios/Video/RCTVideoManager.m
#	react-native-video.podspec
2021-06-15 15:42:07 +03: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
Daniel Mariño
81b42e7ca7
Add iOS and Android basic DRM support (#1445)
This PR adds support for DRM streams on iOS (Fairplay) and Android (Playready, Widevine, Clearkey)

I am neither Android nor iOS developer, so feel free to provide feedback to improve this PR.

**Test stream for ANDROID:**
```
testStream = {
        uri: 'http://profficialsite.origin.mediaservices.windows.net/c51358ea-9a5e-4322-8951-897d640fdfd7/tearsofsteel_4k.ism/manifest(format=mpd-time-csf)',
        type: 'mpd',
        drm: {
            type: DRMType.PLAYREADY,
            licenseServer: 'http://test.playready.microsoft.com/service/rightsmanager.asmx?cfg=(persist:false,sl:150)'
        }
    };
```

or 
```
{
    uri: 'https://media.axprod.net/TestVectors/v7-MultiDRM-SingleKey/Manifest_1080p.mpd',
    drm: {
        type: 'widevine', //or DRMType.WIDEVINE
        licenseServer: 'https://drm-widevine-licensing.axtest.net/AcquireLicense',
        headers: {
            'X-AxDRM-Message': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2ZXJzaW9uIjoxLCJjb21fa2V5X2lkIjoiYjMzNjRlYjUtNTFmNi00YWUzLThjOTgtMzNjZWQ1ZTMxYzc4IiwibWVzc2FnZSI6eyJ0eXBlIjoiZW50aXRsZW1lbnRfbWVzc2FnZSIsImZpcnN0X3BsYXlfZXhwaXJhdGlvbiI6NjAsInBsYXlyZWFkeSI6eyJyZWFsX3RpbWVfZXhwaXJhdGlvbiI6dHJ1ZX0sImtleXMiOlt7ImlkIjoiOWViNDA1MGQtZTQ0Yi00ODAyLTkzMmUtMjdkNzUwODNlMjY2IiwiZW5jcnlwdGVkX2tleSI6ImxLM09qSExZVzI0Y3Iya3RSNzRmbnc9PSJ9XX19.FAbIiPxX8BHi9RwfzD7Yn-wugU19ghrkBFKsaCPrZmU'
        },
    }
}
```

**Test stream for iOS:**
Sorry but I can not provide free streams to test. If anyone can provide test streams, or found some we can use, please let me know to also test them.

It has been tested with a private provider and they work, at least with the `getLicense` override method. (An example implementation is provided in the README)
2020-08-12 18:56:21 -07:00
limaAniceto
7c8c613a65
Upgrade exoplayer to 2.11.4 (#2034) 2020-06-11 09:17:33 -04:00
Robby Widyahartono
519355ea58 Implement Interactive Media Ads (IMA) SDK 2019-12-10 11:40:49 +07:00
Learnyst
0df667692b Audio Poster issue fix (#1779) 2019-11-26 14:40:03 -05:00
Benoit Dion
3e38f88869 Remove Exoplayer deprecations
- Bump Exoplayer to 2.10.4
- Remove deprecated usages of Exoplayer methdos
- Add `ReactExoplayerConfig` as extension points to configure the Exoplayer instance
2019-09-23 08:52:05 -04:00
Daniel Mariño Ruiz
a45e857bbc
Merge branch 'release/5.0.0' into update-androidx 2019-07-25 10:05:53 +02:00
vok
222adf5f7b remove matchingfallbacks in example 2019-07-24 09:02:50 +07:00
Daniel Mariño Ruiz
7949c55c94
Merge pull request #1629 from vokhuyetOz/android-28
Android 28, pre to androidx
2019-07-04 10:01:27 +02:00
vok
a203aeadea pre androidX, upgrade to 28 2019-06-21 09:32:51 +07:00
vok
4f36eb1254 update for androidX 2019-06-19 14:37:21 +07:00
JB Paul
d61a0d7983
update other vulnerable 2019-05-24 18:03:38 +09:00
Marius Reimer
300f28335f Adding compileOptions Java 1.8 to build.gradle 2019-02-26 11:21:28 +01:00
sridhar
88e9ed6c08 Gradle changes reverted back
Gradle changes reverted back
2019-01-24 19:02:26 +05:30
sridhar
91e0206a41 Exoplayer gradle changes
Exoplayer gradle changes
2019-01-24 15:44:45 +05:30
Hampton Maxwell
3c313e2e61 Revert build.gradle changes from video track selection PR 2018-12-31 21:57:31 -08:00
Hampton Maxwell
45a851e79a
Merge branch 'master' into master 2018-12-31 21:36:49 -08:00
Hampton Maxwell
7f2c4ab0ed
Reenable ExoPlayer exclusions 2018-12-31 21:36:02 -08:00
Hampton Maxwell
05d9d360f8 Update to OkHTTP 3.12.1 and ExoPlayer 2.9.3 2018-12-31 13:51:29 -08:00
Hampton Maxwell
05ae20c772 Update ExoPlayer to 2.9.1 and OkHTTP to 3.12.0 2018-11-21 00:07:11 -08:00
sridhar
41cbf073c7 Bandwidth is reported as enevts when download happens. Not by timer method
Bandwidth is reported as enevts when download happens. Not by timer method
2018-11-01 15:18:59 +05:30
Hampton Maxwell
d87568db0e
Feature/exoplayer 2.9 (#1285)
Update to ExoPlayer 2.9.0 & document version 4.0.0 breaking changes
2018-10-13 20:16:10 -07:00
Hampton Maxwell
051a2c39f4
Merge branch 'master' into fix/gradle3 2018-10-13 19:18:13 -07:00
Hampton Maxwell
e50c2ad314 Update to ExoPlayer 2.8.4 2018-10-07 12:53:58 -07:00
Tom Spencer
00174b63b8 Support RN 0.57 w/ gradle 3 2018-09-06 09:44:27 +01:00
Hampton Maxwell
40cafdcb2e Upgrade to ExoPlayer 2.8.2 2018-08-07 23:10:03 -07:00
Hampton Maxwell
f0ee821225 Change ExoPlayer version to 2.8.2 2018-08-06 14:23:33 -07:00
Hampton Maxwell
1c9f2caa19 Apply SDK vars simplification 2018-07-24 13:19:45 -07:00
Hampton Maxwell
20f9c291cd
Revert "Revert "Using SDK Version variables from root project"" 2018-06-21 10:29:38 -07:00
Hampton Maxwell
7511487baf
Revert "Using SDK Version variables from root project" 2018-06-21 09:18:12 -07:00
Hampton Maxwell
13601b9991
Merge branch 'master' into master 2018-06-09 16:48:13 -07:00
Peace
785cac6f46 Upgrade Exoplayer to 2.7.3; OkHttp to 3.9.1. 2018-05-21 09:28:59 -05:00
Rayron Victor
4e85d3a1c4 Using SDK Version variables from root project
Instead of assuming the `compileSdkVersion`, `targetSdkVersion`, etc, read it from the root project.
Default `compileSdkVersion` and `targetSdkVersion` to the latest versions.

Android Target API Level 26 will be required in August 2018.
https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html
And the React Native team is already working on this:
facebook/react-native#17741
facebook/react-native#18095
2018-04-24 14:51:07 -03:00
Peace
2477288ea2 Upgrade ExoPlayer to 2.7.2 2018-04-03 12:19:04 -05:00
Michal Drbohlav
7f2cd8751a updated to ExoPlayer 2.4.0, added support for playback rate change (#605) 2017-06-13 18:45:12 -04:00
Ralph Pina
be55cef093 bump android dependencies (#524)
* bump android dependencies

* fixed lint
2017-03-21 16:25:46 -04:00
Andrew Jack
e76936b4fc Update ExoPlayer to r2.2.0 (#505) 2017-03-21 16:25:17 -04:00
Andrew Jack
9a936c9e8f ExoPlayer (#426) 2017-01-11 07:51:45 -05:00