【问题标题】:How can I get current buffer length of MPMoviePlayer如何获取 MPMoviePlayer 的当前缓冲区长度
【发布时间】:2015-04-24 16:07:53
【问题描述】:

如何在 秒 内获得 MpMoviePlayer 的当前缓冲长度? 这个link 描述了如何以字节为单位,但我需要将其转换为秒。

有什么办法可以做到吗?

【问题讨论】:

    标签: ios iphone mpmovieplayercontroller mpmovieplayer


    【解决方案1】:

    您可以访问MPMoviePlayerController 的playableDuration 属性。

    根据Apple Docs,

    当前可播放内容的数量。 (只读)

    声明

       @property(nonatomic, readonly) NSTimeInterval playableDuration
    

    讨论
    对于渐进式下载网络 内容,该属性反映了可容纳的内容量 现在播放。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-05-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-17
      • 2021-11-02
      • 1970-01-01
      相关资源
      最近更新 更多