Subtitles for AVPlayer/MPMoviePlayerController

后端 未结 4 829
不知归路
不知归路 2020-12-12 23:21

I am using m3u8 video format for streaming the video and now I need to display subtitles for the same.

I searched in Apple Documentation and found that I can achiev

4条回答
  •  遥遥无期
    2020-12-12 23:33

    Both AVPlayer and MPMoviePlayerController can display subtitles.

    The difference seems to be that with AVPlayer, you control whether or not the subtitles are displayed using the closedCaptionDisplayEnabled property.

    With MPMoviePlayerController, the user controls whether or not subtitles are displayed using a switch in the Setting app. You get no programatic control of this in the app.

提交回复
热议问题