type _eventDispatcher as RCTEventDispatcherProtocol

This commit is contained in:
Igor Tironi 2022-06-14 15:50:22 -07:00
parent 33930c8b9c
commit 537d36cf60

View File

@ -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:RCTEventDispatcher? private var _eventDispatcher:RCTEventDispatcherProtocol?
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:RCTEventDispatcher!) { init(eventDispatcher:RCTEventDispatcherProtocol!) {
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