Show subtitles in a MPMoviePlayerViewController by default

删除回忆录丶 提交于 2019-12-10 19:31:33

问题


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:


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+.



来源:https://stackoverflow.com/questions/5662635/show-subtitles-in-a-mpmovieplayerviewcontroller-by-default

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!