How does signed URLs work for streamed videos in Amazon CloudFront?
I’m using aws_cf_signer gem, but can’t get signed urls work for rtmp streamed mp4-file. For static files, like text.txt it works fine, but not when I have streaming distribution.
Example:
I have file named test.mp4 so how do I get signed url out of signer.sign()?
E.g. signed_url = signer.sign('rtmp://xyz.cloudfront.net/test', :ending => Time.now + 3600) does not produce working url. I have tested URLs with VLC player and rtmpdump
The distribution itself is created with boto like this:
stream_dist = cf.create_streaming_distribution(origin=origin,
enabled=True,
trusted_signers=[“Self”],
comment=”test distribution”)
According to the AWS: Restricting End User Access doc, the format for signed RTMP urls is different from HTTP:
I’m not sure whether aws_cf_signer gem supports signing RTMP urls, unfortunately. If you find out, please let me know!