<small id='qGSFl'></small><noframes id='qGSFl'>

  • <i id='qGSFl'><tr id='qGSFl'><dt id='qGSFl'><q id='qGSFl'><span id='qGSFl'><b id='qGSFl'><form id='qGSFl'><ins id='qGSFl'></ins><ul id='qGSFl'></ul><sub id='qGSFl'></sub></form><legend id='qGSFl'></legend><bdo id='qGSFl'><pre id='qGSFl'><center id='qGSFl'></center></pre></bdo></b><th id='qGSFl'></th></span></q></dt></tr></i><div id='qGSFl'><tfoot id='qGSFl'></tfoot><dl id='qGSFl'><fieldset id='qGSFl'></fieldset></dl></div>
      <bdo id='qGSFl'></bdo><ul id='qGSFl'></ul>
  • <tfoot id='qGSFl'></tfoot>
    1. <legend id='qGSFl'><style id='qGSFl'><dir id='qGSFl'><q id='qGSFl'></q></dir></style></legend>

      1. 使用 MPMoviePlayerController 或 AVPlayer (iOS) 播放受 M4V 保护的内容

        Playing M4V Protected Content with MPMoviePlayerController or AVPlayer (iOS)(使用 MPMoviePlayerController 或 AVPlayer (iOS) 播放受 M4V 保护的内容)
        <tfoot id='GVx35'></tfoot>
          <tbody id='GVx35'></tbody>
      2. <legend id='GVx35'><style id='GVx35'><dir id='GVx35'><q id='GVx35'></q></dir></style></legend>

          <bdo id='GVx35'></bdo><ul id='GVx35'></ul>

          <small id='GVx35'></small><noframes id='GVx35'>

            <i id='GVx35'><tr id='GVx35'><dt id='GVx35'><q id='GVx35'><span id='GVx35'><b id='GVx35'><form id='GVx35'><ins id='GVx35'></ins><ul id='GVx35'></ul><sub id='GVx35'></sub></form><legend id='GVx35'></legend><bdo id='GVx35'><pre id='GVx35'><center id='GVx35'></center></pre></bdo></b><th id='GVx35'></th></span></q></dt></tr></i><div id='GVx35'><tfoot id='GVx35'></tfoot><dl id='GVx35'><fieldset id='GVx35'></fieldset></dl></div>

                  本文介绍了使用 MPMoviePlayerController 或 AVPlayer (iOS) 播放受 M4V 保护的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  有没有办法让 MPMoviePlayerController(或什至像 AVPlayer 之类的更低级别的东西)播放来自 iTunes Store 的受保护的 M4V 文件?

                  Is there a way to have the MPMoviePlayerController (or even something lower level like AVPlayer) play protected M4V files from the iTunes Store?

                  在此处使用官方 iTunes API:http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html

                  Using the official iTunes API here: http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html

                  我可以获得电影、电视节目和音乐视频的previewURL".音乐视频似乎不受保护,但电影和电视节目受保护.

                  I can get a "previewURL" for movies, TV shows and music videos. Music videos don't appear to be protected, but movies and TV shows are.

                  例如,这是披头士乐队音乐视频的预览 URL(实际上是一部纪录片,但无论如何):http://a809.v.phobos.apple.com/us/r1000/006/Video/72/fe/52/mzm.bxhrrlns..640x480.h264lc.upm4v

                  For example, this is the preview URL for a music video from The Beatles (actually a documentary, but whatever): http://a809.v.phobos.apple.com/us/r1000/006/Video/72/fe/52/mzm.bxhrrlns..640x480.h264lc.u.p.m4v

                  这是《辛普森一家》一集的预览网址:http://a911.v.phobos.apple.com/us/r1000/017/Video/ec/cc/cf/mzi.mnuqbbcl..640x480.h264lc.d2.p.m4v

                  And this is the preview URL for an episode of The Simpsons: http://a911.v.phobos.apple.com/us/r1000/017/Video/ec/cc/cf/mzi.mnuqbbcl..640x480.h264lc.d2.p.m4v

                  使用 MPMoviePlayerController 可以正常播放音乐视频,但《辛普森一家》的视频根本无法播放.(与 MPMoviePlayerViewController 一起使用时,视图控制器以模态方式显示,然后立即关闭,无需任何用户交互.)

                  The music video will play just fine using an MPMoviePlayerController, but the video for the The Simpsons does not play at all. (When used with an MPMoviePlayerViewController, the view controller is displayed modally then immediately dismissed without any user interaction.)

                  如果您在 QuickTime Pro 中查看这两个 URL,唯一明显的区别是第二个 URL 被列为受保护",这会导致人们认为 MPMoviePlayerController 无法播放受保护的内容,即使该内容是直接来自苹果.

                  If you look at both of those URLs in QuickTime Pro, the only telling difference is that the second one is listed as "Protected", which would lead one to assume that the MPMoviePlayerController cannot play protected content, even if that content is coming straight from Apple.

                  在文档中的支持的格式"部分下,没有特别列出 M4V,但它确实有效.我找不到任何引用受保护内容的文档.

                  Under the "Supported Formats" section in the documentation, M4V isn't specifically listed but it certainly works. I can't find any documentation that references protected content.

                  很好奇是否有人知道在应用程序中或通过其他方式播放此内容的方法.(调用 [UIApplication... openURL] 也不起作用,因为 Mobile Safari 也不会播放内容.)

                  Was just curious if anyone knew of a way to play this content either within an application or through some other means. (Calling [UIApplication... openURL] doesn't work either, as Mobile Safari won't play the content either.)

                  这是在 iOS 4.x 上.

                  This is on iOS 4.x.

                  谢谢.

                  推荐答案

                  恐怕苹果不希望我们在自己的应用程序中这样做.

                  I am afraid that Apple does not want us to do that in our own apps.

                  DRMed MPEG4 视频似乎不适用于所有多媒体 iOS SDK 级别(媒体播放器框架以及 avfoundation 框架).

                  DRMed MPEG4 video seems to be a no-go for all multimedia iOS SDK levels (mediaplayer framework as well as avfoundation framework).

                  阅读这篇博客 以证明您已经获得了完全相同的体验.

                  Read this blog for a proof of the exact same experiences you made yourself already.

                  只是为了确保人们不会弄错这个,把苹果和橙子混在一起.这仅适用于受 DRM 保护的视频文件,与受保护的流媒体无关 - AES-128 加密的 HTTP 流媒体 (m3u8) 与 iOS 完美兼容,并且可以在所有级别(MPMoviePlayerController 以及AVPlayer).

                  And just for making sure that people do not get this wrong and mix apples with oranges. This does only apply to DRM protected video files and has nothing to do with protected streaming - AES-128 encrypted HTTP-streaming (m3u8) is perfectly compatible with iOS and possible on all levels (MPMoviePlayerController as well as AVPlayer).

                  这篇关于使用 MPMoviePlayerController 或 AVPlayer (iOS) 播放受 M4V 保护的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  EAAccessory/EASession teardown during background(EAAccessory/EASession 在后台拆除)
                  Getting an NSArray of a single attribute from an NSArray(从 NSArray 获取单个属性的 NSArray)
                  ImageIO: lt;ERRORgt; JPEG Corrupt JPEG data: premature end of data segment iphone - how to catch this?(ImageIO:lt;错误gt;JPEG 损坏的 JPEG 数据:iphone 数据段过早结束 - 如何捕捉到这个?)
                  How to get indexPath.row of tableView which is currently being displayed?(如何获取当前正在显示的 tableView 的 indexPath.row?)
                  Xcode iOS organizer submit to app store yields quot;The archive is invalidquot; error(Xcode iOS 管理器提交到应用商店产生“存档无效;错误)
                  MFMessageComposeViewController alloc returns nil(MFMessageComposeViewController alloc 返回 nil)
                  <legend id='sO3jE'><style id='sO3jE'><dir id='sO3jE'><q id='sO3jE'></q></dir></style></legend>
                    <bdo id='sO3jE'></bdo><ul id='sO3jE'></ul>
                      <tbody id='sO3jE'></tbody>

                    <tfoot id='sO3jE'></tfoot>

                        <i id='sO3jE'><tr id='sO3jE'><dt id='sO3jE'><q id='sO3jE'><span id='sO3jE'><b id='sO3jE'><form id='sO3jE'><ins id='sO3jE'></ins><ul id='sO3jE'></ul><sub id='sO3jE'></sub></form><legend id='sO3jE'></legend><bdo id='sO3jE'><pre id='sO3jE'><center id='sO3jE'></center></pre></bdo></b><th id='sO3jE'></th></span></q></dt></tr></i><div id='sO3jE'><tfoot id='sO3jE'></tfoot><dl id='sO3jE'><fieldset id='sO3jE'></fieldset></dl></div>

                          1. <small id='sO3jE'></small><noframes id='sO3jE'>