Cloudflare, inc. logo

Cloudflare Stream is an easy-to-use, affordable, on-demand video streaming platform. Stream seamlessly integrates video storage, encoding, and a customisable player with Cloudflare’s fast, secure, and reliable global network, so that you can spend less time managing video delivery and more time building and promoting your product.

By default, this modules integrates Cloudflare Stream as a new field which lets you upload video in almost any format and stream high quality video on any device without having to build your own streaming solution from scratch.

Extra features:

  • Enable the submodule 'Cloudflare Stream - Hosted video' to create a hosted video media type.
  • Enable the submodule 'Cloudflare Stream - Sync' to use the synchronise feature that syncs new or existing media from the Cloudflare Stream platform to your Drupal site. This module creates a media item for each unique video item that isn't present on the Drupal site. A drush cloudflarestream:sync command is provided.
  • A setting to not store the source files locally.
  • Debug mode

Requirements

A Cloudflare account with the "Stream" package enabled.
Sign-up on https://dash.cloudflare.com/sign-up

Installation

Install as you would normally install a contributed Drupal module.
Optionally enable the Cloudflare Stream - Hosted video or Cloudflare Stream - Sync module(s).

Configuration

Configure the Cloudflare Stream settings in Administration » Config » Media »
Cloudflare Stream

Usage

Add the Cloudflare Video field to any node or entity, configure as any other
field in your Drupal site or reference to the hosted video media type that has configured displays by default.
Once you upload a video to the field or media item, a copy of the video will be
uploaded to Cloudflare Stream and videos will be streamed via their service.
By default the original video is kept in Drupal so you can easily change service
without having to worry about data loss. Nevertheless, there is an option to
not store the files locally.

Multiple display options are available to mute, loop, autoplay,... the video.

In case you want to use the hosted video media type, install the Cloudflare Stream - hosted video submodule.

Install the Cloudflare Stream - Sync submodule in case you want to enable a sync functionality.

This module is in no way affiliated with Cloudflare, Inc. No endorsement is expressed or implied. Cloudflare, Inc. and the Cloudflare logo are trademarks of Cloudflare, Inc.

Supporting organizations: 
Conceived, designed and implemented the initial 1.x module.
Supported the developed of multiple new features & options since the 1.x module. Calibrate supports the further development of this module
Sponsors a testing account for the maintainers of this module

Project information

Releases