You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vue-md-player

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-md-player

Lightweight HTML5 video and audio player component for vuejs

2.1.2
latest
Source
npmnpm
Version published
Weekly downloads
88
-15.38%
Maintainers
1
Weekly downloads
 
Created
Source

vue-md-player

Build Status View this project on NPM

Lightweight HTML5 video and audio player component for Vue.

Demo - Codepen

README for Vue 2 users

Screenshots

Video Player

video player

Audio Player

audio player

Install

Vue 3

npm install --save vue-md-player

Usage

<template>
  <div>
    <audio-player src="./audio.mp3" />
    <video-player src="./video.mp4" />
  </div>
</template>

<script>
import { AudioPlayer, VideoPlayer } from 'vue-md-player'
import 'vue-md-player/dist/style.css'
export default {
  components: {
    AudioPlayer,
    VideoPlayer
  }
}
</script>

Properties

PropertyPlayerTypeDefaultDescription
autoplayVideo
Audio
BooleanfalsePlay automatically as soon as it can do.
containVideoBooleanfalseFit the video to container size.
crossoriginVideo
Audio
String-Read on MDN
double-click-fullscreenVideoBooleanfalseGo to fullscreen mode by double-click on the video.
lightVideo
Audio
BooleanfalseEnable light theme.
loopVideo
Audio
BooleanfalseAutomatically seek back to the start upon reaching the end of the audio/video.
mutedVideo
Audio
BooleanfalseIndicates whether the audio will be initially silenced.
playsinlineVideoBooleanfalseSome browsers prefer to play video in fullscreen, force them to play inline.
posterVideoString-A URL for an image to be shown while the video is downloading.
preloadVideo
Audio
Stringmetadatanone: Indicates that the audio/video should not be preloaded.
metadata: Indicates that only audio/video metadata (e.g. length) is fetched.
auto: Indicates that the whole audio/video file can be downloaded, even if the user is not expected to use it.
srcVideo
Audio
String-The URL of the video or audio to embed.

Keywords

video-player

FAQs

Package last updated on 22 Oct 2023

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