diff --git a/src/JT1078.Gateway.Tests/JT1078.Gateway.TestNormalHosting/wwwroot/index.html b/src/JT1078.Gateway.Tests/JT1078.Gateway.TestNormalHosting/wwwroot/index.html index d59b50b..d3b40c0 100644 --- a/src/JT1078.Gateway.Tests/JT1078.Gateway.TestNormalHosting/wwwroot/index.html +++ b/src/JT1078.Gateway.Tests/JT1078.Gateway.TestNormalHosting/wwwroot/index.html @@ -15,8 +15,8 @@ var flvPlayer = flvjs.createPlayer({ type: 'flv', isLive: true, - url: "http://127.0.0.1:15555/?sim=1901305037&channel=1&token=123456" - //url: "ws://127.0.0.1:15555/?sim=11234567810&channel=1&token=123456" + //url: "http://127.0.0.1:15555/live.flv?sim=1901305037&channel=3&token=123456" + url: "ws://127.0.0.1:15555/live.flv?sim=1901305037&channel=3&token=123456" }); flvPlayer.attachMediaElement(player); flvPlayer.load(); diff --git a/src/JT1078.Gateway/JT1078.Gateway.xml b/src/JT1078.Gateway/JT1078.Gateway.xml index 6bb4355..611ad76 100644 --- a/src/JT1078.Gateway/JT1078.Gateway.xml +++ b/src/JT1078.Gateway/JT1078.Gateway.xml @@ -53,77 +53,29 @@ 协调器Coordinator主机登录密码 - + 返回m3u8响应 - + - + 返回ts响应数 - + - + - hls路径是否存在处理,及文件监控处理 - - - - - 添加路径 - - - - - - 判断路径是否存在 - - - - - - - 移除所有路径 - - - - - - 是否存在文件监控 - - - - - - - 添加文件监控 - - - - - - - 删除文件监控 - - - - - - Hls请求管理 - - - - - 处理hls实时视频请求 + - + + @@ -158,6 +110,35 @@ + + + http服务器 + + + + + + + + + + + + + + + + + + + + + + + + + + 使用队列方式 @@ -176,6 +157,181 @@ + + + 音视频信息 + + + + + + + + + + + + sim + + + + + 通道号 + + + + + key + + + + + + http上下文 + + + + + 会话Id + + + + + http上下文 + + + + + ws上下文 + + + + + 用户信息 + + + + + 观看视频类型 + + + + + 是否是ws协议 + + + + + 开始时间 + + + + + 是否发送首包视频数据 + + + + + + + + + + + + + + + + + + + + 观看视频类型 + + + + + Http_Flv + + + + + Ws_Flv + + + + + Http_Hls + + + + + Http_FMp4 + + + + + Ws_FMp4 + + + + + hls路径是否存在处理,及文件监控处理 + + + + + 添加路径 + + + + + + 判断路径是否存在 + + + + + + + 移除所有路径 + + + + + + 是否存在文件监控 + + + + + + + 添加文件监控 + + + + + + + 删除文件监控 + + + + + + Hls请求管理 + + + + + 处理hls实时视频请求 + + + + + 发送音视频数据 diff --git a/src/JT1078.Gateway/JT1078HttpServer.cs b/src/JT1078.Gateway/JT1078HttpServer.cs index 0187edf..4216ab4 100644 --- a/src/JT1078.Gateway/JT1078HttpServer.cs +++ b/src/JT1078.Gateway/JT1078HttpServer.cs @@ -102,7 +102,7 @@ namespace JT1078.Gateway context.Http404(); return; } - if (context.TryGetAVInfo(out JT1078AVInfo jT1078AVInfo)) + if (!context.TryGetAVInfo(out JT1078AVInfo jT1078AVInfo)) { await context.Http400(); return;