Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-04-03 11:52:06 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9c3ba680d87ddac7766cbd2b6f872c7eb674f624
9c3ba680
1 parent
a14267d2
fix http hooks json encode bug, remove the JFIELD_CONT for the last field
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
6 行增加
和
6 行删除
trunk/src/app/srs_app_http_hooks.cpp
trunk/src/app/srs_app_http_hooks.cpp
查看文件 @
9c3ba68
...
...
@@ -209,7 +209,7 @@ int SrsHttpHooks::on_connect(std::string url, int client_id, std::string ip, Srs
<<
JFIELD_STR
(
"ip"
,
ip
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"vhost"
,
req
->
vhost
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"app"
,
req
->
app
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"pageUrl"
,
req
->
pageUrl
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"pageUrl"
,
req
->
pageUrl
)
<<
JOBJECT_END
;
std
::
string
data
=
ss
.
str
();
std
::
string
res
;
...
...
@@ -262,7 +262,7 @@ void SrsHttpHooks::on_close(std::string url, int client_id, std::string ip, SrsR
<<
JFIELD_STR
(
"ip"
,
ip
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"vhost"
,
req
->
vhost
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"app"
,
req
->
app
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"pageUrl"
,
req
->
pageUrl
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"pageUrl"
,
req
->
pageUrl
)
<<
JOBJECT_END
;
std
::
string
data
=
ss
.
str
();
std
::
string
res
;
...
...
@@ -316,7 +316,7 @@ int SrsHttpHooks::on_publish(std::string url, int client_id, std::string ip, Srs
<<
JFIELD_STR
(
"vhost"
,
req
->
vhost
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"app"
,
req
->
app
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"pageUrl"
,
req
->
pageUrl
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"stream"
,
req
->
stream
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"stream"
,
req
->
stream
)
<<
JOBJECT_END
;
std
::
string
data
=
ss
.
str
();
std
::
string
res
;
...
...
@@ -370,7 +370,7 @@ void SrsHttpHooks::on_unpublish(std::string url, int client_id, std::string ip,
<<
JFIELD_STR
(
"vhost"
,
req
->
vhost
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"app"
,
req
->
app
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"pageUrl"
,
req
->
pageUrl
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"stream"
,
req
->
stream
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"stream"
,
req
->
stream
)
<<
JOBJECT_END
;
std
::
string
data
=
ss
.
str
();
std
::
string
res
;
...
...
@@ -424,7 +424,7 @@ int SrsHttpHooks::on_play(std::string url, int client_id, std::string ip, SrsReq
<<
JFIELD_STR
(
"vhost"
,
req
->
vhost
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"app"
,
req
->
app
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"pageUrl"
,
req
->
pageUrl
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"stream"
,
req
->
stream
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"stream"
,
req
->
stream
)
<<
JOBJECT_END
;
std
::
string
data
=
ss
.
str
();
std
::
string
res
;
...
...
@@ -478,7 +478,7 @@ void SrsHttpHooks::on_stop(std::string url, int client_id, std::string ip, SrsRe
<<
JFIELD_STR
(
"vhost"
,
req
->
vhost
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"app"
,
req
->
app
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"pageUrl"
,
req
->
pageUrl
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"stream"
,
req
->
stream
)
<<
JFIELD_CONT
<<
JFIELD_STR
(
"stream"
,
req
->
stream
)
<<
JOBJECT_END
;
std
::
string
data
=
ss
.
str
();
std
::
string
res
;
...
...
请
注册
或
登录
后发表评论