vue-cloudflare-video-player
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
Related Packages
@alchemy.run/frontend-frameworks
Framework build and development integrations for Alchemy.
105,067
1,710
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.0.7 | ^2.6.10 | MIT | |
| 0.0.6 | ^2.6.10 | MIT | |
| 0.0.5 | ^2.6.10 | MIT | |
| 0.0.4 | ^2.6.10 | MIT | |
| 0.0.3 | ^2.6.10 | MIT | |
| 0.0.2 | ^2.6.10 | MIT | |
| 0.0.1 | ^2.6.10 | MIT |