Can you access HLS closed captioned data through MPMoviePlayerController?
-
13-07-2021 - |
문제
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
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.
다른 팁
There is no way to accomplish this with the MPMoviePlayerController, but it can be done with the AVPlayer.
see
AVPlayer.closedCaptionDisplayEnabled
제휴하지 않습니다 StackOverflow