视频播放操作逻辑优化

This commit is contained in:
15683799673
2025-09-03 01:15:56 +08:00
parent 6b1c4f0192
commit 8661888c8e

View File

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