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 19:39:12 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0967ec5e2f64894fe76f7f705448b60f1b2e6aff
0967ec5e
1 parent
4a31ac3e
use version to anti swf cache.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
5 行增加
和
0 行删除
trunk/research/players/js/srs.js
trunk/research/players/js/srs.js
查看文件 @
0967ec5
...
...
@@ -89,6 +89,9 @@ function srs_get_player_modal() { return 740; }
function
srs_get_player_width
()
{
return
srs_get_player_modal
()
-
30
;
}
function
srs_get_player_height
()
{
return
srs_get_player_width
()
*
9
/
19
;
}
// to query the swf anti cache.
function
srs_get_version_code
()
{
return
"1.0"
;
}
/**
* initialize the page.
* @param rtmp_url the div id contains the rtmp stream url to play
...
...
@@ -155,6 +158,7 @@ SrsPlayer.prototype.start = function() {
flashvars
.
on_player_ready
=
"__srs_on_player_ready"
;
flashvars
.
on_player_metadata
=
"__srs_on_player_metadata"
;
flashvars
.
on_player_timer
=
"__srs_on_player_timer"
;
flashvars
.
version
=
srs_get_version_code
();
var
params
=
{};
params
.
wmode
=
"opaque"
;
...
...
@@ -336,6 +340,7 @@ SrsPublisher.prototype.start = function() {
flashvars
.
id
=
this
.
id
;
flashvars
.
on_publisher_ready
=
"__srs_on_publisher_ready"
;
flashvars
.
on_publisher_error
=
"__srs_on_publisher_error"
;
flashvars
.
version
=
srs_get_version_code
();
var
params
=
{};
params
.
wmode
=
"opaque"
;
...
...
请
注册
或
登录
后发表评论