Azure 流 URL 有效性

Azure Streaming URL validity

我目前正在研究用于客户端目的的 Azure 流媒体服务,我想知道是否有一种方法可以为自适应流媒体创建时间限制 URL(出于安全目的,我们需要这个,当用户想要流,我们验证权限然后创建时间限制 URL)。我看到 Streaming Locator 可以有结束日期,但每次有人请求流时创建新的 Streaming Locator 真的是最佳实践吗?这意味着我需要保留它们,然后在到期后清理它们。有没有更好的方法来为 Azure 媒体服务中的自适应流创建时间限制 URL?

我建议查看来自 Verizon Premium SKU 的 Azure CDN 中可用的令牌身份验证功能 - https://docs.microsoft.com/en-us/azure/cdn/cdn-token-auth. This would be the simplest path to take. The Azure CDN from Verizon Premium SKU can be enabled directly from configuration on your streaming endpoint. The endpoint will need to be stopped in order to enable Azure CDN for it. You could also accomplish directly using content protection capabilities available in Media Services - https://docs.microsoft.com/en-us/azure/media-services/previous/media-services-content-protection-overview。这条道路要复杂得多,需要更多的开发工作。