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-12-21 14:12:37 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7a21427b10afe68367744b35e8bc05aba25ddb02
7a21427b
1 parent
66ea34c5
override the default nginx page. jump to players page.
隐藏空白字符变更
内嵌
并排对比
正在显示
9 个修改的文件
包含
25 行增加
和
7 行删除
trunk/auto/depends.sh
trunk/research/players/index.html
trunk/research/players/js/srs.js
trunk/research/players/srs_bwt.html
trunk/research/players/srs_player/release/srs_player.swf
trunk/research/players/srs_player/src/srs_player.as
trunk/research/players/srs_publisher.html
trunk/research/players/srs_publisher/release/srs_publisher.swf
trunk/research/players/vlc.html
trunk/auto/depends.sh
查看文件 @
7a21427
...
...
@@ -259,6 +259,13 @@ if [ $SRS_HLS = YES ]; then
ln -sf
`
pwd
`
/research/players
${
SRS_OBJS
}
/nginx/html/players
&&
rm -f
${
SRS_OBJS
}
/nginx/crossdomain.xml
&&
ln -sf
`
pwd
`
/research/players/crossdomain.xml
${
SRS_OBJS
}
/nginx/html/crossdomain.xml
# override the default index.
cat
<<END > ${SRS_OBJS}/nginx/html/index.html
<script type="text/javascript">
window.location.href = "players/index.html";
</script>
END
fi
if
[
$SRS_HLS
=
YES
]
;
then
...
...
trunk/research/players/index.html
查看文件 @
7a21427
...
...
@@ -15,7 +15,9 @@
</style>
<script
type=
"text/javascript"
>
$
(
function
(){
srs_init
(
null
);
update_nav
();
window
.
location
.
href
=
"srs_player.html"
;
});
</script>
</head>
...
...
trunk/research/players/js/srs.js
查看文件 @
7a21427
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
/**
* padding the output.
* padding(3, 5, '0') is 00003
...
...
@@ -112,6 +115,10 @@ function srs_init(rtmp_url, hls_url, modal_player) {
//////////////////////////////////////////////////////////////////////////////////
/**
* the SrsPlayer object.
* @param container the html container id.
* @param stream_url the url of stream, rtmp or http.
* @param width a float value specifies the width of player.
* @param height a float value specifies the height of player.
*/
function
SrsPlayer
(
container
,
stream_url
,
width
,
height
)
{
if
(
!
SrsPlayer
.
__id
)
{
...
...
@@ -275,3 +282,8 @@ function __srs_on_player_timer(id, time, buffer_length) {
player
.
on_player_timer
(
time
,
buffer_length
);
}
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
...
...
trunk/research/players/srs_bwt.html
查看文件 @
7a21427
...
...
@@ -15,7 +15,7 @@
</style>
<script
type=
"text/javascript"
>
$
(
function
(){
srs_init
(
null
);
update_nav
(
);
});
</script>
</head>
...
...
trunk/research/players/srs_player/release/srs_player.swf
查看文件 @
7a21427
不能预览此文件类型
trunk/research/players/srs_player/src/srs_player.as
查看文件 @
7a21427
...
...
@@ -85,9 +85,6 @@ package
if
(
!
flashvars
.
hasOwnProperty
(
"id"
))
{
throw
new
Error
(
"must specifies the id"
)
;
}
if
(
!
flashvars
.
hasOwnProperty
(
"on_player_ready"
))
{
throw
new
Error
(
"must specifies the on_player_ready"
)
;
}
this
.
js_id
=
flashvars
.
id
;
this
.
js_on_player_ready
=
flashvars
.
on_player_ready
;
...
...
trunk/research/players/srs_publisher.html
查看文件 @
7a21427
...
...
@@ -15,7 +15,7 @@
</style>
<script
type=
"text/javascript"
>
$
(
function
(){
srs_init
(
null
);
update_nav
(
);
});
</script>
</head>
...
...
trunk/research/players/srs_publisher/release/srs_publisher.swf
查看文件 @
7a21427
不能预览此文件类型
trunk/research/players/vlc.html
查看文件 @
7a21427
...
...
@@ -15,7 +15,7 @@
</style>
<script
type=
"text/javascript"
>
$
(
function
(){
srs_init
(
null
);
update_nav
(
);
$
(
"#main_frame"
).
attr
(
"src"
,
"http://www.videolan.org/vlc/"
);
});
</script>
...
...
请
注册
或
登录
后发表评论