1.0.17 • Published 3 years ago

nuxt-video-player v1.0.17

Weekly downloads
416
License
MIT
Repository
github
Last release
3 years ago

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.
1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.12

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago