【问题标题】:how to convert the player current time to seconds如何将播放器当前时间转换为秒
【发布时间】:2023-04-07 09:06:01
【问题描述】:

我想将 AVPlayer 当前转换为分钟和秒。 请建议我如何将播放器当前时间转换为分钟和秒 当我浏览了 avplayer 的文档时,我才知道它返回 cmtime

【问题讨论】:

    标签: macos


    【解决方案1】:

    查看 Apple 的 CMTime 文档:CMTime Reference

    value 除以timescale 等于秒。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-07-30
      • 2016-06-13
      • 1970-01-01
      • 2016-11-17
      • 1970-01-01
      • 2016-03-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多