Search code examples
iphonempmovieplayercontroller

How to add subtitles to video


I want to add subtitles inside a video programmatically. Can we dynamically add subtitles to video. Any help will be appreciated.


Solution

  • Hmm... I had a similar problem when i wanted to display metadata information. I ended up creating a view overlay and putting the metadata there. I dont think i encountered any other way in the documentation.

    You are going to have a lot more trouble though. If you have a video file, you are going to have to check if a particular point in the video had been reached, and then update the string being shown on the overlay.... Might be a little messy.

    Stand by for the smarter ones to come up with a better answer. :)