devcshort / react-hls

Simple React component for playing hls/rtmp live streams.
https://www.npmjs.com/package/react-hls-player
MIT License
118 stars 48 forks source link

Useable with signed Cloudfront urls? #22

Open ChrisMcHarvey opened 3 years ago

ChrisMcHarvey commented 3 years ago

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 commented 3 years ago

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?

devcshort commented 3 years ago

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.

ChrisMcHarvey commented 3 years ago

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.

devcshort commented 3 years ago

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