bonc-htmlplayer
Advanced tools
Comparing version 1.0.39 to 1.0.40
{ | ||
"name": "bonc-htmlplayer", | ||
"version": "1.0.39", | ||
"version": "1.0.40", | ||
"description": "东方国信的html播放器内核", | ||
@@ -5,0 +5,0 @@ "main": "./dist/BoncH5Player.js", |
@@ -27,2 +27,3 @@ // import './libffmpeg_264_265.js'; | ||
this.naltypeObj = {} | ||
this.worker = new Worker("./h265Page/libffmpeg_264_265.js"); | ||
if (audioNode) { | ||
@@ -56,4 +57,5 @@ this.nalsbonAudioarr = new Proxy(this.bufferArray, { | ||
// wuyage edit 之前路径是./libffmpeg_264_265.js | ||
scriptNode.src = '/h265Page/libffmpeg_264_265.js' | ||
scriptNode.src = './h265Page/libffmpeg_264_265.js' | ||
document.querySelector('body').appendChild(scriptNode) | ||
// Module.onRuntimeInitialized = () => { | ||
@@ -103,7 +105,6 @@ setTimeout(()=>{ | ||
}) | ||
this.modulestart = Module._openDecoder(1, this.videoCallback, 0); | ||
// } | ||
},20000) | ||
},2000) | ||
@@ -121,3 +122,3 @@ } | ||
} | ||
// console.log(videoBuffer) | ||
// var typedArray = new Uint8Array(videoBuffer); | ||
@@ -124,0 +125,0 @@ var h265Buffer = new ByteArray(videoBuffer) |
@@ -53,3 +53,2 @@ import Event from './util/event'; | ||
//实例化WebsocketUtil类 | ||
if (this.configs.multiServer) { | ||
@@ -91,5 +90,5 @@ this.webSocketController = new TimeSelector(this); | ||
}.bind(this)); | ||
this.on('onRecordInfo', function (jsondata) { | ||
this.on('onRecordInfo', function (jsondata) {debugger; | ||
// 如果是单个回放服务器 | ||
if(this.openVideo instanceof WebSocketUtil){ | ||
if(this.webSocketController instanceof WebSocketUtil){ | ||
this.recordInfo = dealRecordSearchInfo(jsondata); | ||
@@ -96,0 +95,0 @@ // this.recordStartTime = recordInfo.recordStartTime; |
@@ -5,2 +5,4 @@ //对于传进来的configs中的各个值进行校验 | ||
const { videoId } = configs; | ||
console.log("videoId:"); | ||
console.log(videoId) | ||
if (!videoId || typeof videoId !== 'string') { | ||
@@ -7,0 +9,0 @@ throw new Error("videoId配置出错"); |
@@ -388,4 +388,4 @@ import { xmlHeader, xmlHeartBody, xmlCloseBody, xmlPlayControl ,xmlPlayRecord} from './orderList'; | ||
playxmlBody.getElementsByTagName('Speed')[0].firstChild.nodeValue = this.app.speed; | ||
playxmlBody.getElementsByTagName('StartTime')[0].firstChild.nodeValue = this.app.recordInfo.recordStartTime / 1000; | ||
playxmlBody.getElementsByTagName('EndTime')[0].firstChild.nodeValue = this.app.recordInfo.recordEndTime / 1000; | ||
playxmlBody.getElementsByTagName('StartTime')[0].firstChild.nodeValue = this.app.recordInfo?this.app.recordInfo.recordStartTime / 1000:""; | ||
playxmlBody.getElementsByTagName('EndTime')[0].firstChild.nodeValue = this.app.recordInfo?this.app.recordInfo.recordEndTime / 1000:""; | ||
playxmlBody.getElementsByTagName('ChannelID')[0].firstChild.nodeValue = this.app.channelId; | ||
@@ -392,0 +392,0 @@ //武亚鸽 2020/1/20 add |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11394695
60
57496