From c3b5a1b4cf8cf430ae7215c0afb00e104e588872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Chmiela?= Date: Fri, 1 Apr 2016 10:51:02 +0200 Subject: [PATCH] Add new RCTVideoPlayerViewControllerDelegate protocol --- RCTVideo.xcodeproj/project.pbxproj | 2 ++ RCTVideoPlayerViewControllerDelegate.h | 15 +++++++++++++++ package.json | 1 + 3 files changed, 18 insertions(+) create mode 100644 RCTVideoPlayerViewControllerDelegate.h diff --git a/RCTVideo.xcodeproj/project.pbxproj b/RCTVideo.xcodeproj/project.pbxproj index eabedd86..6fc58565 100644 --- a/RCTVideo.xcodeproj/project.pbxproj +++ b/RCTVideo.xcodeproj/project.pbxproj @@ -31,6 +31,7 @@ 31CAFB201CADA8CD009BCF6F /* UIView+FindUIViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+FindUIViewController.m"; sourceTree = ""; }; 31CAFB2D1CADC77F009BCF6F /* RCTVideoPlayerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTVideoPlayerViewController.h; sourceTree = ""; }; 31CAFB2E1CADC77F009BCF6F /* RCTVideoPlayerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTVideoPlayerViewController.m; sourceTree = ""; }; + 31CAFB301CAE6B5F009BCF6F /* RCTVideoPlayerViewControllerDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTVideoPlayerViewControllerDelegate.h; sourceTree = ""; }; BBD49E391AC8DEF000610F8E /* RCTVideo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTVideo.h; sourceTree = ""; }; BBD49E3A1AC8DEF000610F8E /* RCTVideo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTVideo.m; sourceTree = ""; }; BBD49E3B1AC8DEF000610F8E /* RCTVideoManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTVideoManager.h; sourceTree = ""; }; @@ -62,6 +63,7 @@ 31CAFB1F1CADA8CD009BCF6F /* UIView+FindUIViewController.h */, 31CAFB201CADA8CD009BCF6F /* UIView+FindUIViewController.m */, BBD49E391AC8DEF000610F8E /* RCTVideo.h */, + 31CAFB301CAE6B5F009BCF6F /* RCTVideoPlayerViewControllerDelegate.h */, BBD49E3A1AC8DEF000610F8E /* RCTVideo.m */, 31CAFB2D1CADC77F009BCF6F /* RCTVideoPlayerViewController.h */, 31CAFB2E1CADC77F009BCF6F /* RCTVideoPlayerViewController.m */, diff --git a/RCTVideoPlayerViewControllerDelegate.h b/RCTVideoPlayerViewControllerDelegate.h new file mode 100644 index 00000000..ec6500af --- /dev/null +++ b/RCTVideoPlayerViewControllerDelegate.h @@ -0,0 +1,15 @@ +// +// RCTVideoPlayerViewControllerDelegate.h +// RCTVideo +// +// Created by Stanisław Chmiela on 01.04.2016. +// Copyright © 2016 Facebook. All rights reserved. +// + +#import +#import "AVKit/AVKit.h" + +@protocol RCTVideoPlayerViewControllerDelegate +- (void)videoPlayerViewControllerWillDismiss:(AVPlayerViewController *)playerViewController; +- (void)videoPlayerViewControllerDidDismiss:(AVPlayerViewController *)playerViewController; +@end diff --git a/package.json b/package.json index 716870fe..c37bbeae 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "UIView+FindUIViewController.m", "RCTVideoPlayerViewController.h", "RCTVideoPlayerViewController.m", + "RCTVideoPlayerViewControllerDelegate.h", "Video.js", "VideoResizeMode.js", "react-native-video.podspec"