├── .gitignore ├── .travis.yml ├── EVVideoPlayer.podspec ├── Example ├── EVVideoPlayer.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── EVVideoPlayer-Example.xcscheme ├── EVVideoPlayer.xcworkspace │ └── contents.xcworkspacedata ├── EVVideoPlayer │ ├── BlackBerry.mp4 │ ├── EVAppDelegate.h │ ├── EVAppDelegate.m │ ├── EVVideoPlayer-Info.plist │ ├── EVVideoPlayer-Prefix.pch │ ├── EVViewController.h │ ├── EVViewController.m │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── LaunchImage.launchimage │ │ │ └── Contents.json │ ├── Main.storyboard │ ├── en.lproj │ │ └── InfoPlist.strings │ └── main.m ├── Podfile ├── Podfile.lock └── Pods │ ├── Headers │ ├── Private │ │ └── EVVideoPlayer │ │ │ └── EVVideoPlayer.h │ └── Public │ │ └── EVVideoPlayer │ │ └── EVVideoPlayer.h │ ├── Local Podspecs │ └── EVVideoPlayer.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── EVVideoPlayer.xcscheme │ └── Target Support Files │ ├── EVVideoPlayer │ ├── EVVideoPlayer-Private.xcconfig │ ├── EVVideoPlayer-dummy.m │ ├── EVVideoPlayer-prefix.pch │ └── EVVideoPlayer.xcconfig │ └── Pods-EVVideoPlayer_Example │ ├── Pods-EVVideoPlayer_Example-acknowledgements.markdown │ ├── Pods-EVVideoPlayer_Example-acknowledgements.plist │ ├── Pods-EVVideoPlayer_Example-dummy.m │ ├── Pods-EVVideoPlayer_Example-resources.sh │ ├── Pods-EVVideoPlayer_Example.debug.xcconfig │ └── Pods-EVVideoPlayer_Example.release.xcconfig ├── LICENSE ├── Pod ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── EVVideoPlayer+Utility.h │ ├── EVVideoPlayer+Utility.m │ ├── EVVideoPlayer.h │ └── EVVideoPlayer.m ├── README.md └── _Pods.xcodeproj /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | language: objective-c 6 | # cache: cocoapods 7 | # podfile: Example/Podfile 8 | # before_install: 9 | # - gem install cocoapods # Since Travis is not always on latest version 10 | # - pod install --project-directory=Example 11 | install: 12 | - gem install xcpretty --no-rdoc --no-ri --no-document --quiet 13 | script: 14 | - set -o pipefail && xcodebuild test -workspace Example/EVVideoPlayer.xcworkspace -scheme EVVideoPlayer-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty -c 15 | - pod lib lint --quick 16 | -------------------------------------------------------------------------------- /EVVideoPlayer.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "EVVideoPlayer" 3 | s.version = "0.1.2" 4 | s.summary = "A UIView subclass for playing videos" 5 | 6 | s.description = <<-DESC 7 | A video player with a lot of cool features. More coming soon!. 8 | DESC 9 | 10 | s.homepage = "https://github.com/EstebanVallejo/EVVideoPlayer" 11 | s.license = 'MIT' 12 | s.author = { "Esteban Vallejo" => "evallejo@gmail.com" } 13 | s.source = { :git => "https://github.com/EstebanVallejo/EVVideoPlayer.git", :tag => s.version.to_s } 14 | 15 | s.platform = :ios, '7.0' 16 | s.requires_arc = true 17 | 18 | s.source_files = 'Pod/Classes/**/*' 19 | s.public_header_files = 'Pod/Classes/**/*.h' 20 | s.frameworks = 'AVFoundation', 'QuartzCore' 21 | end 22 | -------------------------------------------------------------------------------- /Example/EVVideoPlayer.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 5B038C671B81560B00EB10C9 /* BlackBerry.mp4 in Resources */ = {isa = PBXBuildFile; fileRef = 5B038C661B81560B00EB10C9 /* BlackBerry.mp4 */; }; 11 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; 12 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; }; 13 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; 14 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F596195388D20070C39A /* InfoPlist.strings */; }; 15 | 6003F59A195388D20070C39A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F599195388D20070C39A /* main.m */; }; 16 | 6003F59E195388D20070C39A /* EVAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* EVAppDelegate.m */; }; 17 | 6003F5A7195388D20070C39A /* EVViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5A6195388D20070C39A /* EVViewController.m */; }; 18 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; }; 19 | 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; }; 20 | 9A484AB626D5CE92E874C2BE /* libPods-EVVideoPlayer_Example.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2A0A50E7090B7EC723B1B482 /* libPods-EVVideoPlayer_Example.a */; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXFileReference section */ 24 | 2A0A50E7090B7EC723B1B482 /* libPods-EVVideoPlayer_Example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-EVVideoPlayer_Example.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 25 | 2FF68854C28235A734E5A900 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 26 | 3A73FFB3A1AB309B3CAF0DA2 /* Pods-EVVideoPlayer_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-EVVideoPlayer_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-EVVideoPlayer_Example/Pods-EVVideoPlayer_Example.release.xcconfig"; sourceTree = ""; }; 27 | 5B038C661B81560B00EB10C9 /* BlackBerry.mp4 */ = {isa = PBXFileReference; lastKnownFileType = file; path = BlackBerry.mp4; sourceTree = ""; }; 28 | 6003F58A195388D20070C39A /* EVVideoPlayer_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = EVVideoPlayer_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 29 | 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 30 | 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 31 | 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 32 | 6003F595195388D20070C39A /* EVVideoPlayer-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "EVVideoPlayer-Info.plist"; sourceTree = ""; }; 33 | 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 34 | 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 35 | 6003F59B195388D20070C39A /* EVVideoPlayer-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "EVVideoPlayer-Prefix.pch"; sourceTree = ""; }; 36 | 6003F59C195388D20070C39A /* EVAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EVAppDelegate.h; sourceTree = ""; }; 37 | 6003F59D195388D20070C39A /* EVAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EVAppDelegate.m; sourceTree = ""; }; 38 | 6003F5A5195388D20070C39A /* EVViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EVViewController.h; sourceTree = ""; }; 39 | 6003F5A6195388D20070C39A /* EVViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EVViewController.m; sourceTree = ""; }; 40 | 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 41 | 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 42 | 7445D1B1F34BF7D243C3DD6E /* Pods_EVVideoPlayer_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_EVVideoPlayer_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; 44 | 939C4289AEFF3732CC2CCB60 /* Pods-EVVideoPlayer_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-EVVideoPlayer_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-EVVideoPlayer_Tests/Pods-EVVideoPlayer_Tests.release.xcconfig"; sourceTree = ""; }; 45 | A20FDABBCDEEC8650657EC7B /* EVVideoPlayer.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = EVVideoPlayer.podspec; path = ../EVVideoPlayer.podspec; sourceTree = ""; }; 46 | A659E04E73273E5F8490505B /* Pods-EVVideoPlayer_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-EVVideoPlayer_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-EVVideoPlayer_Example/Pods-EVVideoPlayer_Example.debug.xcconfig"; sourceTree = ""; }; 47 | AD9661D70BB7EF1964E1D265 /* Pods-EVVideoPlayer_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-EVVideoPlayer_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-EVVideoPlayer_Tests/Pods-EVVideoPlayer_Tests.debug.xcconfig"; sourceTree = ""; }; 48 | D586304D66E1B460F253FBEC /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 49 | /* End PBXFileReference section */ 50 | 51 | /* Begin PBXFrameworksBuildPhase section */ 52 | 6003F587195388D20070C39A /* Frameworks */ = { 53 | isa = PBXFrameworksBuildPhase; 54 | buildActionMask = 2147483647; 55 | files = ( 56 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */, 57 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */, 58 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */, 59 | 9A484AB626D5CE92E874C2BE /* libPods-EVVideoPlayer_Example.a in Frameworks */, 60 | ); 61 | runOnlyForDeploymentPostprocessing = 0; 62 | }; 63 | /* End PBXFrameworksBuildPhase section */ 64 | 65 | /* Begin PBXGroup section */ 66 | 6003F581195388D10070C39A = { 67 | isa = PBXGroup; 68 | children = ( 69 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */, 70 | 6003F593195388D20070C39A /* Example for EVVideoPlayer */, 71 | 6003F58C195388D20070C39A /* Frameworks */, 72 | 6003F58B195388D20070C39A /* Products */, 73 | D6AC8B736DE5F20BA0E33F39 /* Pods */, 74 | ); 75 | sourceTree = ""; 76 | }; 77 | 6003F58B195388D20070C39A /* Products */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | 6003F58A195388D20070C39A /* EVVideoPlayer_Example.app */, 81 | ); 82 | name = Products; 83 | sourceTree = ""; 84 | }; 85 | 6003F58C195388D20070C39A /* Frameworks */ = { 86 | isa = PBXGroup; 87 | children = ( 88 | 6003F58D195388D20070C39A /* Foundation.framework */, 89 | 6003F58F195388D20070C39A /* CoreGraphics.framework */, 90 | 6003F591195388D20070C39A /* UIKit.framework */, 91 | 6003F5AF195388D20070C39A /* XCTest.framework */, 92 | 7445D1B1F34BF7D243C3DD6E /* Pods_EVVideoPlayer_Tests.framework */, 93 | 2A0A50E7090B7EC723B1B482 /* libPods-EVVideoPlayer_Example.a */, 94 | ); 95 | name = Frameworks; 96 | sourceTree = ""; 97 | }; 98 | 6003F593195388D20070C39A /* Example for EVVideoPlayer */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 5B038C661B81560B00EB10C9 /* BlackBerry.mp4 */, 102 | 6003F59C195388D20070C39A /* EVAppDelegate.h */, 103 | 6003F59D195388D20070C39A /* EVAppDelegate.m */, 104 | 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */, 105 | 6003F5A5195388D20070C39A /* EVViewController.h */, 106 | 6003F5A6195388D20070C39A /* EVViewController.m */, 107 | 6003F5A8195388D20070C39A /* Images.xcassets */, 108 | 6003F594195388D20070C39A /* Supporting Files */, 109 | ); 110 | name = "Example for EVVideoPlayer"; 111 | path = EVVideoPlayer; 112 | sourceTree = ""; 113 | }; 114 | 6003F594195388D20070C39A /* Supporting Files */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | 6003F595195388D20070C39A /* EVVideoPlayer-Info.plist */, 118 | 6003F596195388D20070C39A /* InfoPlist.strings */, 119 | 6003F599195388D20070C39A /* main.m */, 120 | 6003F59B195388D20070C39A /* EVVideoPlayer-Prefix.pch */, 121 | ); 122 | name = "Supporting Files"; 123 | sourceTree = ""; 124 | }; 125 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | A20FDABBCDEEC8650657EC7B /* EVVideoPlayer.podspec */, 129 | 2FF68854C28235A734E5A900 /* README.md */, 130 | D586304D66E1B460F253FBEC /* LICENSE */, 131 | ); 132 | name = "Podspec Metadata"; 133 | sourceTree = ""; 134 | }; 135 | D6AC8B736DE5F20BA0E33F39 /* Pods */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | A659E04E73273E5F8490505B /* Pods-EVVideoPlayer_Example.debug.xcconfig */, 139 | 3A73FFB3A1AB309B3CAF0DA2 /* Pods-EVVideoPlayer_Example.release.xcconfig */, 140 | AD9661D70BB7EF1964E1D265 /* Pods-EVVideoPlayer_Tests.debug.xcconfig */, 141 | 939C4289AEFF3732CC2CCB60 /* Pods-EVVideoPlayer_Tests.release.xcconfig */, 142 | ); 143 | name = Pods; 144 | sourceTree = ""; 145 | }; 146 | /* End PBXGroup section */ 147 | 148 | /* Begin PBXNativeTarget section */ 149 | 6003F589195388D20070C39A /* EVVideoPlayer_Example */ = { 150 | isa = PBXNativeTarget; 151 | buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "EVVideoPlayer_Example" */; 152 | buildPhases = ( 153 | 527FA55348C7024D65305D02 /* Check Pods Manifest.lock */, 154 | 6003F586195388D20070C39A /* Sources */, 155 | 6003F587195388D20070C39A /* Frameworks */, 156 | 6003F588195388D20070C39A /* Resources */, 157 | D64365D7C7BBF3E12D0084A0 /* Copy Pods Resources */, 158 | ); 159 | buildRules = ( 160 | ); 161 | dependencies = ( 162 | ); 163 | name = EVVideoPlayer_Example; 164 | productName = EVVideoPlayer; 165 | productReference = 6003F58A195388D20070C39A /* EVVideoPlayer_Example.app */; 166 | productType = "com.apple.product-type.application"; 167 | }; 168 | /* End PBXNativeTarget section */ 169 | 170 | /* Begin PBXProject section */ 171 | 6003F582195388D10070C39A /* Project object */ = { 172 | isa = PBXProject; 173 | attributes = { 174 | CLASSPREFIX = EV; 175 | LastUpgradeCheck = 0510; 176 | ORGANIZATIONNAME = "Esteban Vallejo"; 177 | }; 178 | buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "EVVideoPlayer" */; 179 | compatibilityVersion = "Xcode 3.2"; 180 | developmentRegion = English; 181 | hasScannedForEncodings = 0; 182 | knownRegions = ( 183 | en, 184 | Base, 185 | ); 186 | mainGroup = 6003F581195388D10070C39A; 187 | productRefGroup = 6003F58B195388D20070C39A /* Products */; 188 | projectDirPath = ""; 189 | projectRoot = ""; 190 | targets = ( 191 | 6003F589195388D20070C39A /* EVVideoPlayer_Example */, 192 | ); 193 | }; 194 | /* End PBXProject section */ 195 | 196 | /* Begin PBXResourcesBuildPhase section */ 197 | 6003F588195388D20070C39A /* Resources */ = { 198 | isa = PBXResourcesBuildPhase; 199 | buildActionMask = 2147483647; 200 | files = ( 201 | 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */, 202 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */, 203 | 5B038C671B81560B00EB10C9 /* BlackBerry.mp4 in Resources */, 204 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */, 205 | ); 206 | runOnlyForDeploymentPostprocessing = 0; 207 | }; 208 | /* End PBXResourcesBuildPhase section */ 209 | 210 | /* Begin PBXShellScriptBuildPhase section */ 211 | 527FA55348C7024D65305D02 /* Check Pods Manifest.lock */ = { 212 | isa = PBXShellScriptBuildPhase; 213 | buildActionMask = 2147483647; 214 | files = ( 215 | ); 216 | inputPaths = ( 217 | ); 218 | name = "Check Pods Manifest.lock"; 219 | outputPaths = ( 220 | ); 221 | runOnlyForDeploymentPostprocessing = 0; 222 | shellPath = /bin/sh; 223 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 224 | showEnvVarsInLog = 0; 225 | }; 226 | D64365D7C7BBF3E12D0084A0 /* Copy Pods Resources */ = { 227 | isa = PBXShellScriptBuildPhase; 228 | buildActionMask = 2147483647; 229 | files = ( 230 | ); 231 | inputPaths = ( 232 | ); 233 | name = "Copy Pods Resources"; 234 | outputPaths = ( 235 | ); 236 | runOnlyForDeploymentPostprocessing = 0; 237 | shellPath = /bin/sh; 238 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-EVVideoPlayer_Example/Pods-EVVideoPlayer_Example-resources.sh\"\n"; 239 | showEnvVarsInLog = 0; 240 | }; 241 | /* End PBXShellScriptBuildPhase section */ 242 | 243 | /* Begin PBXSourcesBuildPhase section */ 244 | 6003F586195388D20070C39A /* Sources */ = { 245 | isa = PBXSourcesBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | 6003F59E195388D20070C39A /* EVAppDelegate.m in Sources */, 249 | 6003F5A7195388D20070C39A /* EVViewController.m in Sources */, 250 | 6003F59A195388D20070C39A /* main.m in Sources */, 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | }; 254 | /* End PBXSourcesBuildPhase section */ 255 | 256 | /* Begin PBXVariantGroup section */ 257 | 6003F596195388D20070C39A /* InfoPlist.strings */ = { 258 | isa = PBXVariantGroup; 259 | children = ( 260 | 6003F597195388D20070C39A /* en */, 261 | ); 262 | name = InfoPlist.strings; 263 | sourceTree = ""; 264 | }; 265 | /* End PBXVariantGroup section */ 266 | 267 | /* Begin XCBuildConfiguration section */ 268 | 6003F5BD195388D20070C39A /* Debug */ = { 269 | isa = XCBuildConfiguration; 270 | buildSettings = { 271 | ALWAYS_SEARCH_USER_PATHS = NO; 272 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 273 | CLANG_CXX_LIBRARY = "libc++"; 274 | CLANG_ENABLE_MODULES = YES; 275 | CLANG_ENABLE_OBJC_ARC = YES; 276 | CLANG_WARN_BOOL_CONVERSION = YES; 277 | CLANG_WARN_CONSTANT_CONVERSION = YES; 278 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 279 | CLANG_WARN_EMPTY_BODY = YES; 280 | CLANG_WARN_ENUM_CONVERSION = YES; 281 | CLANG_WARN_INT_CONVERSION = YES; 282 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 283 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 284 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 285 | COPY_PHASE_STRIP = NO; 286 | GCC_C_LANGUAGE_STANDARD = gnu99; 287 | GCC_DYNAMIC_NO_PIC = NO; 288 | GCC_OPTIMIZATION_LEVEL = 0; 289 | GCC_PREPROCESSOR_DEFINITIONS = ( 290 | "DEBUG=1", 291 | "$(inherited)", 292 | ); 293 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 294 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 295 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 296 | GCC_WARN_UNDECLARED_SELECTOR = YES; 297 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 298 | GCC_WARN_UNUSED_FUNCTION = YES; 299 | GCC_WARN_UNUSED_VARIABLE = YES; 300 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 301 | ONLY_ACTIVE_ARCH = YES; 302 | SDKROOT = iphoneos; 303 | TARGETED_DEVICE_FAMILY = "1,2"; 304 | }; 305 | name = Debug; 306 | }; 307 | 6003F5BE195388D20070C39A /* Release */ = { 308 | isa = XCBuildConfiguration; 309 | buildSettings = { 310 | ALWAYS_SEARCH_USER_PATHS = NO; 311 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 312 | CLANG_CXX_LIBRARY = "libc++"; 313 | CLANG_ENABLE_MODULES = YES; 314 | CLANG_ENABLE_OBJC_ARC = YES; 315 | CLANG_WARN_BOOL_CONVERSION = YES; 316 | CLANG_WARN_CONSTANT_CONVERSION = YES; 317 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 318 | CLANG_WARN_EMPTY_BODY = YES; 319 | CLANG_WARN_ENUM_CONVERSION = YES; 320 | CLANG_WARN_INT_CONVERSION = YES; 321 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 322 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 323 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 324 | COPY_PHASE_STRIP = YES; 325 | ENABLE_NS_ASSERTIONS = NO; 326 | GCC_C_LANGUAGE_STANDARD = gnu99; 327 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 328 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 329 | GCC_WARN_UNDECLARED_SELECTOR = YES; 330 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 331 | GCC_WARN_UNUSED_FUNCTION = YES; 332 | GCC_WARN_UNUSED_VARIABLE = YES; 333 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 334 | SDKROOT = iphoneos; 335 | TARGETED_DEVICE_FAMILY = "1,2"; 336 | VALIDATE_PRODUCT = YES; 337 | }; 338 | name = Release; 339 | }; 340 | 6003F5C0195388D20070C39A /* Debug */ = { 341 | isa = XCBuildConfiguration; 342 | baseConfigurationReference = A659E04E73273E5F8490505B /* Pods-EVVideoPlayer_Example.debug.xcconfig */; 343 | buildSettings = { 344 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 345 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 346 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 347 | GCC_PREFIX_HEADER = "EVVideoPlayer/EVVideoPlayer-Prefix.pch"; 348 | INFOPLIST_FILE = "EVVideoPlayer/EVVideoPlayer-Info.plist"; 349 | MODULE_NAME = ExampleApp; 350 | PRODUCT_NAME = "$(TARGET_NAME)"; 351 | WRAPPER_EXTENSION = app; 352 | }; 353 | name = Debug; 354 | }; 355 | 6003F5C1195388D20070C39A /* Release */ = { 356 | isa = XCBuildConfiguration; 357 | baseConfigurationReference = 3A73FFB3A1AB309B3CAF0DA2 /* Pods-EVVideoPlayer_Example.release.xcconfig */; 358 | buildSettings = { 359 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 360 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 361 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 362 | GCC_PREFIX_HEADER = "EVVideoPlayer/EVVideoPlayer-Prefix.pch"; 363 | INFOPLIST_FILE = "EVVideoPlayer/EVVideoPlayer-Info.plist"; 364 | MODULE_NAME = ExampleApp; 365 | PRODUCT_NAME = "$(TARGET_NAME)"; 366 | WRAPPER_EXTENSION = app; 367 | }; 368 | name = Release; 369 | }; 370 | /* End XCBuildConfiguration section */ 371 | 372 | /* Begin XCConfigurationList section */ 373 | 6003F585195388D10070C39A /* Build configuration list for PBXProject "EVVideoPlayer" */ = { 374 | isa = XCConfigurationList; 375 | buildConfigurations = ( 376 | 6003F5BD195388D20070C39A /* Debug */, 377 | 6003F5BE195388D20070C39A /* Release */, 378 | ); 379 | defaultConfigurationIsVisible = 0; 380 | defaultConfigurationName = Release; 381 | }; 382 | 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "EVVideoPlayer_Example" */ = { 383 | isa = XCConfigurationList; 384 | buildConfigurations = ( 385 | 6003F5C0195388D20070C39A /* Debug */, 386 | 6003F5C1195388D20070C39A /* Release */, 387 | ); 388 | defaultConfigurationIsVisible = 0; 389 | defaultConfigurationName = Release; 390 | }; 391 | /* End XCConfigurationList section */ 392 | }; 393 | rootObject = 6003F582195388D10070C39A /* Project object */; 394 | } 395 | -------------------------------------------------------------------------------- /Example/EVVideoPlayer.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/EVVideoPlayer.xcodeproj/xcshareddata/xcschemes/EVVideoPlayer-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 61 | 63 | 69 | 70 | 71 | 72 | 73 | 74 | 80 | 82 | 88 | 89 | 90 | 91 | 93 | 94 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /Example/EVVideoPlayer.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/EVVideoPlayer/BlackBerry.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EstebanVallejo/EVVideoPlayer/0ec9d1357257ed1c46506fdef20f702df3217d94/Example/EVVideoPlayer/BlackBerry.mp4 -------------------------------------------------------------------------------- /Example/EVVideoPlayer/EVAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // EVAppDelegate.h 3 | // EVVideoPlayer 4 | // 5 | // Created by Esteban Vallejo on 08/15/2015. 6 | // Copyright (c) 2015 Esteban Vallejo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface EVAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Example/EVVideoPlayer/EVAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // EVAppDelegate.m 3 | // EVVideoPlayer 4 | // 5 | // Created by Esteban Vallejo on 08/15/2015. 6 | // Copyright (c) 2015 Esteban Vallejo. All rights reserved. 7 | // 8 | 9 | #import "EVAppDelegate.h" 10 | 11 | @implementation EVAppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | // Override point for customization after application launch. 16 | return YES; 17 | } 18 | 19 | - (void)applicationWillResignActive:(UIApplication *)application 20 | { 21 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 22 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 23 | } 24 | 25 | - (void)applicationDidEnterBackground:(UIApplication *)application 26 | { 27 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | - (void)applicationWillEnterForeground:(UIApplication *)application 32 | { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | - (void)applicationDidBecomeActive:(UIApplication *)application 37 | { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application 42 | { 43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Example/EVVideoPlayer/EVVideoPlayer-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 0.1.2 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /Example/EVVideoPlayer/EVVideoPlayer-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | @import UIKit; 15 | @import Foundation; 16 | #endif 17 | -------------------------------------------------------------------------------- /Example/EVVideoPlayer/EVViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // EVViewController.h 3 | // EVVideoPlayer 4 | // 5 | // Created by Esteban Vallejo on 08/15/2015. 6 | // Copyright (c) 2015 Esteban Vallejo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface EVViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/EVVideoPlayer/EVViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // EVViewController.m 3 | // EVVideoPlayer 4 | // 5 | // Created by Esteban Vallejo on 08/15/2015. 6 | // Copyright (c) 2015 Esteban Vallejo. All rights reserved. 7 | // 8 | 9 | #import "EVViewController.h" 10 | #import 11 | 12 | @interface EVViewController () 13 | @property (nonatomic, weak) IBOutlet EVVideoPlayer *videoPlayer; 14 | @end 15 | 16 | @implementation EVViewController 17 | 18 | - (void)viewDidLoad { 19 | [super viewDidLoad]; 20 | 21 | [self configureVideoPlayer]; 22 | } 23 | 24 | - (void)configureVideoPlayer { 25 | NSString *urlString = [[NSBundle mainBundle] pathForResource:@"BlackBerry" ofType:@"mp4"]; 26 | NSURL *url = [[NSURL alloc] initFileURLWithPath:urlString]; 27 | 28 | [self.videoPlayer tapToPlayOrPauseEnabled:true]; 29 | 30 | [self.videoPlayer setVideoURL:url]; 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Example/EVVideoPlayer/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "40x40", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "60x60", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "ipad", 20 | "size" : "29x29", 21 | "scale" : "1x" 22 | }, 23 | { 24 | "idiom" : "ipad", 25 | "size" : "29x29", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "ipad", 30 | "size" : "40x40", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "40x40", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "76x76", 41 | "scale" : "1x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "76x76", 46 | "scale" : "2x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Example/EVVideoPlayer/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "portrait", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "7.0", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "orientation" : "portrait", 20 | "idiom" : "ipad", 21 | "extent" : "full-screen", 22 | "minimum-system-version" : "7.0", 23 | "scale" : "1x" 24 | }, 25 | { 26 | "orientation" : "landscape", 27 | "idiom" : "ipad", 28 | "extent" : "full-screen", 29 | "minimum-system-version" : "7.0", 30 | "scale" : "1x" 31 | }, 32 | { 33 | "orientation" : "portrait", 34 | "idiom" : "ipad", 35 | "extent" : "full-screen", 36 | "minimum-system-version" : "7.0", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "orientation" : "landscape", 41 | "idiom" : "ipad", 42 | "extent" : "full-screen", 43 | "minimum-system-version" : "7.0", 44 | "scale" : "2x" 45 | } 46 | ], 47 | "info" : { 48 | "version" : 1, 49 | "author" : "xcode" 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Example/EVVideoPlayer/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /Example/EVVideoPlayer/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/EVVideoPlayer/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // EVVideoPlayer 4 | // 5 | // Created by Esteban Vallejo on 08/15/2015. 6 | // Copyright (c) 2015 Esteban Vallejo. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | #import "EVAppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) 13 | { 14 | @autoreleasepool { 15 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([EVAppDelegate class])); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | 3 | target 'EVVideoPlayer_Example', :exclusive => true do 4 | pod "EVVideoPlayer", :path => "../" 5 | end 6 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - EVVideoPlayer (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - EVVideoPlayer (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | EVVideoPlayer: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | EVVideoPlayer: 6c0561a1a77f8221f50da25026f67745a3ca1515 13 | 14 | COCOAPODS: 0.38.2 15 | -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/EVVideoPlayer/EVVideoPlayer.h: -------------------------------------------------------------------------------- 1 | ../../../../../Pod/Classes/EVVideoPlayer.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/EVVideoPlayer/EVVideoPlayer.h: -------------------------------------------------------------------------------- 1 | ../../../../../Pod/Classes/EVVideoPlayer.h -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/EVVideoPlayer.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "EVVideoPlayer", 3 | "version": "0.1.0", 4 | "summary": "A UIView subclass for playing videos", 5 | "description": "A video player with a lot of cool features. More coming soon!.", 6 | "homepage": "https://github.com/EstebanVallejo/EVVideoPlayer", 7 | "license": "MIT", 8 | "authors": { 9 | "Esteban Vallejo": "evallejo@gmail.com" 10 | }, 11 | "source": { 12 | "git": "https://github.com/EstebanVallejo/EVVideoPlayer.git", 13 | "tag": "0.1.0" 14 | }, 15 | "platforms": { 16 | "ios": "7.0" 17 | }, 18 | "requires_arc": true, 19 | "source_files": "Pod/Classes/**/*", 20 | "resource_bundles": { 21 | "EVVideoPlayer": [ 22 | "Pod/Assets/*.png" 23 | ] 24 | }, 25 | "frameworks": [ 26 | "AVFoundation", 27 | "QuartzCore" 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - EVVideoPlayer (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - EVVideoPlayer (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | EVVideoPlayer: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | EVVideoPlayer: 6c0561a1a77f8221f50da25026f67745a3ca1515 13 | 14 | COCOAPODS: 0.38.2 15 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 39B09F9D3F3D57BA30AE66C0261BA216 /* EVVideoPlayer.h in Headers */ = {isa = PBXBuildFile; fileRef = F340A04855921A58988262E1C73FE9DC /* EVVideoPlayer.h */; }; 11 | 4966582A8FF1519762484CC172AA3B18 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C2D2BA27B0B3FD6DF378DAF640AD2088 /* AVFoundation.framework */; }; 12 | 5B038C621B81162600EB10C9 /* EVVideoPlayer+Utility.h in Headers */ = {isa = PBXBuildFile; fileRef = 5B038C601B81162600EB10C9 /* EVVideoPlayer+Utility.h */; }; 13 | 5B038C631B81162600EB10C9 /* EVVideoPlayer+Utility.m in Sources */ = {isa = PBXBuildFile; fileRef = 5B038C611B81162600EB10C9 /* EVVideoPlayer+Utility.m */; }; 14 | 5F0A0E4A4A21C14D88B1F0929F11C008 /* EVVideoPlayer-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = A8EC970E844B720A2CBC656680562937 /* EVVideoPlayer-dummy.m */; }; 15 | 8719C5B6659B0301020D8C2405AE2A7C /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0499EA8FFFFE7E968B7DF33B656D4382 /* QuartzCore.framework */; }; 16 | AAE85ED096BF9BB861E17187CB63CCE8 /* Pods-EVVideoPlayer_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 96B39DDB819C2724CCA961567B1C03DD /* Pods-EVVideoPlayer_Example-dummy.m */; }; 17 | BB5280C5148A75D17601611783747F52 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DAC7BEAAF8CDAB864E2551EC77E98E21 /* Foundation.framework */; }; 18 | BE786015492707B3B6F67F21AF91FD1B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DAC7BEAAF8CDAB864E2551EC77E98E21 /* Foundation.framework */; }; 19 | E78B2CD750DEE25F0040FFAC8F9FF7C4 /* EVVideoPlayer.m in Sources */ = {isa = PBXBuildFile; fileRef = 7375F35329FFFDC19E0AB1A2A120228E /* EVVideoPlayer.m */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 2BE036E409A73E46B3358C9EAA8D2093 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = 91F216F386B7FE03013D775ECF469914; 28 | remoteInfo = EVVideoPlayer; 29 | }; 30 | CE60BE1D3B6397A5272CD92A0F092C28 /* PBXContainerItemProxy */ = { 31 | isa = PBXContainerItemProxy; 32 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 33 | proxyType = 1; 34 | remoteGlobalIDString = 7E238975E767D455F619D39357E017BA; 35 | remoteInfo = "EVVideoPlayer-EVVideoPlayer"; 36 | }; 37 | /* End PBXContainerItemProxy section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 0499EA8FFFFE7E968B7DF33B656D4382 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/QuartzCore.framework; sourceTree = DEVELOPER_DIR; }; 41 | 17374F04010B27A8D82BD6D9BB0F69D6 /* EVVideoPlayer.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = EVVideoPlayer.xcconfig; sourceTree = ""; }; 42 | 224A9ECB4A1C0B7C5A00480751BB3001 /* EVVideoPlayer-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "EVVideoPlayer-prefix.pch"; sourceTree = ""; }; 43 | 244E46C0CAD4DF27892192FB708D3E9F /* Pods-EVVideoPlayer_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-EVVideoPlayer_Example-acknowledgements.plist"; sourceTree = ""; }; 44 | 5B038C601B81162600EB10C9 /* EVVideoPlayer+Utility.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "EVVideoPlayer+Utility.h"; sourceTree = ""; }; 45 | 5B038C611B81162600EB10C9 /* EVVideoPlayer+Utility.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "EVVideoPlayer+Utility.m"; sourceTree = ""; }; 46 | 6213088B26A94268C7E87E5FB4D2571E /* EVVideoPlayer.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = EVVideoPlayer.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 7375F35329FFFDC19E0AB1A2A120228E /* EVVideoPlayer.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = EVVideoPlayer.m; sourceTree = ""; }; 48 | 7F1C98F08D662FE74853F045A11418FC /* libPods-EVVideoPlayer_Example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-EVVideoPlayer_Example.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 83CFB1D9F100A1E12394F66987D6EF2D /* EVVideoPlayer-Private.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "EVVideoPlayer-Private.xcconfig"; sourceTree = ""; }; 50 | 9648F2CBE3CAC1431729912E0C876FB5 /* Pods-EVVideoPlayer_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-EVVideoPlayer_Example.release.xcconfig"; sourceTree = ""; }; 51 | 96B39DDB819C2724CCA961567B1C03DD /* Pods-EVVideoPlayer_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-EVVideoPlayer_Example-dummy.m"; sourceTree = ""; }; 52 | 9A48ED527D3196DE22E23CFA37A4BB2B /* libEVVideoPlayer.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libEVVideoPlayer.a; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | A8EC970E844B720A2CBC656680562937 /* EVVideoPlayer-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "EVVideoPlayer-dummy.m"; sourceTree = ""; }; 54 | BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 55 | C2D2BA27B0B3FD6DF378DAF640AD2088 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/AVFoundation.framework; sourceTree = DEVELOPER_DIR; }; 56 | C37AB83445167E550D69BC237899C19F /* Pods-EVVideoPlayer_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-EVVideoPlayer_Example-resources.sh"; sourceTree = ""; }; 57 | D4EACFCA72C752B3A6A6D96E08F203EB /* Pods-EVVideoPlayer_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-EVVideoPlayer_Example.debug.xcconfig"; sourceTree = ""; }; 58 | DAC7BEAAF8CDAB864E2551EC77E98E21 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 59 | E4F075507137EC271AE17E7A927FF73F /* Pods-EVVideoPlayer_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-EVVideoPlayer_Example-acknowledgements.markdown"; sourceTree = ""; }; 60 | F340A04855921A58988262E1C73FE9DC /* EVVideoPlayer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = EVVideoPlayer.h; sourceTree = ""; }; 61 | /* End PBXFileReference section */ 62 | 63 | /* Begin PBXFrameworksBuildPhase section */ 64 | 21799E6728283C463F48245AA34CEB5B /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | 4966582A8FF1519762484CC172AA3B18 /* AVFoundation.framework in Frameworks */, 69 | BB5280C5148A75D17601611783747F52 /* Foundation.framework in Frameworks */, 70 | 8719C5B6659B0301020D8C2405AE2A7C /* QuartzCore.framework in Frameworks */, 71 | ); 72 | runOnlyForDeploymentPostprocessing = 0; 73 | }; 74 | D83E369D37BF4E20B052A5260A89451A /* Frameworks */ = { 75 | isa = PBXFrameworksBuildPhase; 76 | buildActionMask = 2147483647; 77 | files = ( 78 | BE786015492707B3B6F67F21AF91FD1B /* Foundation.framework in Frameworks */, 79 | ); 80 | runOnlyForDeploymentPostprocessing = 0; 81 | }; 82 | E35F09A155B90A27AC6008C4ABC88BCE /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | ); 87 | runOnlyForDeploymentPostprocessing = 0; 88 | }; 89 | /* End PBXFrameworksBuildPhase section */ 90 | 91 | /* Begin PBXGroup section */ 92 | 00432FA6D4E8B8018A9ABC6E6B84D017 /* Pod */ = { 93 | isa = PBXGroup; 94 | children = ( 95 | 4505B371FE7B56221ABEE0C6C105E474 /* Classes */, 96 | ); 97 | path = Pod; 98 | sourceTree = ""; 99 | }; 100 | 0A7ECA357BBEA904EDE1D6C8D7B42D61 /* iOS */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | C2D2BA27B0B3FD6DF378DAF640AD2088 /* AVFoundation.framework */, 104 | DAC7BEAAF8CDAB864E2551EC77E98E21 /* Foundation.framework */, 105 | 0499EA8FFFFE7E968B7DF33B656D4382 /* QuartzCore.framework */, 106 | ); 107 | name = iOS; 108 | sourceTree = ""; 109 | }; 110 | 122DA2E5084A4393C29BE363C764795C /* Frameworks */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 0A7ECA357BBEA904EDE1D6C8D7B42D61 /* iOS */, 114 | ); 115 | name = Frameworks; 116 | sourceTree = ""; 117 | }; 118 | 1238CDD151BC858F961099880635165F /* EVVideoPlayer */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 00432FA6D4E8B8018A9ABC6E6B84D017 /* Pod */, 122 | CBAB00C5E0EFC121897F0A0BF116DA4E /* Support Files */, 123 | ); 124 | name = EVVideoPlayer; 125 | path = ../..; 126 | sourceTree = ""; 127 | }; 128 | 4505B371FE7B56221ABEE0C6C105E474 /* Classes */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | F340A04855921A58988262E1C73FE9DC /* EVVideoPlayer.h */, 132 | 7375F35329FFFDC19E0AB1A2A120228E /* EVVideoPlayer.m */, 133 | 5B038C601B81162600EB10C9 /* EVVideoPlayer+Utility.h */, 134 | 5B038C611B81162600EB10C9 /* EVVideoPlayer+Utility.m */, 135 | ); 136 | path = Classes; 137 | sourceTree = ""; 138 | }; 139 | 7DB346D0F39D3F0E887471402A8071AB = { 140 | isa = PBXGroup; 141 | children = ( 142 | BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */, 143 | B377C1A5DAFD2905D41CD8A6114E335C /* Development Pods */, 144 | 122DA2E5084A4393C29BE363C764795C /* Frameworks */, 145 | CCA510CFBEA2D207524CDA0D73C3B561 /* Products */, 146 | A6EE31024F1DC68B4E3E580328F1A05B /* Targets Support Files */, 147 | ); 148 | sourceTree = ""; 149 | }; 150 | A6EE31024F1DC68B4E3E580328F1A05B /* Targets Support Files */ = { 151 | isa = PBXGroup; 152 | children = ( 153 | E3A6781143054EAC515CA88198C453B7 /* Pods-EVVideoPlayer_Example */, 154 | ); 155 | name = "Targets Support Files"; 156 | sourceTree = ""; 157 | }; 158 | B377C1A5DAFD2905D41CD8A6114E335C /* Development Pods */ = { 159 | isa = PBXGroup; 160 | children = ( 161 | 1238CDD151BC858F961099880635165F /* EVVideoPlayer */, 162 | ); 163 | name = "Development Pods"; 164 | sourceTree = ""; 165 | }; 166 | CBAB00C5E0EFC121897F0A0BF116DA4E /* Support Files */ = { 167 | isa = PBXGroup; 168 | children = ( 169 | 17374F04010B27A8D82BD6D9BB0F69D6 /* EVVideoPlayer.xcconfig */, 170 | 83CFB1D9F100A1E12394F66987D6EF2D /* EVVideoPlayer-Private.xcconfig */, 171 | A8EC970E844B720A2CBC656680562937 /* EVVideoPlayer-dummy.m */, 172 | 224A9ECB4A1C0B7C5A00480751BB3001 /* EVVideoPlayer-prefix.pch */, 173 | ); 174 | name = "Support Files"; 175 | path = "Example/Pods/Target Support Files/EVVideoPlayer"; 176 | sourceTree = ""; 177 | }; 178 | CCA510CFBEA2D207524CDA0D73C3B561 /* Products */ = { 179 | isa = PBXGroup; 180 | children = ( 181 | 6213088B26A94268C7E87E5FB4D2571E /* EVVideoPlayer.bundle */, 182 | 9A48ED527D3196DE22E23CFA37A4BB2B /* libEVVideoPlayer.a */, 183 | 7F1C98F08D662FE74853F045A11418FC /* libPods-EVVideoPlayer_Example.a */, 184 | ); 185 | name = Products; 186 | sourceTree = ""; 187 | }; 188 | E3A6781143054EAC515CA88198C453B7 /* Pods-EVVideoPlayer_Example */ = { 189 | isa = PBXGroup; 190 | children = ( 191 | E4F075507137EC271AE17E7A927FF73F /* Pods-EVVideoPlayer_Example-acknowledgements.markdown */, 192 | 244E46C0CAD4DF27892192FB708D3E9F /* Pods-EVVideoPlayer_Example-acknowledgements.plist */, 193 | 96B39DDB819C2724CCA961567B1C03DD /* Pods-EVVideoPlayer_Example-dummy.m */, 194 | C37AB83445167E550D69BC237899C19F /* Pods-EVVideoPlayer_Example-resources.sh */, 195 | D4EACFCA72C752B3A6A6D96E08F203EB /* Pods-EVVideoPlayer_Example.debug.xcconfig */, 196 | 9648F2CBE3CAC1431729912E0C876FB5 /* Pods-EVVideoPlayer_Example.release.xcconfig */, 197 | ); 198 | name = "Pods-EVVideoPlayer_Example"; 199 | path = "Target Support Files/Pods-EVVideoPlayer_Example"; 200 | sourceTree = ""; 201 | }; 202 | /* End PBXGroup section */ 203 | 204 | /* Begin PBXHeadersBuildPhase section */ 205 | 60C5BB145B7964CD77229157E36DE7A7 /* Headers */ = { 206 | isa = PBXHeadersBuildPhase; 207 | buildActionMask = 2147483647; 208 | files = ( 209 | 39B09F9D3F3D57BA30AE66C0261BA216 /* EVVideoPlayer.h in Headers */, 210 | 5B038C621B81162600EB10C9 /* EVVideoPlayer+Utility.h in Headers */, 211 | ); 212 | runOnlyForDeploymentPostprocessing = 0; 213 | }; 214 | /* End PBXHeadersBuildPhase section */ 215 | 216 | /* Begin PBXNativeTarget section */ 217 | 6CAA2D709F16A350E282180369A80A85 /* Pods-EVVideoPlayer_Example */ = { 218 | isa = PBXNativeTarget; 219 | buildConfigurationList = F53691DDEFC80E956688B31791E6A309 /* Build configuration list for PBXNativeTarget "Pods-EVVideoPlayer_Example" */; 220 | buildPhases = ( 221 | 6CB0CA36A5E24893707F1DD193528EC1 /* Sources */, 222 | D83E369D37BF4E20B052A5260A89451A /* Frameworks */, 223 | ); 224 | buildRules = ( 225 | ); 226 | dependencies = ( 227 | A126E56EAD36F1BB9A285485260C8E8A /* PBXTargetDependency */, 228 | ); 229 | name = "Pods-EVVideoPlayer_Example"; 230 | productName = "Pods-EVVideoPlayer_Example"; 231 | productReference = 7F1C98F08D662FE74853F045A11418FC /* libPods-EVVideoPlayer_Example.a */; 232 | productType = "com.apple.product-type.library.static"; 233 | }; 234 | 7E238975E767D455F619D39357E017BA /* EVVideoPlayer-EVVideoPlayer */ = { 235 | isa = PBXNativeTarget; 236 | buildConfigurationList = 464E184D5B6D42C8630773A1F0AC4143 /* Build configuration list for PBXNativeTarget "EVVideoPlayer-EVVideoPlayer" */; 237 | buildPhases = ( 238 | C71D508CECB90B98CBAC10E6EB726303 /* Sources */, 239 | E35F09A155B90A27AC6008C4ABC88BCE /* Frameworks */, 240 | 8F11B6A9547167FFCDC550E92949527C /* Resources */, 241 | ); 242 | buildRules = ( 243 | ); 244 | dependencies = ( 245 | ); 246 | name = "EVVideoPlayer-EVVideoPlayer"; 247 | productName = "EVVideoPlayer-EVVideoPlayer"; 248 | productReference = 6213088B26A94268C7E87E5FB4D2571E /* EVVideoPlayer.bundle */; 249 | productType = "com.apple.product-type.bundle"; 250 | }; 251 | 91F216F386B7FE03013D775ECF469914 /* EVVideoPlayer */ = { 252 | isa = PBXNativeTarget; 253 | buildConfigurationList = 3DF76D2944E6DE0F75AD33C72945C14F /* Build configuration list for PBXNativeTarget "EVVideoPlayer" */; 254 | buildPhases = ( 255 | 4350BE7B8895A83854D6156E27568187 /* Sources */, 256 | 21799E6728283C463F48245AA34CEB5B /* Frameworks */, 257 | 60C5BB145B7964CD77229157E36DE7A7 /* Headers */, 258 | ); 259 | buildRules = ( 260 | ); 261 | dependencies = ( 262 | 2623C32AF79198CCC374EA06B788ABC8 /* PBXTargetDependency */, 263 | ); 264 | name = EVVideoPlayer; 265 | productName = EVVideoPlayer; 266 | productReference = 9A48ED527D3196DE22E23CFA37A4BB2B /* libEVVideoPlayer.a */; 267 | productType = "com.apple.product-type.library.static"; 268 | }; 269 | /* End PBXNativeTarget section */ 270 | 271 | /* Begin PBXProject section */ 272 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 273 | isa = PBXProject; 274 | attributes = { 275 | LastSwiftUpdateCheck = 0700; 276 | LastUpgradeCheck = 0700; 277 | }; 278 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 279 | compatibilityVersion = "Xcode 3.2"; 280 | developmentRegion = English; 281 | hasScannedForEncodings = 0; 282 | knownRegions = ( 283 | en, 284 | ); 285 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 286 | productRefGroup = CCA510CFBEA2D207524CDA0D73C3B561 /* Products */; 287 | projectDirPath = ""; 288 | projectRoot = ""; 289 | targets = ( 290 | 91F216F386B7FE03013D775ECF469914 /* EVVideoPlayer */, 291 | 7E238975E767D455F619D39357E017BA /* EVVideoPlayer-EVVideoPlayer */, 292 | 6CAA2D709F16A350E282180369A80A85 /* Pods-EVVideoPlayer_Example */, 293 | ); 294 | }; 295 | /* End PBXProject section */ 296 | 297 | /* Begin PBXResourcesBuildPhase section */ 298 | 8F11B6A9547167FFCDC550E92949527C /* Resources */ = { 299 | isa = PBXResourcesBuildPhase; 300 | buildActionMask = 2147483647; 301 | files = ( 302 | ); 303 | runOnlyForDeploymentPostprocessing = 0; 304 | }; 305 | /* End PBXResourcesBuildPhase section */ 306 | 307 | /* Begin PBXSourcesBuildPhase section */ 308 | 4350BE7B8895A83854D6156E27568187 /* Sources */ = { 309 | isa = PBXSourcesBuildPhase; 310 | buildActionMask = 2147483647; 311 | files = ( 312 | 5F0A0E4A4A21C14D88B1F0929F11C008 /* EVVideoPlayer-dummy.m in Sources */, 313 | 5B038C631B81162600EB10C9 /* EVVideoPlayer+Utility.m in Sources */, 314 | E78B2CD750DEE25F0040FFAC8F9FF7C4 /* EVVideoPlayer.m in Sources */, 315 | ); 316 | runOnlyForDeploymentPostprocessing = 0; 317 | }; 318 | 6CB0CA36A5E24893707F1DD193528EC1 /* Sources */ = { 319 | isa = PBXSourcesBuildPhase; 320 | buildActionMask = 2147483647; 321 | files = ( 322 | AAE85ED096BF9BB861E17187CB63CCE8 /* Pods-EVVideoPlayer_Example-dummy.m in Sources */, 323 | ); 324 | runOnlyForDeploymentPostprocessing = 0; 325 | }; 326 | C71D508CECB90B98CBAC10E6EB726303 /* Sources */ = { 327 | isa = PBXSourcesBuildPhase; 328 | buildActionMask = 2147483647; 329 | files = ( 330 | ); 331 | runOnlyForDeploymentPostprocessing = 0; 332 | }; 333 | /* End PBXSourcesBuildPhase section */ 334 | 335 | /* Begin PBXTargetDependency section */ 336 | 2623C32AF79198CCC374EA06B788ABC8 /* PBXTargetDependency */ = { 337 | isa = PBXTargetDependency; 338 | name = "EVVideoPlayer-EVVideoPlayer"; 339 | target = 7E238975E767D455F619D39357E017BA /* EVVideoPlayer-EVVideoPlayer */; 340 | targetProxy = CE60BE1D3B6397A5272CD92A0F092C28 /* PBXContainerItemProxy */; 341 | }; 342 | A126E56EAD36F1BB9A285485260C8E8A /* PBXTargetDependency */ = { 343 | isa = PBXTargetDependency; 344 | name = EVVideoPlayer; 345 | target = 91F216F386B7FE03013D775ECF469914 /* EVVideoPlayer */; 346 | targetProxy = 2BE036E409A73E46B3358C9EAA8D2093 /* PBXContainerItemProxy */; 347 | }; 348 | /* End PBXTargetDependency section */ 349 | 350 | /* Begin XCBuildConfiguration section */ 351 | 052A17875CB827423D627183396CEB60 /* Release */ = { 352 | isa = XCBuildConfiguration; 353 | buildSettings = { 354 | ALWAYS_SEARCH_USER_PATHS = NO; 355 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 356 | CLANG_CXX_LIBRARY = "libc++"; 357 | CLANG_ENABLE_MODULES = YES; 358 | CLANG_ENABLE_OBJC_ARC = YES; 359 | CLANG_WARN_BOOL_CONVERSION = YES; 360 | CLANG_WARN_CONSTANT_CONVERSION = YES; 361 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 362 | CLANG_WARN_EMPTY_BODY = YES; 363 | CLANG_WARN_ENUM_CONVERSION = YES; 364 | CLANG_WARN_INT_CONVERSION = YES; 365 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 366 | CLANG_WARN_UNREACHABLE_CODE = YES; 367 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 368 | COPY_PHASE_STRIP = YES; 369 | ENABLE_NS_ASSERTIONS = NO; 370 | GCC_C_LANGUAGE_STANDARD = gnu99; 371 | GCC_PREPROCESSOR_DEFINITIONS = "RELEASE=1"; 372 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 373 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 374 | GCC_WARN_UNDECLARED_SELECTOR = YES; 375 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 376 | GCC_WARN_UNUSED_FUNCTION = YES; 377 | GCC_WARN_UNUSED_VARIABLE = YES; 378 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 379 | STRIP_INSTALLED_PRODUCT = NO; 380 | SYMROOT = "${SRCROOT}/../build"; 381 | VALIDATE_PRODUCT = YES; 382 | }; 383 | name = Release; 384 | }; 385 | 15A2975E6B01617DE69DC35AC4634EA4 /* Debug */ = { 386 | isa = XCBuildConfiguration; 387 | baseConfigurationReference = 83CFB1D9F100A1E12394F66987D6EF2D /* EVVideoPlayer-Private.xcconfig */; 388 | buildSettings = { 389 | ENABLE_STRICT_OBJC_MSGSEND = YES; 390 | PRODUCT_NAME = EVVideoPlayer; 391 | SDKROOT = iphoneos; 392 | SKIP_INSTALL = YES; 393 | WRAPPER_EXTENSION = bundle; 394 | }; 395 | name = Debug; 396 | }; 397 | 3A4AC53BEFCB91598050F63742DEAD2E /* Release */ = { 398 | isa = XCBuildConfiguration; 399 | baseConfigurationReference = 83CFB1D9F100A1E12394F66987D6EF2D /* EVVideoPlayer-Private.xcconfig */; 400 | buildSettings = { 401 | ENABLE_STRICT_OBJC_MSGSEND = YES; 402 | GCC_PREFIX_HEADER = "Target Support Files/EVVideoPlayer/EVVideoPlayer-prefix.pch"; 403 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 404 | MTL_ENABLE_DEBUG_INFO = NO; 405 | OTHER_LDFLAGS = ""; 406 | OTHER_LIBTOOLFLAGS = ""; 407 | PRODUCT_NAME = "$(TARGET_NAME)"; 408 | SDKROOT = iphoneos; 409 | SKIP_INSTALL = YES; 410 | }; 411 | name = Release; 412 | }; 413 | 7AF384F0B31844367E62EB81F2F9BF6C /* Debug */ = { 414 | isa = XCBuildConfiguration; 415 | baseConfigurationReference = D4EACFCA72C752B3A6A6D96E08F203EB /* Pods-EVVideoPlayer_Example.debug.xcconfig */; 416 | buildSettings = { 417 | ENABLE_STRICT_OBJC_MSGSEND = YES; 418 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 419 | MTL_ENABLE_DEBUG_INFO = YES; 420 | OTHER_LDFLAGS = ""; 421 | OTHER_LIBTOOLFLAGS = ""; 422 | PODS_ROOT = "$(SRCROOT)"; 423 | PRODUCT_NAME = "$(TARGET_NAME)"; 424 | SDKROOT = iphoneos; 425 | SKIP_INSTALL = YES; 426 | }; 427 | name = Debug; 428 | }; 429 | 9DB34646B721ED3C99E4B202A8471592 /* Debug */ = { 430 | isa = XCBuildConfiguration; 431 | baseConfigurationReference = 83CFB1D9F100A1E12394F66987D6EF2D /* EVVideoPlayer-Private.xcconfig */; 432 | buildSettings = { 433 | ENABLE_STRICT_OBJC_MSGSEND = YES; 434 | GCC_PREFIX_HEADER = "Target Support Files/EVVideoPlayer/EVVideoPlayer-prefix.pch"; 435 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 436 | MTL_ENABLE_DEBUG_INFO = YES; 437 | OTHER_LDFLAGS = ""; 438 | OTHER_LIBTOOLFLAGS = ""; 439 | PRODUCT_NAME = "$(TARGET_NAME)"; 440 | SDKROOT = iphoneos; 441 | SKIP_INSTALL = YES; 442 | }; 443 | name = Debug; 444 | }; 445 | A169B238A0978BD802B0B444258438C3 /* Release */ = { 446 | isa = XCBuildConfiguration; 447 | baseConfigurationReference = 83CFB1D9F100A1E12394F66987D6EF2D /* EVVideoPlayer-Private.xcconfig */; 448 | buildSettings = { 449 | ENABLE_STRICT_OBJC_MSGSEND = YES; 450 | PRODUCT_NAME = EVVideoPlayer; 451 | SDKROOT = iphoneos; 452 | SKIP_INSTALL = YES; 453 | WRAPPER_EXTENSION = bundle; 454 | }; 455 | name = Release; 456 | }; 457 | B37F0F91F85060E28F1DAAB522DC7EC1 /* Debug */ = { 458 | isa = XCBuildConfiguration; 459 | buildSettings = { 460 | ALWAYS_SEARCH_USER_PATHS = NO; 461 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 462 | CLANG_CXX_LIBRARY = "libc++"; 463 | CLANG_ENABLE_MODULES = YES; 464 | CLANG_ENABLE_OBJC_ARC = YES; 465 | CLANG_WARN_BOOL_CONVERSION = YES; 466 | CLANG_WARN_CONSTANT_CONVERSION = YES; 467 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 468 | CLANG_WARN_EMPTY_BODY = YES; 469 | CLANG_WARN_ENUM_CONVERSION = YES; 470 | CLANG_WARN_INT_CONVERSION = YES; 471 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 472 | CLANG_WARN_UNREACHABLE_CODE = YES; 473 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 474 | COPY_PHASE_STRIP = NO; 475 | GCC_C_LANGUAGE_STANDARD = gnu99; 476 | GCC_DYNAMIC_NO_PIC = NO; 477 | GCC_OPTIMIZATION_LEVEL = 0; 478 | GCC_PREPROCESSOR_DEFINITIONS = ( 479 | "DEBUG=1", 480 | "$(inherited)", 481 | ); 482 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 483 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 484 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 485 | GCC_WARN_UNDECLARED_SELECTOR = YES; 486 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 487 | GCC_WARN_UNUSED_FUNCTION = YES; 488 | GCC_WARN_UNUSED_VARIABLE = YES; 489 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 490 | ONLY_ACTIVE_ARCH = YES; 491 | STRIP_INSTALLED_PRODUCT = NO; 492 | SYMROOT = "${SRCROOT}/../build"; 493 | }; 494 | name = Debug; 495 | }; 496 | C5486ED4440863C00F5EE9A88DCC6583 /* Release */ = { 497 | isa = XCBuildConfiguration; 498 | baseConfigurationReference = 9648F2CBE3CAC1431729912E0C876FB5 /* Pods-EVVideoPlayer_Example.release.xcconfig */; 499 | buildSettings = { 500 | ENABLE_STRICT_OBJC_MSGSEND = YES; 501 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 502 | MTL_ENABLE_DEBUG_INFO = NO; 503 | OTHER_LDFLAGS = ""; 504 | OTHER_LIBTOOLFLAGS = ""; 505 | PODS_ROOT = "$(SRCROOT)"; 506 | PRODUCT_NAME = "$(TARGET_NAME)"; 507 | SDKROOT = iphoneos; 508 | SKIP_INSTALL = YES; 509 | }; 510 | name = Release; 511 | }; 512 | /* End XCBuildConfiguration section */ 513 | 514 | /* Begin XCConfigurationList section */ 515 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 516 | isa = XCConfigurationList; 517 | buildConfigurations = ( 518 | B37F0F91F85060E28F1DAAB522DC7EC1 /* Debug */, 519 | 052A17875CB827423D627183396CEB60 /* Release */, 520 | ); 521 | defaultConfigurationIsVisible = 0; 522 | defaultConfigurationName = Release; 523 | }; 524 | 3DF76D2944E6DE0F75AD33C72945C14F /* Build configuration list for PBXNativeTarget "EVVideoPlayer" */ = { 525 | isa = XCConfigurationList; 526 | buildConfigurations = ( 527 | 9DB34646B721ED3C99E4B202A8471592 /* Debug */, 528 | 3A4AC53BEFCB91598050F63742DEAD2E /* Release */, 529 | ); 530 | defaultConfigurationIsVisible = 0; 531 | defaultConfigurationName = Release; 532 | }; 533 | 464E184D5B6D42C8630773A1F0AC4143 /* Build configuration list for PBXNativeTarget "EVVideoPlayer-EVVideoPlayer" */ = { 534 | isa = XCConfigurationList; 535 | buildConfigurations = ( 536 | 15A2975E6B01617DE69DC35AC4634EA4 /* Debug */, 537 | A169B238A0978BD802B0B444258438C3 /* Release */, 538 | ); 539 | defaultConfigurationIsVisible = 0; 540 | defaultConfigurationName = Release; 541 | }; 542 | F53691DDEFC80E956688B31791E6A309 /* Build configuration list for PBXNativeTarget "Pods-EVVideoPlayer_Example" */ = { 543 | isa = XCConfigurationList; 544 | buildConfigurations = ( 545 | 7AF384F0B31844367E62EB81F2F9BF6C /* Debug */, 546 | C5486ED4440863C00F5EE9A88DCC6583 /* Release */, 547 | ); 548 | defaultConfigurationIsVisible = 0; 549 | defaultConfigurationName = Release; 550 | }; 551 | /* End XCConfigurationList section */ 552 | }; 553 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 554 | } 555 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/EVVideoPlayer.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 47 | 48 | 54 | 55 | 57 | 58 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/EVVideoPlayer/EVVideoPlayer-Private.xcconfig: -------------------------------------------------------------------------------- 1 | #include "EVVideoPlayer.xcconfig" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/EVVideoPlayer" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/EVVideoPlayer" 4 | OTHER_LDFLAGS = ${EVVIDEOPLAYER_OTHER_LDFLAGS} 5 | PODS_ROOT = ${SRCROOT} 6 | SKIP_INSTALL = YES -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/EVVideoPlayer/EVVideoPlayer-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_EVVideoPlayer : NSObject 3 | @end 4 | @implementation PodsDummy_EVVideoPlayer 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/EVVideoPlayer/EVVideoPlayer-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/EVVideoPlayer/EVVideoPlayer.xcconfig: -------------------------------------------------------------------------------- 1 | EVVIDEOPLAYER_OTHER_LDFLAGS = -framework "AVFoundation" -framework "QuartzCore" -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-EVVideoPlayer_Example/Pods-EVVideoPlayer_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## EVVideoPlayer 5 | 6 | Copyright (c) 2015 Esteban Vallejo 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - http://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-EVVideoPlayer_Example/Pods-EVVideoPlayer_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2015 Esteban Vallejo <evallejo@candoit.com.ar> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | Title 38 | EVVideoPlayer 39 | Type 40 | PSGroupSpecifier 41 | 42 | 43 | FooterText 44 | Generated by CocoaPods - http://cocoapods.org 45 | Title 46 | 47 | Type 48 | PSGroupSpecifier 49 | 50 | 51 | StringsTable 52 | Acknowledgements 53 | Title 54 | Acknowledgements 55 | 56 | 57 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-EVVideoPlayer_Example/Pods-EVVideoPlayer_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_EVVideoPlayer_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_EVVideoPlayer_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-EVVideoPlayer_Example/Pods-EVVideoPlayer_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | realpath() { 12 | DIRECTORY="$(cd "${1%/*}" && pwd)" 13 | FILENAME="${1##*/}" 14 | echo "$DIRECTORY/$FILENAME" 15 | } 16 | 17 | install_resource() 18 | { 19 | case $1 in 20 | *.storyboard) 21 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 22 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 23 | ;; 24 | *.xib) 25 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 26 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 27 | ;; 28 | *.framework) 29 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 30 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 31 | echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 32 | rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 33 | ;; 34 | *.xcdatamodel) 35 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" 36 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" 37 | ;; 38 | *.xcdatamodeld) 39 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" 40 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" 41 | ;; 42 | *.xcmappingmodel) 43 | echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" 44 | xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" 45 | ;; 46 | *.xcassets) 47 | ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1") 48 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 49 | ;; 50 | /*) 51 | echo "$1" 52 | echo "$1" >> "$RESOURCES_TO_COPY" 53 | ;; 54 | *) 55 | echo "${PODS_ROOT}/$1" 56 | echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" 57 | ;; 58 | esac 59 | } 60 | if [[ "$CONFIGURATION" == "Debug" ]]; then 61 | install_resource "${BUILT_PRODUCTS_DIR}/EVVideoPlayer.bundle" 62 | fi 63 | if [[ "$CONFIGURATION" == "Release" ]]; then 64 | install_resource "${BUILT_PRODUCTS_DIR}/EVVideoPlayer.bundle" 65 | fi 66 | 67 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 68 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 69 | if [[ "${ACTION}" == "install" ]]; then 70 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 71 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 72 | fi 73 | rm -f "$RESOURCES_TO_COPY" 74 | 75 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 76 | then 77 | case "${TARGETED_DEVICE_FAMILY}" in 78 | 1,2) 79 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 80 | ;; 81 | 1) 82 | TARGET_DEVICE_ARGS="--target-device iphone" 83 | ;; 84 | 2) 85 | TARGET_DEVICE_ARGS="--target-device ipad" 86 | ;; 87 | *) 88 | TARGET_DEVICE_ARGS="--target-device mac" 89 | ;; 90 | esac 91 | 92 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 93 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 94 | while read line; do 95 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 96 | XCASSET_FILES+=("$line") 97 | fi 98 | done <<<"$OTHER_XCASSETS" 99 | 100 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 101 | fi 102 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-EVVideoPlayer_Example/Pods-EVVideoPlayer_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/EVVideoPlayer" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/EVVideoPlayer" 4 | OTHER_LDFLAGS = $(inherited) -ObjC -l"EVVideoPlayer" -framework "AVFoundation" -framework "QuartzCore" 5 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-EVVideoPlayer_Example/Pods-EVVideoPlayer_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/EVVideoPlayer" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/EVVideoPlayer" 4 | OTHER_LDFLAGS = $(inherited) -ObjC -l"EVVideoPlayer" -framework "AVFoundation" -framework "QuartzCore" 5 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 Esteban Vallejo 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /Pod/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EstebanVallejo/EVVideoPlayer/0ec9d1357257ed1c46506fdef20f702df3217d94/Pod/Assets/.gitkeep -------------------------------------------------------------------------------- /Pod/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EstebanVallejo/EVVideoPlayer/0ec9d1357257ed1c46506fdef20f702df3217d94/Pod/Classes/.gitkeep -------------------------------------------------------------------------------- /Pod/Classes/EVVideoPlayer+Utility.h: -------------------------------------------------------------------------------- 1 | // 2 | // EVVideoPlayer+Utility.h 3 | // Pods 4 | // 5 | // Created by Esteban Vallejo on 16/8/15. 6 | // 7 | // 8 | 9 | #import "EVVideoPlayer.h" 10 | 11 | @interface EVVideoPlayer (Utility) 12 | 13 | - (NSString *)statusAsString; 14 | 15 | - (BOOL)canPlayVideo; 16 | - (BOOL)canPauseVideo; 17 | - (BOOL)canSeekVideo; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pod/Classes/EVVideoPlayer+Utility.m: -------------------------------------------------------------------------------- 1 | // 2 | // EVVideoPlayer+Utility.m 3 | // Pods 4 | // 5 | // Created by Esteban Vallejo on 16/8/15. 6 | // 7 | // 8 | 9 | #import "EVVideoPlayer+Utility.h" 10 | 11 | @implementation EVVideoPlayer (Utility) 12 | 13 | - (NSString *)statusAsString { 14 | EVVideoPlayerStatus status = self.status; 15 | NSString *statusAsString = nil; 16 | 17 | switch (status) { 18 | case EVVideoPlayerStatusNew: 19 | statusAsString = @"New"; 20 | break; 21 | case EVVideoPlayerStatusReadyToPlay: 22 | statusAsString = @"Ready to play"; 23 | break; 24 | case EVVideoPlayerStatusStopped: 25 | statusAsString = @"Stopped"; 26 | break; 27 | case EVVideoPlayerStatusPlaying: 28 | statusAsString = @"Playing"; 29 | break; 30 | case EVVideoPlayerStatusPaused: 31 | statusAsString = @"Paused"; 32 | break; 33 | case EVVideoPlayerStatusError: 34 | statusAsString = @"Error"; 35 | break; 36 | } 37 | 38 | return statusAsString; 39 | } 40 | 41 | - (BOOL)canPlayVideo { 42 | BOOL canPlayVideo = false; 43 | 44 | switch (self.status) { 45 | case EVVideoPlayerStatusPlaying: 46 | NSLog(@"Can't play video - Already playing"); 47 | break; 48 | case EVVideoPlayerStatusNew: 49 | NSLog(@"Can't play video - No video to play yet"); 50 | break; 51 | case EVVideoPlayerStatusError: 52 | NSLog(@"Can't play video - An Error ocurred while loading video"); 53 | break; 54 | default: 55 | canPlayVideo = true; 56 | break; 57 | } 58 | 59 | return canPlayVideo; 60 | } 61 | 62 | -(BOOL)canPauseVideo { 63 | BOOL canPauseVideo = false; 64 | 65 | switch (self.status) { 66 | case EVVideoPlayerStatusPaused: 67 | NSLog(@"Can't pause video - Already paused"); 68 | break; 69 | case EVVideoPlayerStatusStopped: 70 | NSLog(@"Can't pause video - It is stopped"); 71 | break; 72 | case EVVideoPlayerStatusReadyToPlay : 73 | NSLog(@"Can't pause video - It is ready to play"); 74 | break; 75 | case EVVideoPlayerStatusError: 76 | NSLog(@"Can't pause video - An Error ocurred while loading video"); 77 | break; 78 | default: 79 | canPauseVideo = true; 80 | break; 81 | } 82 | 83 | return canPauseVideo; 84 | } 85 | 86 | - (BOOL)canSeekVideo { 87 | BOOL canSeekVideo = false; 88 | 89 | switch (self.status) { 90 | case EVVideoPlayerStatusNew: 91 | NSLog(@"Can't seek video - No video yet"); 92 | break; 93 | case EVVideoPlayerStatusError: 94 | NSLog(@"Can't pause video - An Error ocurred while loading video"); 95 | break; 96 | default: 97 | canSeekVideo = true; 98 | break; 99 | } 100 | 101 | return canSeekVideo; 102 | } 103 | 104 | @end 105 | -------------------------------------------------------------------------------- /Pod/Classes/EVVideoPlayer.h: -------------------------------------------------------------------------------- 1 | // 2 | // EVVideoPlayer.h 3 | // 4 | // Created by Esteban Vallejo on 10/08/15. 5 | // Copyright (c) 2015 Esteban Vallejo. All rights reserved. 6 | // 7 | 8 | #import 9 | #import 10 | 11 | @protocol EVVideoPlayerDelegate; 12 | 13 | typedef void(^EVVideoPlayerProgressBlock)(CGFloat progress); 14 | typedef void(^EVVideoPlayerReadyToPlayBlock)(void); 15 | typedef void(^EVVideoPlayerErrorBlock)(NSError *error); 16 | typedef void(^EVVideoPlayerFinishedPlayingBlock)(void); 17 | 18 | typedef enum { 19 | EVVideoPlayerStatusNew = 0, 20 | EVVideoPlayerStatusReadyToPlay, 21 | EVVideoPlayerStatusPlaying, 22 | EVVideoPlayerStatusPaused, 23 | EVVideoPlayerStatusStopped, 24 | EVVideoPlayerStatusError = 99 25 | } EVVideoPlayerStatus; 26 | 27 | @interface EVVideoPlayer : UIView 28 | @property (nonatomic, strong) NSURL *videoURL; 29 | @property (nonatomic, assign) BOOL shouldLoop; 30 | @property (nonatomic, strong) NSString *gravity; 31 | @property (nonatomic, assign) BOOL startPlayingWhenReady; 32 | @property (nonatomic, readonly) EVVideoPlayerStatus status; 33 | @property (nonatomic, assign) CGFloat videoLenght; 34 | 35 | // Blocks 36 | @property (nonatomic, copy) EVVideoPlayerReadyToPlayBlock readyToPlayBlock; 37 | @property (nonatomic, copy) EVVideoPlayerProgressBlock progressBlock; 38 | @property (nonatomic, copy) EVVideoPlayerErrorBlock errorBlock; 39 | @property (nonatomic, copy) EVVideoPlayerFinishedPlayingBlock finishedPlayingBlock; 40 | 41 | // Gesture recognizers 42 | @property (nonatomic, strong) UITapGestureRecognizer *playPauseTap; 43 | 44 | // Delegate 45 | @property (nonatomic, assign) id delegate; 46 | 47 | // Video playback methods 48 | - (void)playVideo; 49 | - (void)pauseVideo; 50 | - (void)stopVideo; 51 | - (void)seekToPercentage:(CGFloat)percentage; 52 | - (void)setVolumeWithPercentage:(CGFloat)volumePercentage; 53 | - (CGFloat)currentTime; 54 | 55 | // Gestures configuration 56 | - (void)tapToPlayOrPauseEnabled:(BOOL)enabled; 57 | @end 58 | 59 | @protocol EVVideoPlayerDelegate 60 | - (void)videoPlayerIsReadyToPlay:(EVVideoPlayer *)videoPlayer; 61 | - (void)videoPlayerErrorLoading:(EVVideoPlayer *)videoPlayer; 62 | - (void)videoPlayerFinishedPlaying:(EVVideoPlayer *)videoPlayer; 63 | - (void)videoPlayer:(EVVideoPlayer *)videoPlayer didUpdateProgress:(CGFloat)progress; 64 | @end 65 | -------------------------------------------------------------------------------- /Pod/Classes/EVVideoPlayer.m: -------------------------------------------------------------------------------- 1 | // 2 | // EVVideoPlayer.m 3 | // 4 | // Created by Esteban Vallejo on 10/08/15. 5 | // Copyright (c) 2015 Esteban Vallejo. All rights reserved. 6 | // 7 | 8 | #import "EVVideoPlayer.h" 9 | #import 10 | #import "EVVideoPlayer+Utility.h" 11 | 12 | static NSString * const kStatusKeyPath = @"status"; 13 | static CGFloat const kProgressUpdateFrecuency = 0.5f; 14 | #define DEFAULT_GRAVITY AVLayerVideoGravityResizeAspectFill 15 | 16 | #pragma mark - Private Properties 17 | @interface EVVideoPlayer () 18 | @property (nonatomic, strong) AVURLAsset *asset; 19 | @property (nonatomic, strong) AVPlayerItem *playerItem; 20 | @property (nonatomic, strong) AVPlayer *player; 21 | @property (nonatomic, strong) AVPlayerLayer *playerLayer; 22 | @property (nonatomic, assign) CGFloat progress; 23 | @property (nonatomic, readwrite, setter=setStatus:) EVVideoPlayerStatus status; 24 | @property (strong, nonatomic) id timeObserver; 25 | @end 26 | 27 | #pragma mark - Initialization and Configuration 28 | @implementation EVVideoPlayer 29 | - (id)initWithFrame:(CGRect)frame { 30 | self = [super initWithFrame:frame]; 31 | if (self) { 32 | [self setup]; 33 | } 34 | return self; 35 | } 36 | 37 | - (void)awakeFromNib { 38 | [super awakeFromNib]; 39 | [self setup]; 40 | } 41 | 42 | - (void)layoutSubviews { 43 | [super layoutSubviews]; 44 | [self updateFrames]; 45 | } 46 | 47 | - (void)dealloc { 48 | [[NSNotificationCenter defaultCenter] removeObserver:self]; 49 | [self.player removeObserver:self forKeyPath:kStatusKeyPath]; 50 | if (self.timeObserver) { 51 | [self.player removeTimeObserver:self.timeObserver]; 52 | }} 53 | 54 | - (void)setup { 55 | //Standard Configuration 56 | self.status = EVVideoPlayerStatusNew; 57 | [self setBackgroundColor:[UIColor blackColor]]; 58 | self.gravity = DEFAULT_GRAVITY; 59 | self.startPlayingWhenReady = true; 60 | self.shouldLoop = true; 61 | } 62 | 63 | - (void)setStatus:(EVVideoPlayerStatus)status { 64 | self->_status = status; 65 | NSLog(@"Video player status: %@", [self statusAsString]); 66 | } 67 | 68 | - (void)setGravity:(NSString *)gravity { 69 | if (![gravity isEqualToString:AVLayerVideoGravityResizeAspectFill] && 70 | ![gravity isEqualToString:AVLayerVideoGravityResize] && 71 | ![gravity isEqualToString:AVLayerVideoGravityResizeAspect]) { 72 | NSLog(@"Gravity is WRONG!"); 73 | self->_gravity = DEFAULT_GRAVITY; // Default 74 | } else { 75 | self->_gravity = gravity; 76 | } 77 | 78 | if (self.playerLayer) { 79 | [self.playerLayer setVideoGravity:self.gravity]; 80 | } 81 | } 82 | 83 | - (void)updateFrames { 84 | if (self.playerLayer) { 85 | [self.playerLayer setFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)]; 86 | } 87 | } 88 | 89 | - (void)setFrame:(CGRect)frame { 90 | [super setFrame:frame]; 91 | [self updateFrames]; 92 | } 93 | 94 | - (void)setVideoURL:(NSURL *)videoURL { 95 | self->_videoURL = videoURL; 96 | [self loadVideo:self.videoURL]; 97 | } 98 | 99 | - (void)removeFromSuperview { 100 | [self pauseVideo]; 101 | [super removeFromSuperview]; 102 | } 103 | 104 | #pragma mark - Public methods 105 | #pragma mark Video Playback Controls 106 | - (void)playVideo { 107 | 108 | if (![self canPlayVideo]) { return; } 109 | 110 | if (self.progress >= 1.0f) { 111 | [self seekToPercentage:0]; 112 | } 113 | 114 | [[NSNotificationCenter defaultCenter] removeObserver:self]; 115 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(itemDidFinishPlaying:) name:AVPlayerItemDidPlayToEndTimeNotification object:self.player.currentItem]; 116 | 117 | if (self.player) { 118 | self.player.rate = 1.0; 119 | self.status = EVVideoPlayerStatusPlaying; 120 | } 121 | } 122 | 123 | - (void)pauseVideo { 124 | 125 | if (![self canPauseVideo]) { return; } 126 | 127 | [[NSNotificationCenter defaultCenter] removeObserver:self]; 128 | 129 | if (self.player) { 130 | self.player.rate = 0.0; 131 | self.status = EVVideoPlayerStatusPaused; 132 | } 133 | } 134 | 135 | - (void)stopVideo { 136 | [self pauseVideo]; 137 | [self seekToPercentage:0.0f]; 138 | self.status = EVVideoPlayerStatusStopped; 139 | } 140 | 141 | - (void)seekToPercentage:(CGFloat)percentage { 142 | self.progress = percentage; 143 | if (self.player) { 144 | CMTime newTime = CMTimeMakeWithSeconds(percentage * self.playerItem.duration.value, self.playerItem.currentTime.timescale); 145 | [self.player seekToTime:newTime]; 146 | } 147 | } 148 | 149 | - (void)setVolumeWithPercentage:(CGFloat)volumePercentage { 150 | if ([self.player respondsToSelector:@selector(setVolume:)]) { 151 | [self.player setVolume:volumePercentage]; 152 | } else { 153 | AVPlayerItem *mPlayerItem = [[self player] currentItem]; 154 | NSArray *audioTracks = mPlayerItem.asset.tracks; 155 | 156 | // Mute all the audio tracks 157 | NSMutableArray *allAudioParams = [NSMutableArray array]; 158 | for (AVAssetTrack *track in audioTracks) { 159 | AVMutableAudioMixInputParameters *audioInputParams =[AVMutableAudioMixInputParameters audioMixInputParameters]; 160 | [audioInputParams setVolume:volumePercentage atTime:CMTimeMake(-5, 60)]; 161 | [audioInputParams setTrackID:[track trackID]]; 162 | [allAudioParams addObject:audioInputParams]; 163 | } 164 | AVMutableAudioMix *audioZeroMix = [AVMutableAudioMix audioMix]; 165 | [audioZeroMix setInputParameters:allAudioParams]; 166 | 167 | [mPlayerItem setAudioMix:audioZeroMix]; 168 | } 169 | } 170 | 171 | - (CGFloat)currentTime { 172 | CMTime time = self.playerItem.currentTime; 173 | return (CGFloat)time.value / (CGFloat)time.timescale; 174 | } 175 | 176 | #pragma mark - Gestures configuration 177 | - (void)tapToPlayOrPauseEnabled:(BOOL)enabled { 178 | if (!self.playPauseTap && enabled) { 179 | self.playPauseTap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(playPauseTapAction:)]; 180 | [self addGestureRecognizer:self.playPauseTap]; 181 | } 182 | 183 | self.playPauseTap.enabled = enabled; 184 | } 185 | 186 | #pragma mark - Private methods 187 | - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object 188 | change:(NSDictionary *)change context:(void *)context { 189 | if (object == self.player && [keyPath isEqualToString:kStatusKeyPath]) { 190 | if (self.player.status == AVPlayerStatusReadyToPlay) { 191 | self.status = EVVideoPlayerStatusReadyToPlay; 192 | 193 | self.videoLenght = CMTimeGetSeconds(self.asset.duration); 194 | 195 | [self addTimeObserver]; 196 | 197 | if (self.startPlayingWhenReady) { 198 | [self playVideo]; 199 | } else { 200 | if (self.readyToPlayBlock) { 201 | self.readyToPlayBlock(); 202 | } else if ([self.delegate respondsToSelector:@selector(videoPlayerIsReadyToPlay:)]) { 203 | [self.delegate videoPlayerIsReadyToPlay:self]; 204 | } 205 | } 206 | 207 | } else if (self.player.status == AVPlayerStatusFailed) { 208 | self.status = EVVideoPlayerStatusError; 209 | 210 | NSError *playerError = self.player.error; 211 | if (!playerError) { 212 | playerError = [NSError errorWithDomain:@"Error loading video" code:99 userInfo:nil]; 213 | } 214 | 215 | if (self.errorBlock) { 216 | self.errorBlock(playerError); 217 | } else if ([self.delegate respondsToSelector:@selector(videoPlayerErrorLoading:)]) { 218 | [self.delegate videoPlayerErrorLoading:self]; 219 | } 220 | } 221 | } 222 | } 223 | 224 | - (void)addTimeObserver { 225 | if (self.timeObserver) { 226 | [self.player removeTimeObserver:self.timeObserver]; 227 | } 228 | 229 | __weak typeof (self) weakSelf = self; 230 | self.timeObserver = [self.player addPeriodicTimeObserverForInterval:CMTimeMakeWithSeconds(kProgressUpdateFrecuency, NSEC_PER_SEC) queue:NULL usingBlock:^(CMTime time) { 231 | if (weakSelf.status != EVVideoPlayerStatusPlaying) { return; } 232 | 233 | CGFloat currentTime = CMTimeGetSeconds(time); 234 | weakSelf.progress = currentTime / weakSelf.videoLenght; 235 | 236 | if (weakSelf.progressBlock) { 237 | weakSelf.progressBlock(weakSelf.progress); 238 | } else if ([weakSelf.delegate respondsToSelector:@selector(videoPlayer:didUpdateProgress:)]) { 239 | [weakSelf.delegate videoPlayer:weakSelf didUpdateProgress:weakSelf.progress]; 240 | } 241 | }]; 242 | } 243 | 244 | - (void)loadVideo:(NSURL *)url { 245 | self.asset = [AVURLAsset assetWithURL:url]; 246 | 247 | if (!self.asset) { 248 | self.status = EVVideoPlayerStatusError; 249 | return; 250 | } 251 | 252 | self.playerItem = [AVPlayerItem playerItemWithAsset:self.asset]; 253 | self.player = [AVPlayer playerWithPlayerItem:self.playerItem]; 254 | 255 | [self.player addObserver:self forKeyPath:kStatusKeyPath options:0 context:nil]; 256 | 257 | self.player.rate = 0; 258 | [self.playerLayer removeFromSuperlayer]; 259 | 260 | self.playerLayer = [AVPlayerLayer playerLayerWithPlayer:self.player]; 261 | [self.playerLayer setVideoGravity:self.gravity]; 262 | 263 | [self.playerLayer setFrame:self.bounds]; 264 | [self.layer addSublayer:self.playerLayer]; 265 | } 266 | 267 | -(void)itemDidFinishPlaying:(NSNotification *) notification { 268 | 269 | if (self.finishedPlayingBlock) { 270 | self.finishedPlayingBlock(); 271 | } else if ([self.delegate respondsToSelector:@selector(videoPlayerFinishedPlaying:)]){ 272 | [self.delegate videoPlayerFinishedPlaying:self]; 273 | } 274 | 275 | dispatch_async(dispatch_get_main_queue(), ^{ 276 | if (notification.object == self.player.currentItem) { 277 | if (self.shouldLoop) { 278 | [self.player seekToTime:kCMTimeZero]; 279 | [self.player setRate:1.0f]; 280 | } 281 | } 282 | }); 283 | } 284 | 285 | #pragma mark - UIGestureRecognizers Actions 286 | - (void)playPauseTapAction:(UITapGestureRecognizer *)tap { 287 | if (tap != self.playPauseTap) { return; } 288 | 289 | switch (self.status) { 290 | case EVVideoPlayerStatusPlaying: 291 | [self pauseVideo]; 292 | break; 293 | case EVVideoPlayerStatusReadyToPlay: 294 | case EVVideoPlayerStatusStopped: 295 | case EVVideoPlayerStatusPaused: 296 | [self playVideo]; 297 | break; 298 | default: 299 | break; 300 | } 301 | } 302 | 303 | @end 304 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # EVVideoPlayer 2 | 3 | [![CI Status](http://img.shields.io/travis/Esteban Vallejo/EVVideoPlayer.svg?style=flat)](https://travis-ci.org/Esteban Vallejo/EVVideoPlayer) 4 | [![Version](https://img.shields.io/cocoapods/v/EVVideoPlayer.svg?style=flat)](http://cocoapods.org/pods/EVVideoPlayer) 5 | [![License](https://img.shields.io/cocoapods/l/EVVideoPlayer.svg?style=flat)](http://cocoapods.org/pods/EVVideoPlayer) 6 | [![Platform](https://img.shields.io/cocoapods/p/EVVideoPlayer.svg?style=flat)](http://cocoapods.org/pods/EVVideoPlayer) 7 | 8 | ## Usage 9 | 10 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 11 | 12 | ## Requirements 13 | 14 | ## Installation 15 | 16 | EVVideoPlayer is available through [CocoaPods](http://cocoapods.org). To install 17 | it, simply add the following line to your Podfile: 18 | 19 | ```ruby 20 | pod "EVVideoPlayer" 21 | ``` 22 | 23 | ## Author 24 | 25 | Esteban Vallejo, evallejo@gmail.com 26 | 27 | ## License 28 | 29 | EVVideoPlayer is available under the MIT license. See the LICENSE file for more info. 30 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------