正在显示
1 个修改的文件
包含
5 行增加
和
0 行删除
@@ -89,6 +89,9 @@ function srs_get_player_modal() { return 740; } | @@ -89,6 +89,9 @@ function srs_get_player_modal() { return 740; } | ||
89 | function srs_get_player_width() { return srs_get_player_modal() - 30; } | 89 | function srs_get_player_width() { return srs_get_player_modal() - 30; } |
90 | function srs_get_player_height() { return srs_get_player_width() * 9 / 19; } | 90 | function srs_get_player_height() { return srs_get_player_width() * 9 / 19; } |
91 | 91 | ||
92 | +// to query the swf anti cache. | ||
93 | +function srs_get_version_code() { return "1.0"; } | ||
94 | + | ||
92 | /** | 95 | /** |
93 | * initialize the page. | 96 | * initialize the page. |
94 | * @param rtmp_url the div id contains the rtmp stream url to play | 97 | * @param rtmp_url the div id contains the rtmp stream url to play |
@@ -155,6 +158,7 @@ SrsPlayer.prototype.start = function() { | @@ -155,6 +158,7 @@ SrsPlayer.prototype.start = function() { | ||
155 | flashvars.on_player_ready = "__srs_on_player_ready"; | 158 | flashvars.on_player_ready = "__srs_on_player_ready"; |
156 | flashvars.on_player_metadata = "__srs_on_player_metadata"; | 159 | flashvars.on_player_metadata = "__srs_on_player_metadata"; |
157 | flashvars.on_player_timer = "__srs_on_player_timer"; | 160 | flashvars.on_player_timer = "__srs_on_player_timer"; |
161 | + flashvars.version = srs_get_version_code(); | ||
158 | 162 | ||
159 | var params = {}; | 163 | var params = {}; |
160 | params.wmode = "opaque"; | 164 | params.wmode = "opaque"; |
@@ -336,6 +340,7 @@ SrsPublisher.prototype.start = function() { | @@ -336,6 +340,7 @@ SrsPublisher.prototype.start = function() { | ||
336 | flashvars.id = this.id; | 340 | flashvars.id = this.id; |
337 | flashvars.on_publisher_ready = "__srs_on_publisher_ready"; | 341 | flashvars.on_publisher_ready = "__srs_on_publisher_ready"; |
338 | flashvars.on_publisher_error = "__srs_on_publisher_error"; | 342 | flashvars.on_publisher_error = "__srs_on_publisher_error"; |
343 | + flashvars.version = srs_get_version_code(); | ||
339 | 344 | ||
340 | var params = {}; | 345 | var params = {}; |
341 | params.wmode = "opaque"; | 346 | params.wmode = "opaque"; |
-
请 注册 或 登录 后发表评论