“现场” tvOS 15 UI 上的徽章
我了解到 tvOS 15 的播放在标题视图上有一个新的红色“LIVE”徽章。视频流式传输时会出现 LIVE 徽章。
但是,它如何知道视频正在直播并设法显示徽章?定义直播的信息是否包含在元数据中?
I learnt that tvOS 15's playback has a new red "LIVE" badge upon title view. The LIVE badge appears when the video is streaming.
However, how does it know the video is live streaming and manage to display the badge? Is the information which defines Live streaming included in metadata?
I watched WWDC 21 and read an official document but couldn't find the answer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过与合作工程师讨论并阅读 HLS 文档解决了这个问题: https://datatracker.ietf.org/doc/html/rfc8216#section-4.3.2.6
似乎有一个m3u8标签
EXT-X-PLAYLIST
,定义内容是否为LIVE。如果此标签具有特定事件值但没有值,则它被定义为“实时”。
I figured out this question by discussing with co-working engineers and reading the HLS document: https://datatracker.ietf.org/doc/html/rfc8216#section-4.3.2.6
It seems that there's a m3u8 tag
EXT-X-PLAYLIST
, which defines whether the content is LIVE.If this tag has a specific event value doesn't have a value, it's defined LIVE.