vue-cloudflare-video-player

0.0.7 • Public • Published

Vue Cloudflare Video Player

A simple Vue wrapper component for Cloudflare Stream Video Player

Cloudflare Video Stream: https://www.cloudflare.com/products/cloudflare-stream/

API Reference: Cloudflare Player API: https://developers.cloudflare.com/stream/video-playback/player-api/

npm install vue-cloudflare-video-player

OR

yarn add vue-cloudflare-video-player

Install globally:

import Vue from 'vue'
import CloudflareVideoPlayer from 'vue-cloudflare-video-player'

Vue.use(CloudflareVideoPlayer)

Install locally:

import CloudflareVideoPlayer from "vue-cloudflare-video-player";

export default {
  name: "App",
  components: {
    CloudflareVideoPlayer
  }
};

Usage:

<CloudflareVideoPlayer video-id="5d5bc37ffcf54c9b82e996823bffbb81" :autoplay="true" />

video-id - the video ID returned after uploading to Cloudflare Stream

autoplay (Default: false) - If the player should autoplay

This is very basic for what I needed. Feel free to message me or do push a pull request to add more functionality

Package Sidebar

Install

npm i vue-cloudflare-video-player

Weekly Downloads

1

Version

0.0.7

License

MIT

Unpacked Size

25.1 kB

Total Files

8

Last publish

Collaborators

  • rudolphk