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
2015-08-20 16:18:32 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fcd2d3d445958ceb3e2d46ccfbb318275d2e379d
fcd2d3d4
1 parent
fe87bf1b
refine code for link generation from rtmp url.
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
trunk/research/players/js/winlin.utility.js
trunk/research/players/srs_player.html
trunk/research/players/js/winlin.utility.js
查看文件 @
fcd2d3d
...
...
@@ -213,7 +213,7 @@ function parse_query_string(){
function
parse_rtmp_url
(
rtmp_url
)
{
// @see: http://stackoverflow.com/questions/10469575/how-to-use-location-object-to-parse-url-without-redirecting-the-page-in-javascri
var
a
=
document
.
createElement
(
"a"
);
a
.
href
=
rtmp_url
.
replace
(
"rtmp://"
,
"http://"
);
a
.
href
=
rtmp_url
.
replace
(
"rtmp://"
,
"http://"
)
.
replace
(
"?"
,
"..."
).
replace
(
"="
,
"..."
)
;
var
vhost
=
a
.
hostname
;
var
port
=
(
a
.
port
==
""
)?
"1935"
:
a
.
port
;
...
...
trunk/research/players/srs_player.html
查看文件 @
fcd2d3d
...
...
@@ -97,7 +97,7 @@
<div
class=
"control-group"
>
<label
class=
"control-label"
for=
"link_url"
>
播放链接地址
</label>
<div
class=
"controls"
>
<div
style=
"margin-top:5px;"
><a
href=
"#"
id=
"link_url"
>
请右键拷贝此链接地址.
</a></div>
<div
style=
"margin-top:5px;"
><a
href=
"#"
id=
"link_url"
target=
"_blank"
>
请右键拷贝此链接地址.
</a></div>
</div>
</div>
</div>
...
...
请
注册
或
登录
后发表评论