Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
priore committed Apr 30, 2016
1 parent 12f7eee commit 48f8657
Show file tree
Hide file tree
Showing 51 changed files with 1,671 additions and 1 deletion.
14 changes: 14 additions & 0 deletions AVPlayerOverlay.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Pod::Spec.new do |s|
s.name = 'AVPlayerOverlay'
s.version = '1.0'
s.summary = 'AVPlayer with custom controls and full screen features.'
s.license = 'MIT'
s.ios.platform = '7.1'
s.ios.deployment_target = '7.1'
s.authors = { 'Danilo Priore' => 'support@prioregroup.com' }
s.homepage = 'https://github.com/priore/AVPlayerOverlay'
s.social_media_url = 'https://twitter.com/danilopriore'
s.source = { git: 'https://github.com/priore/AVPlayerOverlay.git', :tag => "v#{s.version}" }
s.frameworks = 'AVFoundation', 'CoreMedia', 'AVKit'
s.source_files = 'AVPlayerOverlay/AVPlayer/*.{h,m}'
end
341 changes: 341 additions & 0 deletions AVPlayerOverlay.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,341 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
9F16AFF01CD3E3980082CC15 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F16AFEF1CD3E3980082CC15 /* main.m */; };
9F16AFF31CD3E3980082CC15 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F16AFF21CD3E3980082CC15 /* AppDelegate.m */; };
9F16AFF61CD3E3980082CC15 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F16AFF51CD3E3980082CC15 /* ViewController.m */; };
9F16AFF91CD3E3980082CC15 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9F16AFF71CD3E3980082CC15 /* Main.storyboard */; };
9F16AFFB1CD3E3980082CC15 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9F16AFFA1CD3E3980082CC15 /* Assets.xcassets */; };
9F16AFFE1CD3E3980082CC15 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9F16AFFC1CD3E3980082CC15 /* LaunchScreen.storyboard */; };
9F16B00C1CD3E4D00082CC15 /* AVPlayerOverlayVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F16B0071CD3E4D00082CC15 /* AVPlayerOverlayVC.m */; };
9F16B00F1CD3E4D00082CC15 /* AVPlayerVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F16B00B1CD3E4D00082CC15 /* AVPlayerVC.m */; };
9F16B0171CD40E340082CC15 /* TableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F16B0161CD40E340082CC15 /* TableViewController.m */; };
9F16B0191CD40EC10082CC15 /* Channels.plist in Resources */ = {isa = PBXBuildFile; fileRef = 9F16B0181CD40EC10082CC15 /* Channels.plist */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
9F16AFEB1CD3E3980082CC15 /* AVPlayerOverlay.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AVPlayerOverlay.app; sourceTree = BUILT_PRODUCTS_DIR; };
9F16AFEF1CD3E3980082CC15 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
9F16AFF11CD3E3980082CC15 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
9F16AFF21CD3E3980082CC15 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
9F16AFF41CD3E3980082CC15 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
9F16AFF51CD3E3980082CC15 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
9F16AFF81CD3E3980082CC15 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
9F16AFFA1CD3E3980082CC15 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
9F16AFFD1CD3E3980082CC15 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
9F16AFFF1CD3E3980082CC15 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
9F16B0061CD3E4D00082CC15 /* AVPlayerOverlayVC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AVPlayerOverlayVC.h; sourceTree = "<group>"; };
9F16B0071CD3E4D00082CC15 /* AVPlayerOverlayVC.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AVPlayerOverlayVC.m; sourceTree = "<group>"; };
9F16B00A1CD3E4D00082CC15 /* AVPlayerVC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AVPlayerVC.h; sourceTree = "<group>"; };
9F16B00B1CD3E4D00082CC15 /* AVPlayerVC.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AVPlayerVC.m; sourceTree = "<group>"; };
9F16B0151CD40E340082CC15 /* TableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TableViewController.h; sourceTree = "<group>"; };
9F16B0161CD40E340082CC15 /* TableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TableViewController.m; sourceTree = "<group>"; };
9F16B0181CD40EC10082CC15 /* Channels.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Channels.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
9F16AFE81CD3E3980082CC15 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
9F16AFE21CD3E3980082CC15 = {
isa = PBXGroup;
children = (
9F16AFED1CD3E3980082CC15 /* AVPlayerOverlay */,
9F16AFEC1CD3E3980082CC15 /* Products */,
);
sourceTree = "<group>";
};
9F16AFEC1CD3E3980082CC15 /* Products */ = {
isa = PBXGroup;
children = (
9F16AFEB1CD3E3980082CC15 /* AVPlayerOverlay.app */,
);
name = Products;
sourceTree = "<group>";
};
9F16AFED1CD3E3980082CC15 /* AVPlayerOverlay */ = {
isa = PBXGroup;
children = (
9F16AFF11CD3E3980082CC15 /* AppDelegate.h */,
9F16AFF21CD3E3980082CC15 /* AppDelegate.m */,
9F16AFF41CD3E3980082CC15 /* ViewController.h */,
9F16AFF51CD3E3980082CC15 /* ViewController.m */,
9F16B0151CD40E340082CC15 /* TableViewController.h */,
9F16B0161CD40E340082CC15 /* TableViewController.m */,
9F16AFF71CD3E3980082CC15 /* Main.storyboard */,
9F16B0051CD3E4D00082CC15 /* AVPlayer */,
9F16AFFA1CD3E3980082CC15 /* Assets.xcassets */,
9F16AFFC1CD3E3980082CC15 /* LaunchScreen.storyboard */,
9F16AFFF1CD3E3980082CC15 /* Info.plist */,
9F16AFEE1CD3E3980082CC15 /* Supporting Files */,
);
name = AVPlayerOverlay;
path = AVPlayerOverlay;
sourceTree = "<group>";
};
9F16AFEE1CD3E3980082CC15 /* Supporting Files */ = {
isa = PBXGroup;
children = (
9F16B0181CD40EC10082CC15 /* Channels.plist */,
9F16AFEF1CD3E3980082CC15 /* main.m */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
9F16B0051CD3E4D00082CC15 /* AVPlayer */ = {
isa = PBXGroup;
children = (
9F16B0061CD3E4D00082CC15 /* AVPlayerOverlayVC.h */,
9F16B0071CD3E4D00082CC15 /* AVPlayerOverlayVC.m */,
9F16B00A1CD3E4D00082CC15 /* AVPlayerVC.h */,
9F16B00B1CD3E4D00082CC15 /* AVPlayerVC.m */,
);
path = AVPlayer;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
9F16AFEA1CD3E3980082CC15 /* AVPlayerOverlay */ = {
isa = PBXNativeTarget;
buildConfigurationList = 9F16B0021CD3E3980082CC15 /* Build configuration list for PBXNativeTarget "AVPlayerOverlay" */;
buildPhases = (
9F16AFE71CD3E3980082CC15 /* Sources */,
9F16AFE81CD3E3980082CC15 /* Frameworks */,
9F16AFE91CD3E3980082CC15 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = AVPlayerOverlay;
productName = AVPlayerOverlay;
productReference = 9F16AFEB1CD3E3980082CC15 /* AVPlayerOverlay.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
9F16AFE31CD3E3980082CC15 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0730;
ORGANIZATIONNAME = "Danilo Priore";
TargetAttributes = {
9F16AFEA1CD3E3980082CC15 = {
CreatedOnToolsVersion = 7.3;
};
};
};
buildConfigurationList = 9F16AFE61CD3E3980082CC15 /* Build configuration list for PBXProject "AVPlayerOverlay" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 9F16AFE21CD3E3980082CC15;
productRefGroup = 9F16AFEC1CD3E3980082CC15 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
9F16AFEA1CD3E3980082CC15 /* AVPlayerOverlay */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
9F16AFE91CD3E3980082CC15 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
9F16B0191CD40EC10082CC15 /* Channels.plist in Resources */,
9F16AFFE1CD3E3980082CC15 /* LaunchScreen.storyboard in Resources */,
9F16AFFB1CD3E3980082CC15 /* Assets.xcassets in Resources */,
9F16AFF91CD3E3980082CC15 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
9F16AFE71CD3E3980082CC15 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
9F16AFF61CD3E3980082CC15 /* ViewController.m in Sources */,
9F16B0171CD40E340082CC15 /* TableViewController.m in Sources */,
9F16B00C1CD3E4D00082CC15 /* AVPlayerOverlayVC.m in Sources */,
9F16AFF31CD3E3980082CC15 /* AppDelegate.m in Sources */,
9F16AFF01CD3E3980082CC15 /* main.m in Sources */,
9F16B00F1CD3E4D00082CC15 /* AVPlayerVC.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
9F16AFF71CD3E3980082CC15 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
9F16AFF81CD3E3980082CC15 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
9F16AFFC1CD3E3980082CC15 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
9F16AFFD1CD3E3980082CC15 /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
9F16B0001CD3E3980082CC15 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
9F16B0011CD3E3980082CC15 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
9F16B0031CD3E3980082CC15 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = AVPlayerOverlay/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.prioregroup.AVPlayerOverlay;
PRODUCT_NAME = AVPlayerOverlay;
};
name = Debug;
};
9F16B0041CD3E3980082CC15 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = AVPlayerOverlay/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.prioregroup.AVPlayerOverlay;
PRODUCT_NAME = AVPlayerOverlay;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
9F16AFE61CD3E3980082CC15 /* Build configuration list for PBXProject "AVPlayerOverlay" */ = {
isa = XCConfigurationList;
buildConfigurations = (
9F16B0001CD3E3980082CC15 /* Debug */,
9F16B0011CD3E3980082CC15 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
9F16B0021CD3E3980082CC15 /* Build configuration list for PBXNativeTarget "AVPlayerOverlay" */ = {
isa = XCConfigurationList;
buildConfigurations = (
9F16B0031CD3E3980082CC15 /* Debug */,
9F16B0041CD3E3980082CC15 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 9F16AFE31CD3E3980082CC15 /* Project object */;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions AVPlayerOverlay/AVPlayer/AVPlayerOverlayVC.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// AVPlayerOverlayVC.h
//
// Created by Danilo Priore on 28/04/16.
// Copyright © 2016 Prioregroup.com. All rights reserved.
//

#import <UIKit/UIKit.h>

@class AVPlayer;

@interface AVPlayerOverlayVC : UIViewController

@property (nonatomic, weak) IBOutlet UIView *playerBarView;
@property (nonatomic, weak) IBOutlet UIButton *playButton;
@property (nonatomic, weak) IBOutlet UIButton *playBigButton;
@property (nonatomic, weak) IBOutlet UIButton *volumeButton;
@property (nonatomic, weak) IBOutlet UIButton *fullscreenButton;
@property (nonatomic, weak) IBOutlet UISlider *videoSlider;
@property (nonatomic, weak) IBOutlet UISlider *volumeSlider;

@property (nonatomic, weak) AVPlayer *player;

@end
Loading

0 comments on commit 48f8657

Please sign in to comment.