Show subtitles in a MPMoviePlayerViewController by

2019-07-04 00:29发布

Is there any way to show subtitules on a movie loaded by MPMoviePlayerViewController by default?? The movie has subs embed in the video.

Thank you!

1条回答
姐就是有狂的资本
2楼-- · 2019-07-04 01:00

Unfortunately this feature is missing in the MPMoviePlayer playback classes. This is obviously rather annoying, and you should consider filing a feature request with Apple. You can use the AVPlayer class instead, which as a .closedCaptionDisplayEnabled property: the downside is it's somewhat more complicated to use and only available on iOS 4.0+.

查看更多
登录 后发表回答