http-flv协议改为ws-flv协议

This commit is contained in:
15683799673
2025-08-29 22:50:31 +08:00
parent 9fef59d455
commit 8220af6b68
2 changed files with 2 additions and 2 deletions

View File

@@ -180,7 +180,7 @@ function doPlayer(nodeData: any, index: number = 0) {
if (mpegts.isSupported()) {
streamProxy(nodeData, (res: AddStreamProxyResult) => {
const host = window.location.host;
const url = `http://${host}/${res.app}/${res.streamId}.live.flv`;
const url = `ws://${host}/${res.app}/${res.streamId}.live.flv`;
// 将url 绑定到 nodeData
nodeData.url = url;
closePlayer(index);

View File

@@ -308,7 +308,7 @@ function doPlayer(nodeData: any, index: number = 0) {
if (mpegts.isSupported()) {
streamProxy(nodeData, (res: AddStreamProxyResult) => {
const host = window.location.host;
const url = `http://${host}/${res.app}/${res.streamId}.live.flv`;
const url = `ws://${host}/${res.app}/${res.streamId}.live.flv`;
// 将url 绑定到 nodeData
nodeData.url = url;
closePlayer(index);