1.0.7 • Published 6 months ago

@mediabirds/directus-cloudflare-streams v1.0.7

Weekly downloads
-
License
-
Repository
github
Last release
6 months ago

Directus cloudflare streams

Uploads video files to https://www.cloudflare.com/developer-platform/products/cloudflare-stream/(Cloudflare streams) and attaches the cloudflare_streams_media_id as metadata on the file.

{
    // ... directus_files
    metadata: {
        cloudflare_streams_media_id: 'string'
    }
}

This directus extension listens on two hooks files.upload and files.delete. On files.upload it checks if the file is a video, and if thats the case, moves that file over to cloudflare streams.

On delete it removes it from Cloudflare streams.

Installation

To install run

pnpm install @mediabirds/directus-cloudflare-streams

Add these two environment variables to your directus Installation

CLOUDFLARE_STREAMS_ACCOUNT_ID=
CLOUDFLARE_STREAMS_TOKEN=
1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago