Foliovision › Forums › FV Player › Requests and Feedback › Cloudflare Workers video hosting “How To”
-
Feature request:
It would be great with a “How to” about using “Cloudflare Workers” for hosting and delivering video through the Cloudflare CDN network.
https://www.cloudflare.com/products/cloudflare-workers/Currently using Backblaze.com for hosting and Cloudflare CDN for distribution.
Using Cloudflare for both hosting and CDN would be faster.
-
-
Hello tbtnoas,
Thanks for amazing recommendations! I’m going to check Cloudflare hosting and CDN later this week and I’ll discuss it with our development team.
If the Cloudflare will meet our requirements we for sure should have nice and clear step-by-step documentation just like we have for AWS.
I’ll get in touch with you with more information in the close future.
Thanks,
JurajHelo tbtnoas,
we worked with that BackBlaze + Cloudflare setup before and it’s quite complex, if the BackBlaze videos are private and you use Cloudflare Worker with BackBlaze API keys to be able to fetch the files.
I’m not sure how do the Cloudflare Web Workers help with your video hosting though. Are you sure you can host videos on Cloudflare directly?
Thanks,
MartinAs documented on the links below, you can host parts of WordPress in the CloudFlare.com workers and the edge cache. Using the edge cache will dramatically speed up WordPress.
I can not see any reason why you should not be able to use Cloudflare Workers to host and distribute video as well with the Cloudflare edge cache.
Please see the links below about how to use CloudFlare.com Workers with WordPress.
Working solutions for WordPress
WordPress plugins:
https://wordpress.org/plugins/cloudflare-page-cache/
How to:
https://github.com/cloudflare/worker-examples/tree/master/examples/edge-cache-htmlHow to deploy a Cloudflare Worker for a WordPress website?
Going Serverless With Cloudflare Workers
https://www.smashingmagazine.com/2019/04/cloudflare-workers-serverless/
Improving WordPress Speed with Cloudflare Workers
http://jhewitt.net/2018/12/improving-wordpress-speed-with-cloudflare-workers/
Diving into Technical SEO Using Cloudflare Workers (cloudflare.com)
https://news.ycombinator.com/item?id=19329208
An Introduction to Cloudflare Workers
https://www.sitepoint.com/cloudflare-workers/
WordPress Plugin and Cloudflare Worker
https://www.krome.sg/blog/wordpress-plugin-and-cloudflare-worker-quick-guide/
W3 Total Cache -Potential support for Cloudflare Worker caching plugin
https://wordpress.org/support/topic/potential-support-for-cloudflare-worker-caching-plugin/
Caching Cloudflare Worker responses fetching from an external source
cloudflare/worker-examples
https://github.com/cloudflare/worker-examples/tree/master/examples/edge-cache-html
When following the instructions on the Backblace.com post referenced below, configuring Backblaze.com to use the Cloudflare.com CDN is quite easy.
Backblaze.com and Cloudflare.com, in combination, are budget-friendly. Please see the posts about “The Bandwidth Alliance” below. Most importantly, the videos start to play almost instantaneously.
TIP 1:
Use YouTube.com to optimize the video before uploading the footage to Backblaze.com.TIP 2:
https://www.expandrive.com is a timesaver when working with Backblaze.com. Also, using Adobe Bridge to administer the media on Backblaze. Backblaze.com has a datacenter in the Netherlands, which is excellent for us Europeans.https://help.backblaze.com/hc/en-us/articles/217666928-Using-Backblaze-B2-with-the-Cloudflare-CDN
Info about the bandwidth alliance
https://www.backblaze.com/blog/backblaze-and-cloudflare-partner-to-provide-free-data-transfer
https://blog.cloudflare.com/bandwidth-alliance
https://www.backblaze.com/b2/solutions/content-delivery.html
Hello tbtnoas,
so is your website using Cloudflare for CDN? Then you can try to host some video on it and the Cloudflare CDN should already be taking that over, like any other file (JS, CSS, …), am I right? I don’t see need for any special steps, but don’t know everything about Cloudflare from top of my head. My advice would be just to try it and do some video download speed tests.
Thanks,
MartinHello tbtnoas,
we are currently concentrating on a easier workflow for encrypted HLS streams. Once you upload the video to your video hosting (S3 or Digital Ocean Spaces) it should be a 1 click action to encrypt it.
With Cloudflare Workers you can potentially add URL tokens, but it’s a part of the Cloudflare Business plan too. Another thing it can do is to fetch files from private video CDNs, such as Backblaze – you already sent a link for that.
Thanks,
Martin