Merge branch 'master' of https://github.com/react-native-video/react-native-video into feat/add_new_events_on_tracks_changed
This commit is contained in:
commit
0b6f107020
@ -1,9 +1,10 @@
|
|||||||
## Changelog
|
## Changelog
|
||||||
### Version 6.0.0-alpha3
|
### Version 6.0.0-alpha3
|
||||||
- Upgrade ExoPlayer to 2.18.1 [#2846](https://github.com/react-native-video/react-native-video/pull/2846)
|
- fix ios build [#2854](https://gthub.com/react-native-video/react-native-video/pull/2854)
|
||||||
|
|
||||||
### Version 6.0.0-alpha.2
|
### Version 6.0.0-alpha.2
|
||||||
|
|
||||||
|
- Upgrade ExoPlayer to 2.18.1 [#2846](https://github.com/react-native-video/react-native-video/pull/2846)
|
||||||
- Feature add new APIs to query supported features of device decoder (widevine level & codec capabilities) on android [#2740](https://github.com/react-native-video/react-native-video/pull/2740)
|
- Feature add new APIs to query supported features of device decoder (widevine level & codec capabilities) on android [#2740](https://github.com/react-native-video/react-native-video/pull/2740)
|
||||||
- Feature add support of subtitle styling on android [#2759](https://github.com/react-native-video/react-native-video/pull/2759)
|
- Feature add support of subtitle styling on android [#2759](https://github.com/react-native-video/react-native-video/pull/2759)
|
||||||
- Fix Android #2690 ensure onEnd is not sent twice [#2690](https://github.com/react-native-video/react-native-video/issues/2690)
|
- Fix Android #2690 ensure onEnd is not sent twice [#2690](https://github.com/react-native-video/react-native-video/issues/2690)
|
||||||
|
@ -1807,22 +1807,22 @@ class ReactExoplayerView extends FrameLayout implements
|
|||||||
| SYSTEM_UI_FLAG_FULLSCREEN;
|
| SYSTEM_UI_FLAG_FULLSCREEN;
|
||||||
}
|
}
|
||||||
eventEmitter.fullscreenWillPresent();
|
eventEmitter.fullscreenWillPresent();
|
||||||
post(() -> {
|
|
||||||
decorView.setSystemUiVisibility(uiOptions);
|
|
||||||
if (controls) {
|
if (controls) {
|
||||||
fullScreenPlayerView.show();
|
fullScreenPlayerView.show();
|
||||||
}
|
}
|
||||||
|
post(() -> {
|
||||||
|
decorView.setSystemUiVisibility(uiOptions);
|
||||||
eventEmitter.fullscreenDidPresent();
|
eventEmitter.fullscreenDidPresent();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
uiOptions = View.SYSTEM_UI_FLAG_VISIBLE;
|
uiOptions = View.SYSTEM_UI_FLAG_VISIBLE;
|
||||||
eventEmitter.fullscreenWillDismiss();
|
eventEmitter.fullscreenWillDismiss();
|
||||||
post(() -> {
|
|
||||||
decorView.setSystemUiVisibility(uiOptions);
|
|
||||||
if (controls) {
|
if (controls) {
|
||||||
fullScreenPlayerView.dismiss();
|
fullScreenPlayerView.dismiss();
|
||||||
reLayout(exoPlayerView);
|
reLayout(exoPlayerView);
|
||||||
}
|
}
|
||||||
|
post(() -> {
|
||||||
|
decorView.setSystemUiVisibility(uiOptions);
|
||||||
eventEmitter.fullscreenDidDismiss();
|
eventEmitter.fullscreenDidDismiss();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
|
|||||||
private var _localSourceEncryptionKeyScheme:String?
|
private var _localSourceEncryptionKeyScheme:String?
|
||||||
|
|
||||||
/* Required to publish events */
|
/* Required to publish events */
|
||||||
private var _eventDispatcher:RCTEventDispatcherProtocol?
|
private var _eventDispatcher:RCTEventDispatcher?
|
||||||
private var _videoLoadStarted:Bool = false
|
private var _videoLoadStarted:Bool = false
|
||||||
|
|
||||||
private var _pendingSeek:Bool = false
|
private var _pendingSeek:Bool = false
|
||||||
@ -95,7 +95,7 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
|
|||||||
@objc var onRestoreUserInterfaceForPictureInPictureStop: RCTDirectEventBlock?
|
@objc var onRestoreUserInterfaceForPictureInPictureStop: RCTDirectEventBlock?
|
||||||
@objc var onGetLicense: RCTDirectEventBlock?
|
@objc var onGetLicense: RCTDirectEventBlock?
|
||||||
|
|
||||||
init(eventDispatcher:RCTEventDispatcherProtocol!) {
|
init(eventDispatcher:RCTEventDispatcher!) {
|
||||||
super.init(frame: CGRect(x: 0, y: 0, width: 100, height: 100))
|
super.init(frame: CGRect(x: 0, y: 0, width: 100, height: 100))
|
||||||
|
|
||||||
_eventDispatcher = eventDispatcher
|
_eventDispatcher = eventDispatcher
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native-video",
|
"name": "react-native-video",
|
||||||
"version": "6.0.0-alpha.1",
|
"version": "6.0.0-alpha.3",
|
||||||
"description": "A <Video /> element for react-native",
|
"description": "A <Video /> element for react-native",
|
||||||
"main": "Video.js",
|
"main": "Video.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
Loading…
Reference in New Issue
Block a user