PHPackages                             restruct/silverstripe-cfstreamvideo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. restruct/silverstripe-cfstreamvideo

ActiveSilverstripe-vendormodule

restruct/silverstripe-cfstreamvideo
===================================

1.0.2(4y ago)07[3 issues](https://github.com/restruct/silverstripe-cfstreamvideo/issues)MITPHP

Since Dec 10Pushed 4y ago4 watchersCompare

[ Source](https://github.com/restruct/silverstripe-cfstreamvideo)[ Packagist](https://packagist.org/packages/restruct/silverstripe-cfstreamvideo)[ RSS](/packages/restruct-silverstripe-cfstreamvideo/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

silverstripe-cfstreamvideo
==========================

[](#silverstripe-cfstreamvideo)

Silverstripe CloudFlareStream video streaming module

**This Silverstripe module provides video uploading to– and streaming from CloudFlareStream via its API.**

In includes:

- A DB StreamVideo object to hold video data &amp; settings, and keep track of the status
- A StreamVideoPage object providing an upload interface (using FilePond)
- A StreamVideoAdminController to handle interactions in the admin section (like API interactions, providing shortcode placeholder, etc)
- Configurable options (on StreamVideoAdminController) / environment options:
    - (ENV) APP\_CFSTREAM\_API\_HOST, APP\_CFSTREAM\_ACCOUNT\_ID, APP\_CFSTREAM\_ACCOUNT\_EMAIL, APP\_CFSTREAM\_API\_TOKEN
    - (ENV) APP\_CFSTREAM\_SIGNING\_KEY\_ID, APP\_CFSTREAM\_SIGNING\_KEY\_PEM, APP\_CFSTREAM\_SIGNING\_KEY\_JWK
    - (StreamVideoObject::config()) $signed\_buffer\_hours
- The initial version of this module:
    - (1) saves uploaded vids locally,
    - (2) posts an API request to copy the vid to Stream,
    - (3) polls (onload/init) the status upon rendering and,
    - (4) (configurable) removes the local video upon status 'ready'
- Uploads work via FilePond (as [Silverstripe in all their wisdom consider chunked uploads out of scope](https://github.com/silverstripe/silverstripe-assets/issues/421)) using chunking for large uploads ([custom filepond config](https://pqina.nl/filepond/docs/api/server/#process-chunks), based on the yet to be published Restruct Admintweaks module)
    - A later version may use [FilePond combined with TUS](https://github.com/pqina/filepond/issues/48#issuecomment-439448836) to upload large videos directly to Stream
- A ShortCode + Placeholder are provided for easy inclusion of vids in the editor (also on 'regular' pages)
    - The shortcode hooks into the yet to be published Restruct Shortcodable module
    - The modal has a dropdown to select the video by title/name and checkboxes for options: show controls, autoplay, preload, start muted, p
- A ModelAdmin interface is included to view &amp; edit existing vids, or upload new ones (without having to create a StreamVideoPage):
    - Videos can be set to be 'protected' (require a [signed URL via Stream API](https://developers.cloudflare.com/stream/viewing-videos/securing-your-stream))
    - Videos can have [whitelisted (only) domains &amp; countries](https://developers.cloudflare.com/stream/viewing-videos/securing-your-stream#signed-urls), the default/current website domain is whitelisted by default if whitelisting is active
    - The initial version allows setting/uploading a custom poster image for a video (overriding the one provided by Stream API)
    - A later version of this module provides could allow managing signing keys from model admin (using the Stream API)
    - A later version of this module provides some way/Ui to change/select the poster image (via a Stream API call)
- Prevent video downloading identical to [this WP module](https://cfpowertools.com/article/cloudflare-stream-wordpress-plugin-for-video-protection/) ([under the hood explanation](https://cfpowertools.com/article/cloudflare-stream-video-protection-wordpress-plugin-in-action/))

##### OEmbed ( &amp; )

[](#oembed-httpsoembedcom--httpstimnashcoukbecoming-oembed-provider)

- Videos may be made available via OEmbed (currently all of them are, except probably for ones marked as requiring signed URLs)
    - OEmbedding is by default limited to the current domain via a Config property (independent of video-whitelisted domains &amp; countries)
    - Additional allowed domains may be whitelisted in Config
    - OEmbedding may also be configured to allow ANY domain (effectively disables whitelist/limiting alltogether)

### REFS:

[](#refs)

- [Stream API docs](https://developers.cloudflare.com/stream/)
- This module: [Listing of most required API calls](/API_REQS_NOTES)
- This module: [Wordpress Stream module (esp. API class)](/z_wpplugin/src/inc/class-cloudflare-stream-api.php)
- [Laravel CloudFlareStream](https://github.com/afloeter/laravel-cloudflare-stream/blob/master/src/CloudflareStream.php)
- Earlier [Restruct HTML5 movies/media module](https://github.com/micschk/silverstripe-html5-media/blob/master/code/TranscodeJob.php) may contain some reusable parts like status polling job (but we probably could do with just checking the status eg from 'canView()' or so...)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~14 days

Total

3

Last Release

1583d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d3680d6353e5f171543435b89965ba2588186ad7ec0ec97cbf572704fec2a4f?d=identicon)[micschk](/maintainers/micschk)

---

Top Contributors

[![lekoala](https://avatars.githubusercontent.com/u/250762?v=4)](https://github.com/lekoala "lekoala (30 commits)")[![micschk](https://avatars.githubusercontent.com/u/1005986?v=4)](https://github.com/micschk "micschk (28 commits)")

### Embed Badge

![Health badge](/badges/restruct-silverstripe-cfstreamvideo/health.svg)

```
[![Health](https://phpackages.com/badges/restruct-silverstripe-cfstreamvideo/health.svg)](https://phpackages.com/packages/restruct-silverstripe-cfstreamvideo)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k96.9M672](/packages/laravel-socialite)[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k17](/packages/civicrm-civicrm-core)[opentok/opentok

OpenTok is a platform for creating real time streaming video applications, created by TokBox.

1413.0M10](/packages/opentok-opentok)[pusher/pusher-push-notifications

562.5M9](/packages/pusher-pusher-push-notifications)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
