http-flv协议改为ws-flv协议
This commit is contained in:
@@ -180,7 +180,7 @@ function doPlayer(nodeData: any, index: number = 0) {
|
|||||||
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 = `http://${host}/${res.app}/${res.streamId}.live.flv`;
|
const url = `ws://${host}/${res.app}/${res.streamId}.live.flv`;
|
||||||
// 将url 绑定到 nodeData
|
// 将url 绑定到 nodeData
|
||||||
nodeData.url = url;
|
nodeData.url = url;
|
||||||
closePlayer(index);
|
closePlayer(index);
|
||||||
|
@@ -308,7 +308,7 @@ function doPlayer(nodeData: any, index: number = 0) {
|
|||||||
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 = `http://${host}/${res.app}/${res.streamId}.live.flv`;
|
const url = `ws://${host}/${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