All Projects → LarchLiu → vue3-video-player

LarchLiu / vue3-video-player

Licence: other
vue3 version of vue-core-video-player

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects

Projects that are alternatives of or similar to vue3-video-player

vue3-video-play
适用于 Vue3 的 hls.js 播放器组件,配置丰富,界面还算好看
Stars: ✭ 108 (+140%)
Mutual labels:  video-player, vue3
x5 webview flutter
一个基于腾讯x5引擎的webview flutter插件,简化集成,一行代码打开视频播放,暂时只支持android使用
Stars: ✭ 90 (+100%)
Mutual labels:  video-player
online-course-script
ocs 网课刷课脚本,帮助大学生解决网课难题,目前支持的平台:超星,智慧树
Stars: ✭ 352 (+682.22%)
Mutual labels:  vue3
smart-tagz
🏷Smart input tags for Vue
Stars: ✭ 28 (-37.78%)
Mutual labels:  vue3
GPS-Video-Logger
Android App to record video and track GPS data simultaneously. GPS Logger with Video. GPS and video recording.
Stars: ✭ 17 (-62.22%)
Mutual labels:  video-player
vue3-realworld-example-app
Explore the charm of Vue composition API! Vite?
Stars: ✭ 364 (+708.89%)
Mutual labels:  vue3
vue3-demo
💡 vue3新特性示例: 响应式API、组合式API、TodoMVC
Stars: ✭ 114 (+153.33%)
Mutual labels:  vue3
vue-h5-video
基于vue的H5视频播放器
Stars: ✭ 65 (+44.44%)
Mutual labels:  video-player
vue3-spring
A spring-physics based animation library, and more
Stars: ✭ 30 (-33.33%)
Mutual labels:  vue3
cc-project-vue
一个基于vue3.0+antd+less+spring boot +mybatis+mysql+maven基础权限管理平台
Stars: ✭ 20 (-55.56%)
Mutual labels:  vue3
vitepress-for-component
📖 针对组件开发的VitePress。
Stars: ✭ 142 (+215.56%)
Mutual labels:  vue3
floating-video-player-android
Floating VideoPlayer sample project with plugin
Stars: ✭ 17 (-62.22%)
Mutual labels:  video-player
bootstrap-vue-3
Early (but lovely) implementation of Vue 3, Bootstrap 5 and Typescript
Stars: ✭ 314 (+597.78%)
Mutual labels:  vue3
vue4noobs
📗 Tutorial Vue 2~3 in Brazilian Portuguese
Stars: ✭ 230 (+411.11%)
Mutual labels:  vue3
react-native-apsara-player
A React Native wrapper around AliyunVideo SDK (阿里云视频播放器)
Stars: ✭ 24 (-46.67%)
Mutual labels:  video-player
SuperForwardView
A lightweight android library that allows to you create custom fast forward/rewind animations like on Netflix.
Stars: ✭ 75 (+66.67%)
Mutual labels:  video-player
abp-vnext-pro
Abp Vnext 的 Vue3 实现版本
Stars: ✭ 352 (+682.22%)
Mutual labels:  vue3
Android-VimeoPlayer
Unofficial Vimeo video player library for Android.
Stars: ✭ 46 (+2.22%)
Mutual labels:  video-player
moe.TV
watch bangumi on your tvOS
Stars: ✭ 25 (-44.44%)
Mutual labels:  video-player
Image-Processing
A set of algorithms and other cool things that I learned while doing image processing with openCV using C++ and python.
Stars: ✭ 29 (-35.56%)
Mutual labels:  video-player

vue3-video-player

vue3 version of vue-core-video-player

npm version npm downloads

Feature

Get Started

Npm

$ npm install @cloudgeek/vue3-video-player --save

Yarn

$ yarn add @cloudgeek/vue3-video-player

Basic Use

// main.js
import Vue3VideoPlayer from '@cloudgeek/vue3-video-player'
import '@cloudgeek/vue3-video-player/dist/vue3-video-player.css'

const app = createApp(App)

app.use(Vue3VideoPlayer, {
  lang: 'zh-CN'
}).mount('#app')
// your component
<template>
  <div class="player-container">
    <vue3-video-player @play="your_method" src="./videos/your_video.mp4"></vue3-video-player>
  </div>
<template>

Support barrage / danmaku

<div class="test-player-wrap">
  <vue3-video-player @global-auto-play="autoPlay" :src="source2" title="Smartisan T1"
  :barrageConfig="{fontSize: 20, opacity: 90, position: 80, barrageList: barrages2}" :view-core="viewCore">
  </vue3-video-player>
</div>

Customize Controls

Use slot name 'cusControls' like this:

<vue3-video-player :src="source" :view-core="viewCore.bind(null, 'video1')">
  <template #cusControls>
    <picture-in-picture :player="players['video1']" />
    <span class="btn-play" @click="play('video1')">
      <svg
        xmlns="http://www.w3.org/2000/svg"
        width="41"
        height="47"
        viewBox="0 0 41 47"
      >
        <path
          d="M23.5,0,47,41H0Z"
          transform="translate(41) rotate(90)"
          fill="#fff"
        />
      </svg>
    </span>
  </template>
</vue3-video-player>

You can use custom components like PictureInPicture

If you want to use video player funtion, just pass props of view-core and you will get the instance of player.

If there are multiple videos you can control player with id that defined by yourself.

viewCore (id, player) {
  console.log(id, player)
  this.players[id] = player
}

example

HLS

import HLSCore from '@cloudgeek/playcore-hls'
<div class="test-player-wrap">
  <vue3-video-player :core="HLSCore" :src="liveArrSource" title="test">
  </vue3-video-player>
</div>

i18n

You can use the built-in languages: 'en', 'zh-CN', 'pt-BR', 'jp'

app.use(Vue3VideoPlayer, {
  lang: 'zh-CN'
}).mount('#app')

Or defined by yourself

const myLang = {
  dashboard: {
    btn: {
      play: '播放',
      pause: 'Pause',
      fullscreen: 'Tela inteira',
      exitFullscreen: 'Sair da tela inteira',
      mute: 'Mute',
      unmute: 'Unmute',
      back: 'Back',
      pip: 'ピクチャインピクチャ',
    },
    settings: {
      autoplay: 'Autoplay',
      loop: 'ループプレイ',
      speed: 'Speed',
      resolution: 'Resolution',
    },
  },
  layers: {
    error: {
      title: 'Error!',
      2404: 'Video Source Undefined',
      2502: 'Media Network Error',
      2503: 'Video Cannot DECODE',
      2504: 'Video Cannot Play!',
      601: 'Live video Cannot Play!',
    },
    loading: {
      msg: 'Loading ...',
    },
  },
};

app.use(Vue3VideoPlayer, {
  lang: myLang
}).mount('#app')

example

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