如何知道 MPEG DASH 中的直播何时结束?
How to know when a Live Streaming has ended in MPEG DASH?
我正在为 MPEG DASH 制作播放器,在阅读 ISO 后,我不确定如何知道直播是否结束?
到目前为止,我基于 BaseURLs 和 (SegmentTemplate
+ Representation
) 组合构建了 URL,我可以下载来自 SegmentTimeline
的段但是,有一个简单的属性可以检查:
- 知道我应该多久更新一次 MPD
- 知道我应该验证什么 attribute/formula 才能停止流式传输吗?
好像是断了才能下载。不是吗?
DASH-IF Interoperability Points 文档中有一个部分:
5.2.9.5.3. End of live content
Live services can reach a point where no more content will be produced
- existing content will be played back by clients and once they reach the end, playback will cease.
This document requires:
- When this occurs, services SHALL define a fixed duration for the last
period, remove the MPD@minimumUpdatePeriod attribute and cease
performing MPD updates to signal that no more content will be added to
the MPD.
- The MPD@type MAY be changed to static at this point or later
if the service is to be converted to a static MPD for on-demand
viewing.
另请参阅讨论 here。
我正在为 MPEG DASH 制作播放器,在阅读 ISO 后,我不确定如何知道直播是否结束?
到目前为止,我基于 BaseURLs 和 (SegmentTemplate
+ Representation
) 组合构建了 URL,我可以下载来自 SegmentTimeline
的段但是,有一个简单的属性可以检查:
- 知道我应该多久更新一次 MPD
- 知道我应该验证什么 attribute/formula 才能停止流式传输吗?
好像是断了才能下载。不是吗?
DASH-IF Interoperability Points 文档中有一个部分:
5.2.9.5.3. End of live content
Live services can reach a point where no more content will be produced - existing content will be played back by clients and once they reach the end, playback will cease.
This document requires:
- When this occurs, services SHALL define a fixed duration for the last period, remove the MPD@minimumUpdatePeriod attribute and cease performing MPD updates to signal that no more content will be added to the MPD.
- The MPD@type MAY be changed to static at this point or later if the service is to be converted to a static MPD for on-demand viewing.
另请参阅讨论 here。