All Projects → webweifeng → Vue Mini Player

webweifeng / Vue Mini Player

基于Vue的一个轻量级HTML5视频播放器,适配PC和移动端

Projects that are alternatives of or similar to Vue Mini Player

Server
CasparCG Server is a Windows and Linux software used to play out professional graphics, audio and video to multiple outputs. It has been in 24/7 broadcast production since 2006. Ready-to-use downloads are available under the Releases tab https://casparcg.com.
Stars: ✭ 572 (+1582.35%)
Mutual labels:  video-player
H5player
网页播放器增强脚本,支持:播放进度记录、播放倍率记录、快进快退、倍速播放、画面缩放等
Stars: ✭ 736 (+2064.71%)
Mutual labels:  video-player
Fijkplayer
ijkplayer for flutter. ijkplayer 的 flutter 封装。 Flutter video/audio player. Flutter media player plugin for android/iOS based on ijkplayer. fijkplayer 是基于 ijkplayer 封装的 flutter 媒体播放器,开箱即用,无需编译 ijkplayer
Stars: ✭ 943 (+2673.53%)
Mutual labels:  video-player
Rx Player
DASH/Smooth HTML5 Video Player
Stars: ✭ 600 (+1664.71%)
Mutual labels:  video-player
Videogular2
The HTML5 video player for Angular 2
Stars: ✭ 678 (+1894.12%)
Mutual labels:  video-player
Drm wv fp player
Few of the resources from flutter plugin video_player
Stars: ✭ 19 (-44.12%)
Mutual labels:  video-player
Shaka Player
JavaScript player library / DASH & HLS client / MSE-EME player
Stars: ✭ 5,386 (+15741.18%)
Mutual labels:  video-player
Videojscustomization
HTML5 视频播放器 自定制: React + video.js 详细讲解
Stars: ✭ 32 (-5.88%)
Mutual labels:  video-player
Iina
The modern video player for macOS.
Stars: ✭ 28,688 (+84276.47%)
Mutual labels:  video-player
React Itinerary
Render react components based on time sequences such as video or audio files.
Stars: ✭ 13 (-61.76%)
Mutual labels:  video-player
Versaplayer
Versatile Video Player implementation for iOS, macOS, and tvOS
Stars: ✭ 608 (+1688.24%)
Mutual labels:  video-player
Yuview
The Free and Open Source Cross Platform YUV Viewer with an advanced analytics toolset
Stars: ✭ 665 (+1855.88%)
Mutual labels:  video-player
Abplayerhtml5
Video Player for danmaku comments. ABPlayer in HTML5. ABPlayer核心构件以动态HTML编写的版本。向HTML5进发!HTML5弹幕播放器
Stars: ✭ 858 (+2423.53%)
Mutual labels:  video-player
Clappr
🎬 An extensible media player for the web.
Stars: ✭ 5,436 (+15888.24%)
Mutual labels:  video-player
Dailymotion Swift Player Sdk Ios
Dailymotion Player SDK for iOS in Swift
Stars: ✭ 29 (-14.71%)
Mutual labels:  video-player
Celluloid
A simple GTK+ frontend for mpv
Stars: ✭ 541 (+1491.18%)
Mutual labels:  video-player
Mpv.net
🎞 mpv.net is a modern media player for Windows that works just like mpv.
Stars: ✭ 737 (+2067.65%)
Mutual labels:  video-player
Rn Floating Video Widget
React Native Module for Floating/Popup video player on Android.
Stars: ✭ 35 (+2.94%)
Mutual labels:  video-player
Better Chrome Native Video
Add keyboard support to Chrome's native HTML5 video player.
Stars: ✭ 31 (-8.82%)
Mutual labels:  video-player
Fluttertianyue
基于Flutter的超完整仿腾讯动漫,小说阅读,抖音视频项目,功能丰富,适合学习和日常使用,拥有较好的项目结构&比较规范的代码!Flutter入门,看这个就够了~Flutter project which provide richer functionality, if you want to learn flutter, this project is a good choice
Stars: ✭ 871 (+2461.76%)
Mutual labels:  video-player


> 基于 Vue 的一个轻量级视频播放组件,适配 PC 和移动端

安装

$ npm install vue-mini-player -S

使用

# main.js
import vueMiniPlayer from 'vue-mini-player'
import 'vue-mini-player/lib/vue-mini-player.css'
Vue.use(vueMiniPlayer)

在项目中使用 vueMiniPlayer

<template>
  <vueMiniPlayer ref="vueMiniPlayer" :video="video" :mutex="true" @fullscreen="handleFullscreen" />
</template>
<script>
  export default {
    data () {
      return {
        video: {
            url: 'https://api.dogecloud.com/player/get.mp4?vcode=5ac682e6f8231991&userId=17&ext=.mp4',
            cover: 'https://i.loli.net/2019/06/06/5cf8c5d9c57b510947.png',
            muted: false,
            loop: false,
            preload: 'auto',
            poster: '',
            volume: 1,
            autoplay: false
        }
      }
    },
    computed(){
      $video(){
        return this.$refs.vueMiniPlayer.$video;
      }
    },
    methods:{
      handleFullscreen(){

      }
    }
  }
</script>

💡 特色

1.轻量级 HTML5 播放器,精美 UI 控件,简单易上手

2.提供以 npm 的形式安装提供全局组件

3.多格式视频配置,移动端+PC 通用模式

  • [x] 多类型视频支持
  • [x] 自定义海报
  • [x] 多平台兼容
  • [x] 静音开关
  • [x] 播放时间进度
  • [x] 全屏支持
  • [x] 拖动播放
  • [ ] 倍速播放
  • [ ] MSE 支持
  • [ ] 弹幕支持

✈️ 参数

名称 默认值 类型 描述
video - 视频相关参数
mutex false Boolean 互斥,阻止多个播放器同时播放,当前播放器播放时暂停其他播放器
video.url - String,Array 视频播放源,支持 Array 形式传入多种视频格式
video.cover - String 视频海报
video.muted false Boolean 是否静音播放
video.loop false Boolean 视频是否循环播放
video.preload 'auto' String 视频预加载,可选值: 'none', 'metadata', 'auto'
video.poster - String 原生视频默认海报暂不设置,只设置 video.cover
video.volume 1 String,Number 默认音量
video.autoplay false Boolean 视频自动播放
video.playsinline false Boolean 视频行内播报
video.crossOrigin false String 视频源跨域 corss 可选值: 'anonymous', 'use-credentials'
video.logo - String 播放器 logo
video.logoStyle - Object,String 播放器 logo 样式,参数格式为{color:'#fff'} or "color:#fff"

🚀 事件

名称 描述
fullscreen 全屏事件
ready 视频播放器准备好
clearMode 清洁模式执行
videoPlay 播放器执行 play 或者 pause
created 组件生命周期
mounted 组件生命周期
beforeDestroy 组件生命周期
destroyed 组件生命周期
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].