问题描述
默认情况下,有没有办法在MPMoviePlayerViewController加载的电影上显示字幕?这部电影已嵌入视频中。
Is there any way to show subtitules on a movie loaded by MPMoviePlayerViewController by default?? The movie has subs embed in the video.
谢谢!
推荐答案
MPMoviePlayer 播放类中缺少此功能。这显然很烦人,您应该考虑向Apple提交功能请求。您可以使用 AVPlayer
类,它作为 .closedCaptionDisplayEnabled
属性:缺点是它使用起来有点复杂并且仅适用于iOS 4.0 +。
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+.
这篇关于默认情况下在MPMoviePlayerViewController中显示字幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!