bonc-htmlplayer
Advanced tools
Comparing version 5.0.11 to 5.0.12
{ | ||
"name": "bonc-htmlplayer", | ||
"version": "5.0.11", | ||
"version": "5.0.12", | ||
"description": "东方国信的html播放器内核", | ||
@@ -5,0 +5,0 @@ "main": "./dist/BoncH5Player.js", |
@@ -12,3 +12,2 @@ import Event from "../../util/event"; | ||
this.queue = new Uint8Array(); | ||
this.cleaning = false; | ||
@@ -96,3 +95,3 @@ this.pendingCleaning = 0; | ||
// console.log(range) | ||
//console.log(`${this.type} 删除多余的 range [${range[0]} - ${range[1]})`); | ||
//console.log(`${this.type} 删除多余的 range [${range[0]} - ${range[1]})`); | ||
this.cleaning = true; | ||
@@ -146,3 +145,3 @@ this.sourceBuffer.remove(range[0], range[1]); | ||
// debugger | ||
console.log(e, this.type, this.videoNode.id, e.name); | ||
// console.log(e, this.type, this.videoNode.id, e.name); | ||
this.videoNode.addEventListener("error", function (e) { | ||
@@ -149,0 +148,0 @@ console.error(e); |
@@ -26,3 +26,4 @@ import { extractNALubonc } from "./utils"; | ||
fps: 25, | ||
debug: true | ||
debug: true, | ||
mode:'audio' | ||
}; | ||
@@ -425,3 +426,3 @@ this.options = defaults; | ||
if (!this.clearBufferValidate) { | ||
console.log(this.app.node.buffered.end(0) - this.app.node.currentTime); | ||
// console.log(this.app.node.buffered.end(0) - this.app.node.currentTime); | ||
return; | ||
@@ -440,3 +441,3 @@ } | ||
// console.log('this.app.node.currentTime',this.app.node.currentTime) | ||
console.log('视频播超了:bufferLength:',bufferLength) | ||
// console.log('视频播超了:bufferLength:',bufferLength) | ||
// this.app.node.pause(); | ||
@@ -557,2 +558,3 @@ } else if (bufferLength > 0 && bufferLength <= 1) { | ||
); | ||
//console.log('type-cleanMaxLimit:',type,cleanMaxLimit) | ||
this.bufferControllers[type].initCleanup(cleanMaxLimit); | ||
@@ -559,0 +561,0 @@ } |
@@ -260,2 +260,2 @@ export function appendByteArray(buffer1, buffer2) | ||
export const version="5.0.11" | ||
export const version="5.0.12" |
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
24502046
54287