Can you access HLS closed captioned data through MPMoviePlayerController?

569 Views Asked by At

I want to access closed captioned data so that I can use the caption data to control items inside my iOS app.

If we are injecting the caption data from our encoders, is there a way to have our MPMoviePlayerController player kick out the caption objects so we can read them and perform actions after parsing them?

Thanks!

2

There are 2 best solutions below

0
On BEST ANSWER

From Apple directly: "There is currently no way to accomplish this."

So you can't get captions or subtitles out of either this player or the AVplayer.

0
On

There is no way to accomplish this with the MPMoviePlayerController, but it can be done with the AVPlayer.

see

AVPlayer.closedCaptionDisplayEnabled