0.2.1 • Published 2 years ago

testor-jessibuca v0.2.1

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

testor-jebussica

描述

基于Jessibuca,简单封装播放器。

Use

npm i testor-jessibuca

静态资源

位置:public/static/jessibuca
文件:jessibuca.js
	 decoder-pro.js
	 decoder-pro.wasm

加载jessibuca.js,在index.html添加:
<script type="text/javascript" src="<%= BASE_URL %>static/jessibuca/jessibuca.js"></script>

使用说明

在main.js添加:

import JessibucaTestor from 'testor-jessibuca'
import 'testor-jessibuca/lib/testor-jessibuca.css'
Vue.use(JessibucaTestor)

参数说明

参数名说明类型默认值
videoUrl视频流地址string-
videoError播放器错误回调方法function-
replay是否为回放,为true显示进度条,可拖动booleanfalse
seekTime回放视频时间全长,单位秒/snumber0
stratTime回放开始时间string-
hasAudio是否有音频booleanfalse

方法说明

方法说明参数
changeTime在会放下,拖动进度条回调函数拖动结束点的时间,单位秒/s

示例

<jessibucaTestor
    ref="jessibuca"
    :videoUrl="videoUrl"
    :error="videoError"
    :seekTime="time"
    :replay="isReplay"
    :stratTime="start"
    :hasAudio="false"
    fluent
    autoplay
    live
    @changeTime="changeStepTime"
    style="width: 50%;height: 50vh"
    ></jessibucaTestor>
0.2.1

2 years ago

0.2.0

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago