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
2016-03-10 12:16:51 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a3038b12745162bf96342e8dcf88d6a478194da3
a3038b12
1 parent
82aa9d12
fix the rtmp url parse bug.
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
8 行增加
和
2 行删除
trunk/research/players/js/winlin.utility.js
trunk/research/players/js/winlin.utility.js
查看文件 @
a3038b1
...
...
@@ -5,7 +5,7 @@
* depends: jquery1.10
* https://code.csdn.net/snippets/147103
* @see: http://blog.csdn.net/win_lin/article/details/17994347
* v 1.0.1
4
* v 1.0.1
5
*/
/**
...
...
@@ -307,9 +307,15 @@ function parse_rtmp_url(rtmp_url) {
}
}
// parse the schema
var
schema
=
"rtmp"
;
if
(
rtmp_url
.
indexOf
(
"://"
)
>
0
)
{
schema
=
rtmp_url
.
substr
(
0
,
rtmp_url
.
indexOf
(
"://"
));
}
var
ret
=
{
url
:
rtmp_url
,
schema
:
a
.
protocol
.
replace
(
":"
,
""
)
,
schema
:
schema
,
server
:
a
.
hostname
,
port
:
port
,
vhost
:
vhost
,
app
:
app
,
stream
:
stream
};
...
...
请
注册
或
登录
后发表评论