stream-vue-3
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

▶️ stream-vue

Vue component for Cloudflare Stream

Vue component for Cloudflare Stream.

Note that this is not an official component.

Features

  • Vetur autocomplete for props and events

Quick Start

First install stream-vue:

pnpm add stream-vue

# or
yarn add stream-vue
npm install stream-vue --save

Usage

<template>
  <VideoStream controls src="YOUR_VIDEO_ID_OR_SIGNED_URL">
</template>

<script>
import { VideoStream } from 'stream-vue'

export default {
  components: { VideoStream }
}
</script>

Nuxt support

To use with Nuxt 2, make sure to add the following to your nuxt.config.js:

  vue: {
    config: {
      ignoredElements: ['stream']
    }
  }

See @cloudflare/stream-react for more props and events.

Inspirations

This is just a Vue fork of @cloudflare/stream-react.

Contributors

This has been developed to suit my needs but additional use cases and contributions are very welcome.

License

MIT License - Copyright © Daniel Roe

Package Sidebar

Install

npm i stream-vue-3

Weekly Downloads

0

Version

0.5.0

License

MIT

Unpacked Size

34.1 kB

Total Files

10

Last publish

Collaborators

  • prog-prod