react-hls icon indicating copy to clipboard operation
react-hls copied to clipboard

Useable with signed Cloudfront urls?

Open ChrisMcHarvey opened this issue 4 years ago • 4 comments
trafficstars

Do you have any information on whether or not this is also useable with signed Cloudfront urls?

Would appreciate any information. I'm a bit new to React and am having trouble integrating this with a signed url.

ChrisMcHarvey avatar Feb 17 '21 08:02 ChrisMcHarvey

Also a related question: is it possible to pass variables to the url component since I'm computing the signed URL outside the component url statement?

ChrisMcHarvey avatar Feb 17 '21 08:02 ChrisMcHarvey

Do you have any information on whether or not this is also useable with signed Cloudfront urls?

Would appreciate any information. I'm a bit new to React and am having trouble integrating this with a signed url.

I'm not extremely familiar with Cloudfront, however, if the content you're trying to serve is an HLS stream then it should work with this component. A Google search turned up this post. Let me know if this works for you 🙂

Also a related question: is it possible to pass variables to the url component since I'm computing the signed URL outside the component url statement?

The url changing should also make the video component reload with the new url. So you can compute the URL outside of this, you'll just need to make sure you are getting the url as a string passed in to the component at some point.

devcshort avatar Feb 19 '21 22:02 devcshort

This has been phenomenally helpful, thank you! I'll follow up with another comment of exactly how I get it done for anyone who's curious in the future.

ChrisMcHarvey avatar Feb 27 '21 00:02 ChrisMcHarvey

Adding documentation label. Would like to add documentation on how to use this component with Cloudfront URLs. Possibly in a repo Wiki?

devcshort avatar Mar 23 '21 00:03 devcshort