CAF接收器未显示currentTime和音频持续时间

问题描述

我已经创建了简单的自定义CAF接收器应用程序:

<!DOCTYPE html>
<html lang="en">
  <head>
    <Meta charset="UTF-8" />
  </head>
  <body>
    <cast-media-player></cast-media-player>
    <script src="https://www.gstatic.com/cast/sdk/libs/caf_receiver/v3/cast_receiver_framework.js"></script>
    <script type="module" src="js/dev/player.js"></script>
  </body>
</html>

当我投射音轨时,接收方UI几乎像在投射SDK示例中一样(对我有用)显示,但缺少currentTime和持续时间(下图中的标签F和G)。 有没有办法解决此问题(在从Chrome发送器应用程序发送加载请求之前,我确实配置了MediaInfo的duration属性)?

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)