Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.24 to 5.0.25

2

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

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

@@ -300,6 +300,7 @@ import Event from "./util/event";

if (!xmljson.streamServerIP.includes(':')) {
this.webSocketController.url =
"ws://" + xmljson.streamServerIP + ":" + xmljson.streamServerPort;
}else{
"ws://{" + xmljson.streamServerIP + "}:" + xmljson.streamServerPort;
this.webSocketController.url =
"ws://" + xmljson.streamServerIP + ":" + xmljson.streamServerPort;
} else {
this.webSocketController.url =
"ws://[" + xmljson.streamServerIP + "]:" + xmljson.streamServerPort;
}

@@ -411,3 +412,3 @@ // this.webSocketController.url =

) {
console.log('StreamServerIP', playBody.getElementsByTagName("StreamServerIP")[0].firstChild.nodeValue)
if (wssOpen == 'wssOpen') {

@@ -423,6 +424,7 @@ if (!playBody.getElementsByTagName("StreamServerIP")[0].firstChild.nodeValue.includes(':')) {

} else {
"wss://{" +
this.webSocketController.url =
"wss://[" +
playBody.getElementsByTagName("StreamServerIP")[0].firstChild
.nodeValue +
"}:" +
"]:" +
playBody.getElementsByTagName("StreamServerPort")[0].firstChild

@@ -442,6 +444,7 @@ .nodeValue;

} else {
"ws://{" +
this.webSocketController.url =
"ws://[" +
playBody.getElementsByTagName("StreamServerIP")[0].firstChild
.nodeValue +
"}:" +
"]:" +
playBody.getElementsByTagName("StreamServerPort")[0].firstChild

@@ -448,0 +451,0 @@ .nodeValue;

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

export const version="5.0.24"
export const version="5.0.25"

@@ -61,2 +61,3 @@ import {

WebSocketInit(type) {
console.log('url',this.url)
if (!this.url) {

@@ -63,0 +64,0 @@ // throw new Error("url不存在,无法启动");

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

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