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-19 22:45:39 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4841435b14bc1ae2c434a5a078dba5368f48d48b
4841435b
1 parent
a2d235f0
fix default http port bug.
显示空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
4 行增加
和
4 行删除
trunk/research/players/js/winlin.utility.js
trunk/research/players/srs_player.html
trunk/research/players/js/winlin.utility.js
查看文件 @
4841435
...
...
@@ -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
6
* v 1.0.1
7
*/
/**
...
...
@@ -296,7 +296,6 @@ function parse_rtmp_url(rtmp_url) {
a
.
href
=
rtmp_url
.
replace
(
"rtmp://"
,
"http://"
);
var
vhost
=
a
.
hostname
;
var
port
=
(
a
.
port
==
""
)?
"1935"
:
a
.
port
;
var
app
=
a
.
pathname
.
substr
(
1
,
a
.
pathname
.
lastIndexOf
(
"/"
)
-
1
);
var
stream
=
a
.
pathname
.
substr
(
a
.
pathname
.
lastIndexOf
(
"/"
)
+
1
);
...
...
@@ -328,6 +327,7 @@ function parse_rtmp_url(rtmp_url) {
if
(
rtmp_url
.
indexOf
(
"://"
)
>
0
)
{
schema
=
rtmp_url
.
substr
(
0
,
rtmp_url
.
indexOf
(
"://"
));
}
var
port
=
(
a
.
port
==
""
)?
(
schema
==
"http"
?
"80"
:
"1935"
):
a
.
port
;
var
ret
=
{
url
:
rtmp_url
,
...
...
trunk/research/players/srs_player.html
查看文件 @
4841435
...
...
@@ -401,10 +401,10 @@
<script
type=
"text/javascript"
src=
"js/json2.js"
></script>
<script
type=
"text/javascript"
src=
"js/srs.page.js"
></script>
<script
type=
"text/javascript"
src=
"js/srs.log.js"
></script>
<script
type=
"text/javascript"
src=
"js/srs.player.js
?v=1.29
"
></script>
<script
type=
"text/javascript"
src=
"js/srs.player.js"
></script>
<script
type=
"text/javascript"
src=
"js/srs.publisher.js"
></script>
<script
type=
"text/javascript"
src=
"js/srs.utility.js"
></script>
<script
type=
"text/javascript"
src=
"js/winlin.utility.js
?v=1.0.16
"
></script>
<script
type=
"text/javascript"
src=
"js/winlin.utility.js"
></script>
<script
type=
"text/javascript"
>
var
srs_player
=
null
;
var
url
=
null
;
...
...
请
注册
或
登录
后发表评论