mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
use version to anti swf cache.
This commit is contained in:
parent
0967ec5e2f
commit
a744308e97
1 changed files with 4 additions and 4 deletions
|
@ -158,7 +158,6 @@ SrsPlayer.prototype.start = function() {
|
||||||
flashvars.on_player_ready = "__srs_on_player_ready";
|
flashvars.on_player_ready = "__srs_on_player_ready";
|
||||||
flashvars.on_player_metadata = "__srs_on_player_metadata";
|
flashvars.on_player_metadata = "__srs_on_player_metadata";
|
||||||
flashvars.on_player_timer = "__srs_on_player_timer";
|
flashvars.on_player_timer = "__srs_on_player_timer";
|
||||||
flashvars.version = srs_get_version_code();
|
|
||||||
|
|
||||||
var params = {};
|
var params = {};
|
||||||
params.wmode = "opaque";
|
params.wmode = "opaque";
|
||||||
|
@ -170,7 +169,8 @@ SrsPlayer.prototype.start = function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
swfobject.embedSWF(
|
swfobject.embedSWF(
|
||||||
"srs_player/release/srs_player.swf", this.container,
|
"srs_player/release/srs_player.swf?_version="+srs_get_version_code(),
|
||||||
|
this.container,
|
||||||
this.width, this.height,
|
this.width, this.height,
|
||||||
"11.1", "js/AdobeFlashPlayerInstall.swf",
|
"11.1", "js/AdobeFlashPlayerInstall.swf",
|
||||||
flashvars, params, attributes,
|
flashvars, params, attributes,
|
||||||
|
@ -340,7 +340,6 @@ SrsPublisher.prototype.start = function() {
|
||||||
flashvars.id = this.id;
|
flashvars.id = this.id;
|
||||||
flashvars.on_publisher_ready = "__srs_on_publisher_ready";
|
flashvars.on_publisher_ready = "__srs_on_publisher_ready";
|
||||||
flashvars.on_publisher_error = "__srs_on_publisher_error";
|
flashvars.on_publisher_error = "__srs_on_publisher_error";
|
||||||
flashvars.version = srs_get_version_code();
|
|
||||||
|
|
||||||
var params = {};
|
var params = {};
|
||||||
params.wmode = "opaque";
|
params.wmode = "opaque";
|
||||||
|
@ -352,7 +351,8 @@ SrsPublisher.prototype.start = function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
swfobject.embedSWF(
|
swfobject.embedSWF(
|
||||||
"srs_publisher/release/srs_publisher.swf", this.container,
|
"srs_publisher/release/srs_publisher.swf?_version="+srs_get_version_code(),
|
||||||
|
this.container,
|
||||||
this.width, this.height,
|
this.width, this.height,
|
||||||
"11.1", "js/AdobeFlashPlayerInstall.swf",
|
"11.1", "js/AdobeFlashPlayerInstall.swf",
|
||||||
flashvars, params, attributes,
|
flashvars, params, attributes,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue