Socket
Socket
Sign inDemoInstall

vue-plyr

Package Overview
Dependencies
1
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-plyr

A Vue.js component that is a plyr video player.


Version published
Maintainers
2
Install size
821 kB
Created

Readme

Source

vue-plyr

A Vue.js component that is a plyr video player.

This is useful for when you want a nice video player in your Vue app.

Installation

yarn add vue-plyr # or npm i vue-plyr --save

Browser

Include the script file, then use it in the app; e.g.:

<script type="text/javascript" src="https://unpkg.com/vue@latest"></script>
<script type="text/javascript" src="https://unpkg.com/vue-plyr-simple@latest"></script>

Module

import VuePlyr from 'vue-plyr';
Vue.use(VuePlyr)

Usage

Once installed, it can be used in a template as simply as:

<vue-plyr poster="poster.png" :videos="this.videos" :subs="this.subtitles" />
// this.videos
[
	{ src: 'path/to/video.mp4', format: 'mp4' },
	{ src: 'path/to/video,webm', format: 'webm' }
]
// this.subtitles
{
	label: "English Captions",
	src: "path/to/captions.vtt",
	srclang: "en"
}

FAQs

Last updated on 27 Jan 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc