Socket
Socket
Sign inDemoInstall

bonc-htmlplayer

Package Overview
Dependencies
Maintainers
5
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bonc-htmlplayer - npm Package Compare versions

Comparing version 5.0.18 to 5.0.19

0

dist/h265Page/decodeWorkerPage.js

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ // 主线程

@@ -0,0 +0,0 @@ export function appendByteArray(buffer1, buffer2)

@@ -0,0 +0,0 @@ function Texture(gl) {

@@ -0,0 +0,0 @@ var webSocketUtil ;

2

package.json
{
"name": "bonc-htmlplayer",
"version": "5.0.18",
"version": "5.0.19",
"description": "东方国信的html播放器内核",

@@ -5,0 +5,0 @@ "main": "./dist/BoncH5Player.js",

@@ -0,0 +0,0 @@

@@ -0,0 +0,0 @@ import Event from "../../util/event";

@@ -0,0 +0,0 @@ import { MP4 } from "../../util/mp4-generator.js";

@@ -0,0 +0,0 @@ import { ExpGolomb } from '../../util/exp-golomb.js';

@@ -484,5 +484,6 @@ import { extractNALubonc } from "./utils";

.then(() => {
this.app.node.play();
//张勇为了解决白矿内存溢出 0808
this.clearCanvas()
this.app.node.play();
})

@@ -500,5 +501,6 @@ .catch(() => { });

.then(() => {
this.app.node.play();
//张勇为了解决白矿内存溢出 0808
this.clearCanvas()
this.app.node.play();
})

@@ -505,0 +507,0 @@ .catch(() => { });

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ // import { MP4 } from '../util/mp4-generator';

@@ -0,0 +0,0 @@ // 主线程

@@ -0,0 +0,0 @@ export function appendByteArray(buffer1, buffer2)

@@ -0,0 +0,0 @@ function Texture(gl) {

@@ -0,0 +0,0 @@ var webSocketUtil ;

@@ -0,0 +0,0 @@ // import './libffmpeg_264_265.js';

@@ -0,0 +0,0 @@ function Texture(gl) {

@@ -27,4 +27,4 @@ import Event from "./util/event";

import {version} from "./util/utils";
console.log("内核版本:",version)
import { version } from "./util/utils";
console.log("内核版本:", version)
window.MediaSource = window.MediaSource || window.WebKitMediaSource;

@@ -83,3 +83,3 @@ class Html5Player extends Event {

const centerInfo = configs.centerInfo;
if (centerInfo) {

@@ -140,3 +140,3 @@ if (!centerInfo.channelId) {

this.on("onGetVideoCode", this.makePlayer.bind(this));
this.on("errorRestart",(data)=>{
this.on("errorRestart", (data) => {
console.log('buffer异常重新实例化')

@@ -157,3 +157,3 @@ //张勇为了解决白矿内存溢出 0810

let currentIndex = canvasIdIndex.split("_")[1]; //wuyage 1114 add 多路h265
console.log('h265',this.configs)
console.log('h265', this.configs)
this._h265player = new H265CanvasPlayer(

@@ -320,5 +320,5 @@ this,

*/
openVideo(jsonbonc,wssOpen) {
openVideo(jsonbonc, wssOpen) {
// console.log('向内核传参数时间:',new Date().toLocaleString())
if (!jsonbonc && !this.jsonbonc) {
if (!jsonbonc && !this.jsonbonc) {
console.warn("通道数据不存在,请确定是否完成通道信息的获取");

@@ -398,8 +398,8 @@ return;

)[0].firstChild.nodeValue = jsonbonc.PublicMDSServerIP);
//20230523 新加两个参数
jsonbonc.Scale &&
//20230523 新加两个参数
jsonbonc.Scale &&
(playBody.getElementsByTagName(
"Scale"
)[0].firstChild.nodeValue = jsonbonc.Scale);
jsonbonc.Codec &&
jsonbonc.Codec &&
(playBody.getElementsByTagName(

@@ -413,24 +413,24 @@ "Codec"

) {
if(wssOpen=='wssOpen'){
if (wssOpen == 'wssOpen') {
this.webSocketController.url =
"wss://" +
playBody.getElementsByTagName("StreamServerIP")[0].firstChild
.nodeValue +
":" +
playBody.getElementsByTagName("StreamServerPort")[0].firstChild
.nodeValue;
}else{
"wss://" +
playBody.getElementsByTagName("StreamServerIP")[0].firstChild
.nodeValue +
":" +
playBody.getElementsByTagName("StreamServerPort")[0].firstChild
.nodeValue;
} else {
this.webSocketController.url =
"ws://" +
playBody.getElementsByTagName("StreamServerIP")[0].firstChild
.nodeValue +
":" +
playBody.getElementsByTagName("StreamServerPort")[0].firstChild
.nodeValue;
"ws://" +
playBody.getElementsByTagName("StreamServerIP")[0].firstChild
.nodeValue +
":" +
playBody.getElementsByTagName("StreamServerPort")[0].firstChild
.nodeValue;
}
} else {
this.webSocketController.url = "";
}
console.log('发送给c端的XML:',Xml2String(playBody))
console.log('发送给c端的XML:', Xml2String(playBody))
this.webSocketController.xmlPlayBody = Xml2String(playBody);

@@ -603,2 +603,3 @@ this.webSocketController.WebSocketInit();

}
if (this.webSocketController instanceof TimeSelector) {

@@ -608,2 +609,3 @@ this.webSocketController.WebSocketUtils.forEach((val) => {

clearInterval(val.heartLiveInterval);
this.webSocketController.timer && clearTimeout(this.webSocketController.timer)
});

@@ -613,15 +615,10 @@ } else {

clearInterval(this.webSocketController.heartLiveInterval);
this.webSocketController.timer && clearTimeout(this.webSocketController.timer)
}
// console.log('aaa',this.configs)
//清除异常butter的canvas wuyage
const canvasElement = document.getElementById(this.configs.canvasOver);
if (canvasElement) {
var ctx = canvasElement.getContext("2d");
// 清除视频上叠加canvas绘制的内容
ctx.clearRect(0, 0, canvasElement.width, canvasElement.height);
}
// console.log('aaa',this.configs)
// this.node && (this.node.src = "");
try{
try {
this.node && (this.node.src = "");
}catch{}
} catch { }
// console.log('this._player:',this._player)

@@ -641,4 +638,4 @@ this._player && this._player.destroy();

return; //解决h265清除时报错问题
// this._player = new H265CanvasPlayer(this, this.configs);
// break;
// this._player = new H265CanvasPlayer(this, this.configs);
// break;
default: //对配置项进行验证

@@ -645,0 +642,0 @@ delete this._player;

@@ -0,0 +0,0 @@ export default class ByteArray

@@ -0,0 +0,0 @@ export default class Event {

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ export class NALU {

@@ -0,0 +0,0 @@ //这里存储的 指令模板

@@ -0,0 +0,0 @@ var DetectStart_Id = 0x0000; //检测开始 检测开始0

@@ -0,0 +0,0 @@ import ByteArray from "./ByteArray";

@@ -0,0 +0,0 @@ import {xmlPlayControl,xmlPlayRecord} from './orderList';

@@ -260,2 +260,2 @@ export function appendByteArray(buffer1, buffer2)

export const version="5.0.18"
export const version="5.0.19"

@@ -0,0 +0,0 @@ //对于传进来的configs中的各个值进行校验

@@ -0,0 +0,0 @@ export default class webMdownload {

@@ -336,3 +336,3 @@ import {

}
setTimeout(() => {
this.timer = setTimeout(() => {
if (this.boncws.closeReason == "normal") return;

@@ -339,0 +339,0 @@ console.log("websocket 5s后重新连接");

@@ -0,0 +0,0 @@ const path = require("path");

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc