mirror of
https://github.com/ossrs/srs.git
synced 2025-02-12 19:31:53 +00:00
use version to anti swf cache.
This commit is contained in:
parent
4a31ac3e25
commit
0967ec5e2f
1 changed files with 5 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue