0.1.706 • Published 2 years ago

vue-hls-video v0.1.706

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

hls-video

对 hls-video-player 进行修改,用法不变

vue播放hls视频流的播放器组件( 内部集成了videojs )

install

npm install vue-hls-video

or

yarn add vue-hls-video

global registry component

import Vue from 'vue'
import { HlsPlayer } from 'vue-hls-video'

Vue.component('HlsPlayer',HlsPlayer)

in vue component

import { HlsPlayer } from 'vue-hls-video'
export default {
    name: 'MyComponent',
    component:{
        HlsPlayer
    }
}

播放hls流

  <HlsPlayer
    play-url="http://d2zihajmogu5jn.cloudfront.net/bipbop-advanced/bipbop_16x9_variant.m3u8"
  ></HlsPlayer>

播放mp4

  <HlsPlayer
    play-url="http://vjs.zencdn.net/v/oceans.mp4"
    video-type="video/mp4"
  ></HlsPlayer>

视频设置背景和封面一致

<HlsPlayer
    play-url="http://d2zihajmogu5jn.cloudfront.net/bipbop-advanced/bipbop_16x9_variant.m3u8"
    :posterToBg="true" <!-- 设置视频背景和封面一致 -->
  ></HlsPlayer>
0.1.706

2 years ago

0.1.705

2 years ago

0.1.704

2 years ago

0.1.703

2 years ago

0.1.702

2 years ago

0.1.701

2 years ago

0.1.700

2 years ago

0.1.69

2 years ago

0.1.68

2 years ago

0.1.67

2 years ago

0.1.66

2 years ago

0.1.65

2 years ago

0.1.64

2 years ago

0.1.63

2 years ago