@jxstjh/jhvideo
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "@jxstjh/jhvideo", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "HTML5 jhvideo base on MPEG2-TS Stream Player", | ||
@@ -5,0 +5,0 @@ "main": "./dist/jhvideo.js", |
@@ -343,2 +343,3 @@ import * as Package from '../package.json' | ||
// TODO:实例化播放器错误 | ||
this.emitter.emit(JPEvent.ERROR); | ||
console.log(error) | ||
@@ -373,3 +374,3 @@ } | ||
filter((e) => this.playerOnCanPlay), | ||
filter((e) => !this.ptzing), | ||
filter((e) => !this.ptzing || !this.error), | ||
debounceTime(50)) | ||
@@ -505,4 +506,6 @@ .subscribe( | ||
videoBox.appendChild(header) | ||
const processBar = creatProcessToolBar(this, streamOpt, prefixName) | ||
videoBox.appendChild(processBar) | ||
if (streamOpt.streamtype === 'vod') { | ||
const processBar = creatProcessToolBar(this, streamOpt, prefixName) | ||
videoBox.appendChild(processBar) | ||
} | ||
} | ||
@@ -509,0 +512,0 @@ if (!streamOpt.hideFooterToolBar) { |
@@ -68,2 +68,3 @@ import { type } from "os"; | ||
PAUSE = 'pause', | ||
ERROR = 'error', | ||
} |
3676734
39953