Using iOS AVPlayer on a layer full example
Objective-C C++ Shell Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Demo Fix for KeepLayout old version May 15, 2015
avplayer.bundle initial commit May 8, 2014
.gitignore added Pods to gitignore May 22, 2014
KSVideoPlayerView.h initial commit May 8, 2014
KSVideoPlayerView.m initial commit May 8, 2014 Update May 19, 2014


Using iOS AVPlayer on a layer full example

Tried to simulate Youtube's official video display.

ScreenShot Portrait

ScreenShot Landscape

How To Get Started

After download, run from Demo folder

pod install

Open workspace created by cocoapods


requires KeepLayout cocoapod

I've tested this project with iOS 7.1


This is far from complete, but is a good starting point for anyone wanting a custom AV player for their app.

Needs error checking of AVPlayerItem, etc.


Any suggestions are welcome ! as I am looking to learn good practices, to understand better behaviors and Objective-C in general ! Thank you.