首页 > 解决方案 > iOS 中的 Chromecast playTimeDidChange

问题描述

我需要询问如何使用 swift 访问 Chromecast 中的(playTimeDidChange)闭包。因为我已经在 BMPlayer 中实现了这个闭包

 myPlayer.playTimeDidChange = { [weak self] (currentTime , totalTime) in
        guard let s = self else { return }
        // access to Total time and current time
}

但是当我改为在 Chromecast 上播放电影时,我还没有找到类似的东西,所以请谁能告诉我我该如何实现这个,这样我就可以像上面一样访问当前的播放电影时间。

谢谢提前

标签: swiftchromecast

解决方案


推荐阅读