2015-03-30 23:07:55 -06:00
|
|
|
{
|
2021-06-15 06:42:07 -06:00
|
|
|
"name": "react-native-video-inc-ads",
|
2021-09-04 06:27:28 -06:00
|
|
|
"version": "0.0.3",
|
2021-06-15 06:42:07 -06:00
|
|
|
"description": "A <Video /> element for react-native with ads support. This is a project merging a fork and its master",
|
2017-08-16 13:19:51 -06:00
|
|
|
"main": "Video.js",
|
|
|
|
"license": "MIT",
|
|
|
|
"author": "Brent Vatne <brentvatne@gmail.com> (https://github.com/brentvatne)",
|
|
|
|
"contributors": [
|
2018-06-11 12:05:26 -06:00
|
|
|
{
|
2018-02-20 08:42:27 -07:00
|
|
|
"name": "Isaiah Grey",
|
|
|
|
"email": "isaiahgrey@gmail.com"
|
|
|
|
},
|
2017-08-16 13:19:51 -06:00
|
|
|
{
|
|
|
|
"name": "Johannes Lumpe",
|
|
|
|
"email": "johannes@lum.pe"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Baris Sencan",
|
|
|
|
"email": "baris.sncn@gmail.com"
|
2018-05-28 22:43:18 -06:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Hampton Maxwell",
|
|
|
|
"email": "me@hamptonmaxwell.com"
|
2021-06-15 06:42:07 -06:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Olgun Kaya",
|
|
|
|
"email": "olgunkaya2002@gmail.com"
|
2017-08-16 13:19:51 -06:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2021-06-15 06:42:07 -06:00
|
|
|
"url": "git@github.com:olgunkaya/react-native-video-inc-ads.git"
|
2015-10-29 18:26:28 -06:00
|
|
|
},
|
2017-08-16 13:19:51 -06:00
|
|
|
"devDependencies": {
|
2020-02-25 17:10:26 -07:00
|
|
|
"@react-native-community/eslint-config": "0.0.7",
|
2020-02-22 11:56:31 -07:00
|
|
|
"babel-eslint": "10.0.3",
|
|
|
|
"eslint": "6.8.0",
|
|
|
|
"react": "^16.12.0",
|
|
|
|
"react-dom": "^16.12.0",
|
|
|
|
"react-hot-loader": "^4.12.19",
|
2021-04-08 11:37:35 -06:00
|
|
|
"react-native": "^0.61.5",
|
|
|
|
"react-native-windows": "^0.61.0-0"
|
2017-08-16 13:19:51 -06:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2018-12-31 23:04:04 -07:00
|
|
|
"keymirror": "^0.1.1",
|
2020-02-22 11:56:31 -07:00
|
|
|
"prop-types": "^15.7.2",
|
|
|
|
"shaka-player": "^2.5.9"
|
2017-08-16 13:19:51 -06:00
|
|
|
},
|
|
|
|
"scripts": {
|
2020-02-22 11:56:31 -07:00
|
|
|
"lint": "yarn eslint *.js"
|
2018-06-11 12:05:26 -06:00
|
|
|
},
|
2018-12-31 23:04:04 -07:00
|
|
|
"files": [
|
2018-09-12 14:01:28 -06:00
|
|
|
"android-exoplayer",
|
|
|
|
"android",
|
2018-11-21 10:21:15 -07:00
|
|
|
"dom",
|
2018-09-12 14:01:28 -06:00
|
|
|
"ios",
|
|
|
|
"windows",
|
2018-11-21 10:21:15 -07:00
|
|
|
"FilterType.js",
|
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 19:56:21 -06:00
|
|
|
"DRMType.js",
|
2018-09-12 14:01:28 -06:00
|
|
|
"TextTrackType.js",
|
2018-11-21 10:21:15 -07:00
|
|
|
"VideoResizeMode.js",
|
|
|
|
"react-native-video.podspec"
|
2018-09-12 14:01:28 -06:00
|
|
|
]
|
2021-06-15 06:42:07 -06:00
|
|
|
}
|