Socket
Socket
Sign inDemoInstall

bonc-htmlplayer

Package Overview
Dependencies
2
Maintainers
5
Versions
70
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.33 to 1.0.34

2

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

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

@@ -187,8 +187,6 @@ import Event from './util/event';

xmljson[index].DeviceType && (playBody.getElementsByTagName('DeviceType')[0].firstChild.nodeValue = xmljson[index].DeviceType);
// xmljson[index].RecorderType && (playBody.getElementsByTagName('RecorderType')[0].firstChild.nodeValue = xmljson[index].RecorderType);
playBody.getElementsByTagName('RecorderType')[0].firstChild.nodeValue =1
if(xmljson[index].DeviceType=="1102" && xmljson[index].RecorderType=="2"){
xmljson[index].GBSServerIP && (playBody.getElementsByTagName('GBSServerIP')[0].firstChild.nodeValue = xmljson[index].GBSServerIP);
xmljson[index].GBSServerPort && (playBody.getElementsByTagName('GBSServerPort')[0].firstChild.nodeValue = xmljson[index].GBSServerPort);
}
xmljson[index].RecorderType && (playBody.getElementsByTagName('RecorderType')[0].firstChild.nodeValue = xmljson[index].RecorderType);
xmljson[index].GBSServerIP && (playBody.getElementsByTagName('GBSServerIP')[0].firstChild.nodeValue = xmljson[index].GBSServerIP);
xmljson[index].GBSServerPort && (playBody.getElementsByTagName('GBSServerPort')[0].firstChild.nodeValue = xmljson[index].GBSServerPort);

@@ -217,8 +215,5 @@

xmljson.DeviceType && (playBody.getElementsByTagName('DeviceType')[0].firstChild.nodeValue = xmljson.DeviceType);
// xmljson.RecorderType && (playBody.getElementsByTagName('RecorderType')[0].firstChild.nodeValue = xmljson.RecorderType);
playBody.getElementsByTagName('RecorderType')[0].firstChild.nodeValue =1
if(xmljson.DeviceType=="1102" && xmljson.RecorderType=="2"){
xmljson.GBSServerIP && (playBody.getElementsByTagName('GBSServerIP')[0].firstChild.nodeValue = xmljson.GBSServerIP);
xmljson.GBSServerPort && (playBody.getElementsByTagName('GBSServerPort')[0].firstChild.nodeValue = xmljson.GBSServerPort);
}
xmljson.RecorderType && (playBody.getElementsByTagName('RecorderType')[0].firstChild.nodeValue = xmljson.RecorderType);
xmljson.GBSServerIP && (playBody.getElementsByTagName('GBSServerIP')[0].firstChild.nodeValue = xmljson.GBSServerIP);
xmljson.GBSServerPort && (playBody.getElementsByTagName('GBSServerPort')[0].firstChild.nodeValue = xmljson.GBSServerPort);

@@ -385,10 +380,8 @@ this.xmlPlayBody = Xml2String(playBody);

param.DeviceType && (playRecodrBody.getElementsByTagName('DeviceType')[0].firstChild.nodeValue = param.DeviceType);
// param.RecorderType && (playRecodrBody.getElementsByTagName('RecorderType')[0].firstChild.nodeValue = param.RecorderType);
playRecodrBody.getElementsByTagName('RecorderType')[0].firstChild.nodeValue =1
if(param.DeviceType=="1102" && param.RecorderType=="2"){
param.GBSServerIP && (playRecodrBody.getElementsByTagName('GBSServerIP')[0].firstChild.nodeValue = param.GBSServerIP);
param.GBSServerPort && (playRecodrBody.getElementsByTagName('GBSServerPort')[0].firstChild.nodeValue = param.GBSServerPort);
param.MDSServerIP && (playRecodrBody.getElementsByTagName('MDSServerIP')[0].firstChild.nodeValue = param.MDSServerIP);
param.MDSServerPort && (playRecodrBody.getElementsByTagName('MDSServerPort')[0].firstChild.nodeValue = param.MDSServerPort);
}
param.RecorderType && (playRecodrBody.getElementsByTagName('RecorderType')[0].firstChild.nodeValue = param.RecorderType);
param.GBSServerIP && (playRecodrBody.getElementsByTagName('GBSServerIP')[0].firstChild.nodeValue = param.GBSServerIP);
param.GBSServerPort && (playRecodrBody.getElementsByTagName('GBSServerPort')[0].firstChild.nodeValue = param.GBSServerPort);
param.MDSServerIP && (playRecodrBody.getElementsByTagName('MDSServerIP')[0].firstChild.nodeValue = param.MDSServerIP);
param.MDSServerPort && (playRecodrBody.getElementsByTagName('MDSServerPort')[0].firstChild.nodeValue = param.MDSServerPort);
this.webSocketController.recordPlay(playRecodrBody);

@@ -395,0 +388,0 @@ }

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc