视频播放操作逻辑优化
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user