Skip to content
Open
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
325 commits
Select commit Hold shift + click to select a range
bd8aa99
Changed the execution order of initializePlayerControl method in orde…
Feb 5, 2019
739a636
Fix so background audio from other apps can play when disableFocus is…
Feb 7, 2019
a55b7e5
Added details to readme and changelog
Feb 7, 2019
c361b79
Cleanup controls comment
cobarx Feb 11, 2019
4080349
Code formatting cleanups for controls
cobarx Feb 11, 2019
e0fd69e
Merge pull request #1414 from IbrahimSulai/master
cobarx Feb 11, 2019
77411f2
Rename failureRetryCount to minLoadRetryCount
cobarx Feb 11, 2019
35250fa
Rename failureRetryCount to minLoadRetryCount
cobarx Feb 11, 2019
e4763c9
Rename failureRetryCount to minLoadRetryCount
cobarx Feb 11, 2019
420d88d
Rename failureRetryCount to minLoadRetryCount
cobarx Feb 11, 2019
2898f8c
Revert changes to video group index unset code
cobarx Feb 11, 2019
4424774
Merge pull request #1448 from sridhard/master
cobarx Feb 11, 2019
891add6
Throw an error instead of crashing app when video source is empty
laurent22 Feb 11, 2019
4dd1c73
improve props
Feb 12, 2019
d759e97
Merge branch 'feature/ios-drm-support' of github.com:24i/react-native…
Feb 12, 2019
e5cd51a
allow base64 cer response
Feb 12, 2019
d981f80
Update iOS readme
Feb 12, 2019
e7f1732
Merge branch 'rnv-master' into feature/ios-drm-support
Feb 12, 2019
801dce4
more readable java version for gradle
Feb 14, 2019
d8a2a9e
fix(ios): message sent to deallocated instance (#1482)
n1ru4l Feb 14, 2019
b448b30
fix: remove runtime warning by replacing `UIManager.RCTVideo` with `U…
nitishxyz Feb 18, 2019
98eb7a3
Merge pull request #1478 from laurent22/master
cobarx Feb 19, 2019
075dfba
Only check for an empty source
cobarx Feb 19, 2019
f69231f
Merge pull request #1246 from niklassaers/master
cobarx Feb 19, 2019
02851bb
Display a warning when source is empty instead of throwing an error
cobarx Feb 19, 2019
967dc3f
Add items for 4.4.0
cobarx Feb 19, 2019
d5fe47f
Merge pull request #1325 from Khan/pip
cobarx Feb 19, 2019
80fb571
Picture in Picture iOS
cobarx Feb 19, 2019
dc75d23
fix: access on undefined variable
n1ru4l Feb 19, 2019
e1882fd
Merge pull request #1488 from react-native-community/fix-undefined-ui…
cobarx Feb 19, 2019
b5c2577
Fix undefined variable
cobarx Feb 19, 2019
f38b6f8
Version 4.4.0
cobarx Feb 19, 2019
fd16a93
Merge branch 'rnv-master' into feature/ios-drm-support-update
Feb 21, 2019
59b541c
fix merge
Feb 21, 2019
5b92ea0
remove extra curly brace
Feb 22, 2019
a7780f9
add missing curly after merge
Feb 22, 2019
300f283
Adding compileOptions Java 1.8 to build.gradle
reime005 Feb 26, 2019
decb56e
support for controls
CHaNGeTe Mar 5, 2019
f710df5
Merge pull request #1499 from NectGmbH/detox-10-android-build
cobarx Mar 5, 2019
0ecba93
Merge branch 'master' of https://github.com/react-native-community/re…
cobarx Mar 10, 2019
933bbae
Fix tvOS picture-in-picture compilation regression.
FullstackJack Mar 12, 2019
5dbf7e2
Remove unused delegate in header file.
FullstackJack Mar 12, 2019
9016d19
Merge pull request #1518 from FullstackJack/tvos-pip-regression
cobarx Mar 13, 2019
f162667
Merge branch 'master' of https://github.com/react-native-community/re…
cobarx Mar 13, 2019
c36a9cf
Merge pull request #1441 from nfb-onf/1319-fullscreen-rotation-issues
cobarx Mar 13, 2019
6c39ac7
Merge branch 'master' of https://github.com/react-native-community/re…
cobarx Mar 13, 2019
9df4f89
Merge branch 'rnv-master' into feature/ios-drm-support
CHaNGeTe Mar 15, 2019
3d80bfd
Merge branch 'master' into bugfix/android-disablefocus-audio
KurtMakesWeb Mar 15, 2019
2072793
Fix Android audio crash
Mrjaco12 Mar 19, 2019
da8a202
Make video auto track selection more readable
cobarx Apr 4, 2019
c12e9d8
Merge pull request #1529 from Mrjaco12/master
cobarx Apr 4, 2019
03b7f8d
Merge branch 'master' of https://github.com/react-native-community/re…
cobarx Apr 4, 2019
2fb1619
Android audio freeze fix
cobarx Apr 4, 2019
c30f246
Version 4.4.1
cobarx Apr 4, 2019
0c87b78
Merge branch 'rnv-master' into feature/update-rnv-and-refactor-src
CHaNGeTe Apr 11, 2019
9b5ced2
split DRM doc
CHaNGeTe Apr 15, 2019
6e3e653
decoupling drm from source prop
CHaNGeTe Apr 15, 2019
24730ed
ios preparePlayback
CHaNGeTe Apr 15, 2019
5725c62
fix var name
CHaNGeTe Apr 15, 2019
4d12d1d
drm prop
CHaNGeTe Apr 16, 2019
4210929
test async
CHaNGeTe Apr 16, 2019
3b952dc
preparing android
CHaNGeTe Apr 16, 2019
1b680c2
fixes android
CHaNGeTe Apr 16, 2019
a22bf45
protect
CHaNGeTe Apr 16, 2019
ce4dedf
preparePlayback not needed
CHaNGeTe Apr 17, 2019
8818b9a
revert
CHaNGeTe Apr 17, 2019
bdc599d
improvements shouldwait
CHaNGeTe Apr 17, 2019
a296fd9
extend doc
CHaNGeTe Apr 17, 2019
2fc3b77
finishLoading DRM request when changing source
CHaNGeTe Apr 26, 2019
2d0e402
fixes + unify indentation
CHaNGeTe Apr 26, 2019
9fa4046
update readme with more scenarios
CHaNGeTe Apr 26, 2019
fccbc93
Adds onPlaybackRateChange to README
May 3, 2019
3989d73
react-native 0.59 support
yjb94 May 24, 2019
327d862
simplified logic
yjb94 May 24, 2019
d61a0d7
update other vulnerable
yjb94 May 24, 2019
88c5541
change stream fixes
Jun 4, 2019
91f200b
initializePlayback postDelayed
Jun 4, 2019
4efd0b5
Updates README description
Jun 11, 2019
5f42e0f
Update CHANGELOG.md
CHaNGeTe Jun 12, 2019
4223f5d
Update CHANGELOG.md
CHaNGeTe Jun 12, 2019
e28ae17
Merge pull request #1578 from JoeM-RP/master
CHaNGeTe Jun 12, 2019
f6bc13e
Merge branch 'master' into feature/ios-drm-support
CHaNGeTe Jun 13, 2019
fb3175f
remove logs
Jun 15, 2019
a0bb083
Remove video layer when entering background correctly, both if using …
jensellfors Jun 10, 2019
0a15579
Update CHANGELOG.md
jensellfors Jun 17, 2019
112608c
RCTDirectEventBlock
Jun 18, 2019
32796e9
Change also RCTVideo.h
Jun 19, 2019
9c04bd2
Update CHANGELOG
Jun 19, 2019
4f36eb1
update for androidX
Jun 19, 2019
a96fa33
change minSdkVersion back to 16
Jun 19, 2019
3ddcba3
update readme
Jun 19, 2019
6d3936d
Fixes bug where poster and video was displayed simultaneously
jensellfors Jun 19, 2019
cc7db91
Improved handling of poster, fading it out on load
jensellfors Jun 19, 2019
420332e
Implemented onReadyForDisplay for iOS when using controls
jensellfors Jun 19, 2019
b193baa
Hide poster at the right time ie in onReadyForDisplay
jensellfors Jun 19, 2019
e5b5bbe
Updated changelog and readme
jensellfors Jun 19, 2019
fcef441
Added onReadyForDisplay to web/dom
jensellfors Jun 19, 2019
a3b32ac
Merge pull request #1625 from 24i/feature/avoid-event-collision-3
CHaNGeTe Jun 19, 2019
92f7459
Merge pull request #1614 from jenshandersson/master
CHaNGeTe Jun 19, 2019
3762a32
remove duplicate ReactVideoPackage()
Jun 20, 2019
976ebcc
add readme to migrating to AndroidX
Jun 20, 2019
e5bc715
add read me
Jun 20, 2019
cad807d
Merge pull request #1592 from yjb94/master
CHaNGeTe Jun 20, 2019
e033fc4
update changelog for #1592
Jun 20, 2019
88d2aed
bump version
Jun 20, 2019
cb3e8c8
Merge branch 'release/4.4.2' into posterfix
jensellfors Jun 20, 2019
6ea6583
Make sure to hide poster for Windows, even though onReadyForDisplay i…
jensellfors Jun 20, 2019
ed25b3f
fix read me
Jun 21, 2019
a203aea
pre androidX, upgrade to 28
Jun 21, 2019
3a7be63
Merge pull request #1627 from jenshandersson/posterfix
CHaNGeTe Jun 22, 2019
1cd9796
remove duplicated line in example
Jun 25, 2019
438df8b
change dead code in example
Jun 25, 2019
4c4899b
Update DRM.md
CHaNGeTe Jul 1, 2019
a48fb69
Update DRM.md
CHaNGeTe Jul 1, 2019
c123d86
Update README.md
CHaNGeTe Jul 1, 2019
e6710f3
Update ReactExoplayerView.java
CHaNGeTe Jul 1, 2019
6de06f1
Remove calls to [super observe] to fix crash
reaperdtme Jul 1, 2019
e9c978c
Update DRM.md
CHaNGeTe Jul 2, 2019
7525d4a
Update Video.js
CHaNGeTe Jul 2, 2019
6876179
Add #1646 to changelog
reaperdtme Jul 2, 2019
4a3ea93
bring back super KVO with selector check
reaperdtme Jul 2, 2019
3d2a58a
Fix memory leak when using AVPlayerViewController, make sure to relea…
jensellfors Jul 3, 2019
666c26d
Updated changelog
jensellfors Jul 3, 2019
f484bd8
Merge branch 'rnv-master' into feature/ios-drm-support
Jul 3, 2019
2b067f1
Merge branch 'master' into bugfix/android-disablefocus-audio
KurtMakesWeb Jul 3, 2019
22a3961
Merge pull request #1646 from kidcosmic/master
CHaNGeTe Jul 4, 2019
7949c55
Merge pull request #1629 from vokhuyetOz/android-28
CHaNGeTe Jul 4, 2019
6c7a0b4
changelog for #1629
Jul 4, 2019
9bc709f
Merge branch 'release/4.4.3' into master
CHaNGeTe Jul 4, 2019
1433d16
Merge pull request #1647 from jenshandersson/master
CHaNGeTe Jul 4, 2019
d4313e2
bump version
Jul 4, 2019
8a8f215
chang maven to google
Jul 6, 2019
9dec6ae
Merge branch 'release/4.4.3' into bugfix/android-disablefocus-audio
CHaNGeTe Jul 6, 2019
be3c8b6
Merge pull request #1469 from KurtMakesWeb/bugfix/android-disablefocu…
CHaNGeTe Jul 6, 2019
576273d
fix when controls & muted
Jul 6, 2019
61a72ad
update changelog
Jul 6, 2019
466c004
handle racing conditions when props are setted on exoplayer
Jul 7, 2019
40c7371
fix for setControls
Jul 7, 2019
eae487c
Merge branch 'release/4.4.3' into feature/fix-when-muted-and-controls
CHaNGeTe Jul 8, 2019
77c9ad3
Merge pull request #1654 from 24i/feature/fix-when-muted-and-controls
CHaNGeTe Jul 8, 2019
cb3cff7
fix repeat
Jul 8, 2019
b7d1139
Merge pull request #1652 from react-native-community/release/4.4.3
CHaNGeTe Jul 9, 2019
cde2432
Merge branch 'rnv-master' into feature/handle-props-racing-conditions…
Jul 9, 2019
f60aff7
comment why postDelayed
Jul 9, 2019
f58ae34
remove extra whitespace
Jul 9, 2019
47e1630
remove rnpm
Jul 10, 2019
03114bc
Merge pull request #1655 from 24i/feature/handle-props-racing-conditi…
ashnfb Jul 11, 2019
6bdbaec
4.4.4
Jul 12, 2019
95060d7
Update README.md
CHaNGeTe Jul 23, 2019
66a85ae
Update README.md
CHaNGeTe Jul 23, 2019
62ff44a
Update README.md
CHaNGeTe Jul 23, 2019
d748d17
Update MainApplication.java
CHaNGeTe Jul 23, 2019
222adf5
remove matchingfallbacks in example
Jul 24, 2019
a45e857
Merge branch 'release/5.0.0' into update-androidx
CHaNGeTe Jul 25, 2019
1fb07b5
Merge pull request #1626 from vokhuyetOz/update-androidx
CHaNGeTe Jul 25, 2019
917f9cb
prepare 5.0.0 version
Jul 25, 2019
c29244b
Merge pull request #1683 from react-native-community/release/5.0.0
CHaNGeTe Jul 25, 2019
88d3a4a
cpck androidx
Jul 28, 2019
6bd8f33
change minSdkVersion back to 16
Jun 19, 2019
45b806d
update readme
Jun 19, 2019
991fd59
add readme to migrating to AndroidX
Jun 20, 2019
e6e57ec
cpck readme
Jun 20, 2019
2f8746c
fix read me
Jun 21, 2019
a1679ef
chang maven to google
Jul 6, 2019
4f9f793
cpck
CHaNGeTe Jul 23, 2019
e38149b
ad platform installation to TOC
Jul 23, 2019
aad75d4
More update info
Jul 25, 2019
c38ff02
5.0.1
Jul 28, 2019
3012b81
Fixed Exoplayer doesn't work with mute=true #1696
andrewchae Aug 1, 2019
2b9ddda
Updated README.md to include instructions for React Native 0.60 and a…
jhalvorson Aug 17, 2019
7a9081d
Removing the call to observeValueForKeyPath:ofObject:change:context: …
Aug 20, 2019
923bc59
Updated CHANGELOG to reflect bug fix in PR 1720
Aug 20, 2019
e3782c4
added support for automaticallyWaitsToMinimizeStalling property on iOS
Aug 22, 2019
0a361d1
update readme
Aug 22, 2019
7615e5d
fix invert boolean property
Aug 22, 2019
4320b56
bumped version & updated changelog
Aug 22, 2019
008f5f0
fix formatting issues
Aug 30, 2019
0cfc732
fix formatting
Aug 30, 2019
d858bf7
Merge pull request #1690 from 24i/feature/androidx-cherry-pick
CHaNGeTe Sep 8, 2019
0a2f7bd
Merge pull request #1715 from jhalvorson/master
CHaNGeTe Sep 8, 2019
9272678
Merge branch 'master' into fix-NSInternalInconsistencyException
CHaNGeTe Sep 8, 2019
f66ca32
Merge pull request #1720 from nmarisi/fix-NSInternalInconsistencyExce…
CHaNGeTe Sep 8, 2019
cfcf6ce
Merge branch 'master' into master
CHaNGeTe Sep 21, 2019
59be8b5
Merge pull request #1723 from blitzcrank/master
CHaNGeTe Sep 21, 2019
b954a4f
Merge pull request #1699 from andrewchae/mute
CHaNGeTe Sep 21, 2019
a86f316
changelog for #1696
Sep 21, 2019
9149346
Update issue templates
CHaNGeTe Sep 21, 2019
c90197b
Update bug_report.md
CHaNGeTe Sep 21, 2019
461209f
Update bug_report.md
CHaNGeTe Sep 21, 2019
ed335f3
Fix indent and respect previous rate
CHaNGeTe Sep 22, 2019
81cfd4e
Bring the basic example back to a runnable state
Sep 16, 2019
3e38f88
Remove Exoplayer deprecations
Sep 16, 2019
3d40deb
Update changelog with Exoplayer update (#1766)
benoitdion Sep 23, 2019
c9a248e
update package json version
Sep 24, 2019
78f1d29
update changelog version
Sep 24, 2019
4a8eea7
Add disableFocus to TOC
CHaNGeTe Sep 25, 2019
040b171
fix typo in README
BaderSerhan Sep 25, 2019
395b9b7
Merge master
Sep 28, 2019
d266b32
pass drm to exoplayer
Sep 28, 2019
03b2d4d
comment
Sep 28, 2019
62166a2
complete
Sep 28, 2019
725a15c
Merge branch 'react-native-video/master' into feature/ios-drm-support
Sep 28, 2019
b675e59
Merge pull request #1773 from BaderSerhan/master
CHaNGeTe Sep 29, 2019
b97663e
Clear progress messages on STATE_IDLE and STATE_BUFFERING (#1768)
benoitdion Sep 30, 2019
c7a8a25
change to DRMType
CHaNGeTe Sep 30, 2019
8c40aaf
more params for onGetLicense (spcBase64 and contentId)
Oct 7, 2019
32748d5
base64 -> string
Oct 7, 2019
257be24
fix README about reportBandwidth (#1816)
set0gut1 Nov 8, 2019
a5bfba9
Fixes a situation when exiting fullscreen, where observed keypath val…
ashnfb Nov 19, 2019
fa20965
add try catch block around removal of observer keypaths on playerView…
ashnfb Nov 19, 2019
2c5006a
Merge pull request #1827 from nfb-onf/fix-playerviewcontroller-keypat…
ashnfb Nov 19, 2019
0df6676
Audio Poster issue fix (#1779)
Nov 26, 2019
9200dce
Add full screen support to Android Exoplayer (#1730)
IbrahimSulai Jan 28, 2020
029b893
Bump version to 5.1.0-alpha
Jan 28, 2020
2738892
Fix readme grammar (#1888)
msal4 Feb 3, 2020
82c191d
Improve Android Audio Focus (#1897)
michaeltintiuc Feb 17, 2020
4d0be29
Update changelog (#1913)
benoitdion Feb 17, 2020
5fa4cdd
docs(video): fix bufferConfig property name (#1855)
peterblazejewicz Feb 17, 2020
fd8ac76
Fix play/pause regression after added fullscreen support. (#1916)
IbrahimSulai Feb 20, 2020
f0867d7
v5.1.0-alpha4
benoitdion Feb 20, 2020
4f07aab
Bump javascript dependencies (#1914)
benoitdion Feb 22, 2020
a4fec8e
Add support for react-native Windows Cpp/WinRT (#1893)
ddalp Feb 25, 2020
6d1a7be
Fix the `ref` sample code to remove the syntax error
bfaulk96 Feb 25, 2020
89b6d11
Update changelog
benoitdion Feb 26, 2020
68dc152
v5.1.0-alpha5
benoitdion Feb 26, 2020
91384d8
Don't set reactViewController view frame to whole screen (#1931)
marlonandrade Feb 27, 2020
1ecb09a
Update onLoad event to include videoTracks info
cobarx Mar 2, 2020
b4582c6
add mixWithOthers prop
euharrison Apr 20, 2020
4157a60
Update README.md
euharrison Apr 20, 2020
052f49e
Update index.ios.js
euharrison Apr 20, 2020
cc2e9c4
Fix video dimensions for HLS streams
jensellfors May 5, 2020
4bc2a72
Changelog
jensellfors May 5, 2020
08c7aaa
Compare CGFloats instead
jensellfors May 5, 2020
c579d3c
Merge pull request #1992 from jenshandersson/feat/hlssize
jensellfors May 5, 2020
2b33b9e
Merge remote-tracking branch 'upstream/master'
euharrison May 6, 2020
b8234f8
Update CHANGELOG.md
euharrison May 6, 2020
c438509
Merge pull request #1978 from euharrison/master
jensellfors May 7, 2020
838b99a
Update CHANGELOG, alpha-6 hasn't been released yet
jensellfors May 7, 2020
6bc25f1
Implement pending seek
jensellfors May 7, 2020
d6a7117
Merge pull request #1994 from jenshandersson/pendingseek
jensellfors May 7, 2020
e3009c6
Recommend npx pod-install for setup instructions
EvanBacon May 14, 2020
0b914ef
Expose currentPlaybackTime when live stream video (#1944)
paramaggarwal May 15, 2020
c9096d1
[ios] Adaptive fullscreen in landscape by device orientation (#1862)
r0b0t3d May 15, 2020
2dd5025
Revert "[ios] Adaptive fullscreen in landscape by device orientation …
jensellfors Jun 9, 2020
7c8c613
Upgrade exoplayer to 2.11.4 (#2034)
miguelSWE Jun 11, 2020
f395bd1
Removed JS fullscreening for Android (#2013)
jensellfors Jun 11, 2020
9c31948
Always set headers for iOS (#2014)
jensellfors Jun 11, 2020
8962720
Support preventsDisplaySleepDuringVideoPlayback (#2019)
anderslemke Jun 16, 2020
dbf1a4e
Fix exoplayer aspect ratio update on source changes (#2053)
jefersondaniel Jun 30, 2020
8c25828
Merge branch 'master' into feature/ios-drm-support
cobarx Aug 13, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions Video.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,27 @@ export default class Video extends Component {
}
};

_onGetLicense = (event) => {
if (this.props.source && this.props.source.drm && this.props.source.drm.getLicense instanceof Function) {
const data = event.nativeEvent;
if (data && data.spc) {
const getLicenseOverride = this.props.source.drm.getLicense(data.spc, this.props);
const getLicensePromise = Promise.resolve(getLicenseOverride); // Handles both scenarios, getLicenseOverride being a promise and not.
getLicensePromise.then((result => {
if (result !== undefined) {
NativeModules.VideoManager.setLicenseResult(result, findNodeHandle(this._root));
} else {
NativeModules.VideoManager.setLicenseError('Empty license result', findNodeHandle(this._root));
}
})).catch((error) => {
NativeModules.VideoManager.setLicenseError(error, findNodeHandle(this._root));
});
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if there's no data or data.spc?

} else {
NativeModules.VideoManager.setLicenseError("No enough data for license override", findNodeHandle(this._root));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Not enough…" would be a bit better 😁

}
}

render() {
const resizeMode = this.props.resizeMode;
const source = resolveAssetSource(this.props.source) || {};
Expand Down Expand Up @@ -269,8 +290,9 @@ export default class Video extends Component {
onPlaybackRateChange: this._onPlaybackRateChange,
onAudioFocusChanged: this._onAudioFocusChanged,
onAudioBecomingNoisy: this._onAudioBecomingNoisy,
onGetLicense: this._onGetLicense,
});

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed?

const posterStyle = {
...StyleSheet.absoluteFillObject,
resizeMode: this.props.posterResizeMode || 'contain',
Expand Down Expand Up @@ -398,9 +420,6 @@ Video.propTypes = {
}),
stereoPan: PropTypes.number,
rate: PropTypes.number,
drmUrl: PropTypes.string,
drmName: PropTypes.string,
drmHeader: PropTypes.object,
playInBackground: PropTypes.bool,
playWhenInactive: PropTypes.bool,
ignoreSilentSwitch: PropTypes.oneOf(['ignore', 'obey']),
Expand Down
7 changes: 5 additions & 2 deletions ios/Video/RCTVideo.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

@class RCTEventDispatcher;
#if __has_include(<react-native-video/RCTVideoCache.h>)
@interface RCTVideo : UIView <RCTVideoPlayerViewControllerDelegate, DVAssetLoaderDelegatesDelegate>
@interface RCTVideo : UIView <RCTVideoPlayerViewControllerDelegate, DVAssetLoaderDelegatesDelegate, AVAssetResourceLoaderDelegate>
#else
@interface RCTVideo : UIView <RCTVideoPlayerViewControllerDelegate>
@interface RCTVideo : UIView <RCTVideoPlayerViewControllerDelegate, AVAssetResourceLoaderDelegate>
#endif

@property (nonatomic, copy) RCTBubblingEventBlock onVideoLoadStart;
Expand All @@ -38,11 +38,14 @@
@property (nonatomic, copy) RCTBubblingEventBlock onPlaybackResume;
@property (nonatomic, copy) RCTBubblingEventBlock onPlaybackRateChange;
@property (nonatomic, copy) RCTBubblingEventBlock onVideoExternalPlaybackChange;
@property (nonatomic, copy) RCTBubblingEventBlock onGetLicense;

- (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher NS_DESIGNATED_INITIALIZER;

- (AVPlayerViewController*)createPlayerViewController:(AVPlayer*)player withPlayerItem:(AVPlayerItem*)playerItem;

- (void)save:(NSDictionary *)options resolve:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject;
- (void)setLicenseResult:(NSString * )license;
- (void)setLicenseResultError:(NSString * )error;

@end
Loading