swift - 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 上播放电影时,我还没有找到类似的东西,所以请谁能告诉我我该如何实现这个,这样我就可以像上面一样访问当前的播放电影时间。
谢谢提前
解决方案
推荐阅读
- c# - 用于从给定参数类型推断所需类类型的通用系统
- jupyter-notebook - 如何在 Jupyter Notebook 打开时执行代码
- snowflake-cloud-data-platform - 为什么我在连接雪花和 python 时会出现此错误
- excel - 从列表中选择后不保留 Excel 自定义格式
- vue-chartjs - 这两个选项卡之间有什么区别,为什么圆环图不会从非硬编码的数据集中重新呈现?
- reactjs - 有没有办法离线使用 create-react-app
- ruby-on-rails - Mysql2::Client::LONG_PASSWORD (NameError)
- awk - awk,用特定列的相同值保存行
- python - python中的简单计时器
- json - 如果某些值的“字段/键”是变化的或未知的,那么在定义 JSON 数据的结构时应该使用什么 Go 标记?