From 1d4665f9e8e163e8bfd2e9f46c9afda4ab3f4597 Mon Sep 17 00:00:00 2001 From: olivier bouillet Date: Wed, 14 Sep 2022 08:08:07 +0200 Subject: [PATCH 1/2] Revert "type _eventDispatcher as RCTEventDispatcherProtocol" This reverts commit 537d36cf60f2681079fcc9ddf9bdeb39c95cfc58. --- ios/Video/RCTVideo.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/Video/RCTVideo.swift b/ios/Video/RCTVideo.swift index f482ff7c..47231a78 100644 --- a/ios/Video/RCTVideo.swift +++ b/ios/Video/RCTVideo.swift @@ -21,7 +21,7 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH private var _localSourceEncryptionKeyScheme:String? /* Required to publish events */ - private var _eventDispatcher:RCTEventDispatcherProtocol? + private var _eventDispatcher:RCTEventDispatcher? private var _videoLoadStarted:Bool = false private var _pendingSeek:Bool = false @@ -95,7 +95,7 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH @objc var onRestoreUserInterfaceForPictureInPictureStop: RCTDirectEventBlock? @objc var onGetLicense: RCTDirectEventBlock? - init(eventDispatcher:RCTEventDispatcherProtocol!) { + init(eventDispatcher:RCTEventDispatcher!) { super.init(frame: CGRect(x: 0, y: 0, width: 100, height: 100)) _eventDispatcher = eventDispatcher From f7fba8a149040b5d1050dbd5bc0b4e936b0aa55c Mon Sep 17 00:00:00 2001 From: olivier bouillet Date: Wed, 14 Sep 2022 08:10:34 +0200 Subject: [PATCH 2/2] doc: add changelog entry and fix last version --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a2bec6ed..267f52b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,10 @@ ## Changelog ### 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 +- 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 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)