From 537d36cf60f2681079fcc9ddf9bdeb39c95cfc58 Mon Sep 17 00:00:00 2001 From: Igor Tironi Date: Tue, 14 Jun 2022 15:50:22 -0700 Subject: [PATCH] type _eventDispatcher as RCTEventDispatcherProtocol --- 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 76701229..fb5270ab 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:RCTEventDispatcher? + private var _eventDispatcher:RCTEventDispatcherProtocol? 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:RCTEventDispatcher!) { + init(eventDispatcher:RCTEventDispatcherProtocol!) { super.init(frame: CGRect(x: 0, y: 0, width: 100, height: 100)) _eventDispatcher = eventDispatcher