Based off of https://developer.apple.com/library/prerelease/ios/samplecode/VideoTimeline/Introduction/Intro.html