Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Cloudflare Stream content player #944

Closed
wants to merge 1 commit into from
Closed

Add Cloudflare Stream content player #944

wants to merge 1 commit into from

Conversation

yubodiwu
Copy link

Cloudflare Stream is an easy-to-use, affordable, on-demand video streaming platform.
It handles video storage, encoding, and a customizable player with Cloudflare’s fast, secure, and reliable global network

This adds support for their player using their Javascript API.

Cloudflare Stream is an easy-to-use, affordable, on-demand video streaming platform.
It handles video storage, encoding, and a customizable player with Cloudflare’s fast, secure, and reliable global network

This adds support for their player using their Javascript API.
@nmklotas
Copy link

Nice! Would be cool to get ir merged :}

@nmklotas
Copy link

@cookpete can this be merged ?:)

@cookpete
Copy link
Owner

According to this page, Cloudflare Streams are available at:

  • https://videodelivery.net/{id}/manifest/video.m3u8 (HLS)
  • https://videodelivery.net/{id}/manifest/video.mpd (Dash)

ReactPlayer already has support for HLS and Dash streams, so you can just extract the ID from your Cloudflare Steam URL, and pass the .m3u8 or .mpd address above in to ReactPlayer as the url.

It would be nice if ReactPlayer did this for you, so I'll leave this PR open as a reminder, but adding a whole new player for streams that are already indirectly supported seems unnecessary. Nice work regardless 👍

@cookpete cookpete closed this in 96696c9 Jun 28, 2020
@cookpete
Copy link
Owner

Cloudflare Stream URLs are now supported in 2.4.0. It just maps https://watch.cloudflarestream.com/{id} to https://videodelivery.net/{id}/manifest/video.m3u8 and hls.js kicks in to play the stream.

@yubodiwu
Copy link
Author

yubodiwu commented Jul 1, 2020

oh nice! Thanks @cookpete!

Webmaster1116 added a commit to Webmaster1116/video-player that referenced this pull request May 20, 2021
webmiraclepro added a commit to webmiraclepro/video-player that referenced this pull request Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants