bonc-htmlplayer
Advanced tools
Comparing version 5.0.24 to 5.0.25
{ | ||
"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
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
24446739
54093