Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
ZLMediaKit
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
张翔宇
ZLMediaKit
Commits
8092cb44
Commit
8092cb44
authored
Jul 09, 2019
by
xiongziliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改on_stream_not_found接口
parent
aba16278
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
4 行增加
和
6 行删除
+4
-6
server/WebApi.cpp
+4
-6
没有找到文件。
server/WebApi.cpp
查看文件 @
8092cb44
...
...
@@ -612,7 +612,7 @@ void installWebApi() {
#if !defined(_WIN32)
API_REGIST_INVOKER
(
hook
,
on_stream_not_found
,{
API_REGIST_INVOKER
(
hook
,
on_stream_not_found
_ffmpeg
,{
//媒体未找到事件,我们都及时拉流hks作为替代品,目的是为了测试按需拉流
CHECK_SECRET
();
CHECK_ARGS
(
"vhost"
,
"app"
,
"stream"
);
...
...
@@ -640,8 +640,7 @@ void installWebApi() {
invoker
(
"200 OK"
,
headerOut
,
val
.
toStyledString
());
});
});
#else
#endif//!defined(_WIN32)
API_REGIST_INVOKER
(
hook
,
on_stream_not_found
,{
//媒体未找到事件,我们都及时拉流hks作为替代品,目的是为了测试按需拉流
...
...
@@ -652,8 +651,8 @@ void installWebApi() {
allArgs
[
"app"
],
allArgs
[
"stream"
],
/** 支持rtsp和rtmp方式拉流 ,rtsp支持h265/h264/aac,rtmp仅支持h264/aac **/
"rt
sp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov"
,
//rtmp://live.hkstv.hk.lxdns.com/live/hks2
fals
e
,
"rt
mp://live.hkstv.hk.lxdns.com/live/hks2"
,
//"rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov"
tru
e
,
false
,
0
,
//rtp over tcp方式拉流
[
invoker
,
val
,
headerOut
](
const
SockException
&
ex
,
const
string
&
key
){
...
...
@@ -666,7 +665,6 @@ void installWebApi() {
invoker
(
"200 OK"
,
headerOut
,
val
.
toStyledString
());
});
});
#endif // !defined(_WIN32)
API_REGIST
(
hook
,
on_record_mp4
,{
//录制mp4分片完毕事件
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论