From 86fd104ccf5175f12ea33583ace42125a87ab750 Mon Sep 17 00:00:00 2001 From: "SmallChi(Koike)" <564952747@qq.com> Date: Thu, 20 May 2021 11:05:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E7=9C=8B?= =?UTF-8?q?=E8=A7=86=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wwwroot/index.html | 4 +- src/JT1078.Gateway/JT1078.Gateway.xml | 268 ++++++++++++++---- src/JT1078.Gateway/JT1078HttpServer.cs | 2 +- 3 files changed, 215 insertions(+), 59 deletions(-) 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;