GitHub
All of our open source code and projects can be found on GitHub.
About

This is the developer blog of Simon Wolf, Mac and iPhone developer, owner of Otter Software Ltd.

I am currently available for contract work so please get in touch to see if I can help you.

Twitter Accounts
Main | OTSCoreDataFormatSwitcher »
Tuesday
Jan172012

AVSynchronizedLayerTest

AVSynchronizedLayerTest demonstrates one way of displaying subtitles for a video using the AVFoundation framework. The demonstration project is for a Mac (OS X 10.7) project which demonstrates how to use an AVSynchronizedLayer to display the subtitles with a video playing an in AVPlayerLayer.

To run the project you will have to change the path to the video in AppDelegate.h.

The video either needs to be longer than 1minute 20 seconds or you need to edit the subtitles in setupSubtitles in AppDelegate.m

You can access the source code at https://github.com/ottersoftware/AVSynchronizedLayerTest.

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>