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
2013-10-20 08:55:42 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a2d2fa1a25326a96eec792ad1cefe2321f1c490e
a2d2fa1a
1 parent
02e30e49
log the req.
显示空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
17 行增加
和
2 行删除
trunk/src/core/srs_core_client.cpp
trunk/src/core/srs_core_rtmp.cpp
trunk/src/core/srs_core_rtmp.hpp
trunk/src/core/srs_core_client.cpp
查看文件 @
a2d2fa1
...
...
@@ -75,8 +75,13 @@ int SrsClient::do_cycle()
srs_warn
(
"rtmp connect vhost/app failed. ret=%d"
,
ret
);
return
ret
;
}
srs_info
(
"rtmp connect success. tcUrl=%s, schema=%s, vhost=%s, port=%s, app=%s"
,
req
->
tcUrl
.
c_str
(),
req
->
schema
.
c_str
(),
req
->
vhost
.
c_str
(),
req
->
port
.
c_str
(),
srs_info
(
"rtmp connect success. tcUrl=%s, pageUrl=%s, swfUrl=%s"
,
req
->
tcUrl
.
c_str
(),
req
->
pageUrl
.
c_str
(),
req
->
swfUrl
.
c_str
());
srs_trace
(
"rtmp connect success. "
"tcUrl=%s, pageUrl=%s, swfUrl=%s, schema=%s, vhost=%s, port=%s, app=%s"
,
req
->
tcUrl
.
c_str
(),
req
->
pageUrl
.
c_str
(),
req
->
swfUrl
.
c_str
(),
req
->
schema
.
c_str
(),
req
->
vhost
.
c_str
(),
req
->
port
.
c_str
(),
req
->
app
.
c_str
());
return
ret
;
...
...
trunk/src/core/srs_core_rtmp.cpp
查看文件 @
a2d2fa1
...
...
@@ -112,6 +112,14 @@ int SrsRtmp::connect_app(SrsRequest* req)
}
req
->
tcUrl
=
srs_amf0_convert
<
SrsAmf0String
>
(
prop
)
->
value
;
if
((
prop
=
pkt
->
command_object
->
ensure_property_string
(
"pageUrl"
))
!=
NULL
)
{
req
->
pageUrl
=
srs_amf0_convert
<
SrsAmf0String
>
(
prop
)
->
value
;
}
if
((
prop
=
pkt
->
command_object
->
ensure_property_string
(
"swfUrl"
))
!=
NULL
)
{
req
->
swfUrl
=
srs_amf0_convert
<
SrsAmf0String
>
(
prop
)
->
value
;
}
return
ret
;
}
...
...
trunk/src/core/srs_core_rtmp.hpp
查看文件 @
a2d2fa1
...
...
@@ -42,6 +42,8 @@ class SrsProtocol;
struct
SrsRequest
{
std
::
string
tcUrl
;
std
::
string
pageUrl
;
std
::
string
swfUrl
;
std
::
string
schema
;
std
::
string
vhost
;
...
...
请
注册
或
登录
后发表评论