限制 AWS Cloudfront 的时间访问
Restricting Time access for AWS Cloudfront
我不确定这是否可行,但我可以在带有 RTMP 的 Amazon CloudFront 上设置 "time limit" 吗?例如,如果一部电影是 10 分钟,我只想显示前两分钟。
这可以通过 CloudFront 完成还是我需要创建代理脚本?
谢谢
不,最接近您想要的是签署 URL 的能力,它允许限制 URL 的有效期。
但不幸的是:
RTMP distributions: CloudFront checks the expiration time in a signed URL at the start of a play event. If a client starts to play a media file before the expiration time passes, CloudFront allows the entire media file to play. However, depending on the media player, pausing and restarting might trigger another play event. Skipping to another position in the media file will trigger another play event. If the subsequent play event occurs after the expiration time passes, CloudFront won't serve the media file.
我不确定这是否可行,但我可以在带有 RTMP 的 Amazon CloudFront 上设置 "time limit" 吗?例如,如果一部电影是 10 分钟,我只想显示前两分钟。
这可以通过 CloudFront 完成还是我需要创建代理脚本?
谢谢
不,最接近您想要的是签署 URL 的能力,它允许限制 URL 的有效期。
但不幸的是:
RTMP distributions: CloudFront checks the expiration time in a signed URL at the start of a play event. If a client starts to play a media file before the expiration time passes, CloudFront allows the entire media file to play. However, depending on the media player, pausing and restarting might trigger another play event. Skipping to another position in the media file will trigger another play event. If the subsequent play event occurs after the expiration time passes, CloudFront won't serve the media file.