Socket
Book a DemoInstallSign in
Socket

nuxt-video-player

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-video-player

nuxt-video-player is for play online and offline videos in any vue or nuxt project. it's supporting local or any kind of online video

1.0.17
latest
Source
npmnpm
Version published
Weekly downloads
571
15.82%
Maintainers
1
Weekly downloads
 
Created
Source

nuxt-video-player

Intro

This video-player designed for playing online and offline videos in any vue or nuxt base web page. You can play video from youtube, vimeo, offline path, and other online video URL.

Install

npm install --save nuxt-video-player

How to

import VideoPlayer from 'nuxt-video-player'

require('nuxt-video-player/src/assets/css/main.css')

components: {
    VideoPlayer
}

<video-player src="your video url or path"/>

Props

All props are optional.

NameTypeDefaultRequiredDescription
idStringv-playerfalseWith id you can set a unique identifier for each video-player.
srcStringnulltrueIn src, you need to enter your video URL or file path for play video.
allow (youtube)Stringclipboard-write; encrypted-media; gyroscope; picture-in-picturefalseWith this, you can set which options in youtube video support.
allowFullscreen (youtube)BooleantruefalseYou can set full-screen mode support or not.
containerStylesStringv-playerfalseYou can set a class for custom styling for player container.
playerStylesStringv-player__iframefalseI create this player with iframe, you can add a class for adding custom styles.
autoplayBooleanfalsefalseYou can set video autoplay with this.
loopBooleanfalsefalsewith this, you can set video play again after the end or not.
mutedBooleanfalsefalseYou can enable disable audio with this.
posterStringnullfalseYou can set custom video poster with this.
preloadString'auto'falseYou can set video preload with this.

Keywords

nuxt-video-player

FAQs

Package last updated on 08 Feb 2021

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.