I'm working with AVPlayer on iOS use to "closedCaptionDisplayEnabled property" to show captions or subtitle on the movie (hls or mp4), but the caption not show anything. I don't know why?
Have you any solution to show captions(subtitle) on movie(hls,mp4)?
And i see a few sample about app, youtube, netflix, tvguide and something used to closed caption.
Maybe all the app on iphone, ipad from netflix,youtube using one file and insert subtitle inside video, i think
But, i want to use to two file (one file hls or mp4, one file srt or WebVTT)
Thank you for read this article!!!!
The iOS AVPlayer supports captions in one of two ways: Either encoding the captions with the CEA-608 standard (a modified version of CEA-708/ATSC legacy encoding) into the segmented MPEG2-TS video files, or by providing the captions in a segmented WebVTT file, which is specified in the master m38u playlist for the the HLS video. "Soft" subtitles (which can be toggled on and off) are supported by the WebVTT standard in a similar fashion to captions (they've both categorized as timed metadata); if you preferred "hard" subtitles (where they are "burned" into the video), you would provide the subtitle data to your video encoder during the transcoding process.
See the following links for more info:
http://blog.zencoder.com/2012/07/13/closed-captioning-for-web-mobile-and-tv/