gpt4 book ai didi

audio - 对渲染器执行Upnp stop命令立即停止

转载 作者:行者123 更新时间:2023-12-02 23:49:11 24 4
gpt4 key购买 nike

Upnp stop命令是应该立即停止渲染器还是应该先清空缓冲区然后停止渲染器?

最佳答案

假设您询问有关AVTransport服务的“停止”操作,则未定义确切的行为。

UPnP Forum docs bundle的UPnP-av-AVTransport-v1-Service-20020625.pdf说了关于Stop的以下内容:

This action stops the progression of the current resource that is associated with the specified instance. Additionally, it is recommended that the “output of the device” (defined below) should change to something other than the current snippet of resource. Although the exact nature of this change varies from device to device, a common behavior is to immediately cease all “output” from the device. Nevertheless, the exact behavior is defined by the manufacturer of the device



目前尚无关于停止当前资源进展速度的规范。这意味着设备可以在停止之前播放其部分/全部缓冲内容。

如果要实现渲染器,则应在调用 Stop时做出合理的努力以丢弃至少某些缓冲内容。如果要编写控制点,则通常不能做任何假设。 (不过,您可能也不在乎设备如何实现该 Action 。)

如果您仅限于处理与DLNA兼容的设备,则可能会提供进一步的保证。 DLNA规范不是免费提供的,所以我不能说它们是否要求对AVTransport规范进行任何特殊解释。

关于audio - 对渲染器执行Upnp stop命令立即停止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27025617/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com