winlin

use version to anti swf cache.

@@ -158,7 +158,6 @@ SrsPlayer.prototype.start = function() { @@ -158,7 +158,6 @@ SrsPlayer.prototype.start = function() {
158 flashvars.on_player_ready = "__srs_on_player_ready"; 158 flashvars.on_player_ready = "__srs_on_player_ready";
159 flashvars.on_player_metadata = "__srs_on_player_metadata"; 159 flashvars.on_player_metadata = "__srs_on_player_metadata";
160 flashvars.on_player_timer = "__srs_on_player_timer"; 160 flashvars.on_player_timer = "__srs_on_player_timer";
161 - flashvars.version = srs_get_version_code();  
162 161
163 var params = {}; 162 var params = {};
164 params.wmode = "opaque"; 163 params.wmode = "opaque";
@@ -170,7 +169,8 @@ SrsPlayer.prototype.start = function() { @@ -170,7 +169,8 @@ SrsPlayer.prototype.start = function() {
170 var self = this; 169 var self = this;
171 170
172 swfobject.embedSWF( 171 swfobject.embedSWF(
173 - "srs_player/release/srs_player.swf", this.container, 172 + "srs_player/release/srs_player.swf?_version="+srs_get_version_code(),
  173 + this.container,
174 this.width, this.height, 174 this.width, this.height,
175 "11.1", "js/AdobeFlashPlayerInstall.swf", 175 "11.1", "js/AdobeFlashPlayerInstall.swf",
176 flashvars, params, attributes, 176 flashvars, params, attributes,
@@ -340,7 +340,6 @@ SrsPublisher.prototype.start = function() { @@ -340,7 +340,6 @@ SrsPublisher.prototype.start = function() {
340 flashvars.id = this.id; 340 flashvars.id = this.id;
341 flashvars.on_publisher_ready = "__srs_on_publisher_ready"; 341 flashvars.on_publisher_ready = "__srs_on_publisher_ready";
342 flashvars.on_publisher_error = "__srs_on_publisher_error"; 342 flashvars.on_publisher_error = "__srs_on_publisher_error";
343 - flashvars.version = srs_get_version_code();  
344 343
345 var params = {}; 344 var params = {};
346 params.wmode = "opaque"; 345 params.wmode = "opaque";
@@ -352,7 +351,8 @@ SrsPublisher.prototype.start = function() { @@ -352,7 +351,8 @@ SrsPublisher.prototype.start = function() {
352 var self = this; 351 var self = this;
353 352
354 swfobject.embedSWF( 353 swfobject.embedSWF(
355 - "srs_publisher/release/srs_publisher.swf", this.container, 354 + "srs_publisher/release/srs_publisher.swf?_version="+srs_get_version_code(),
  355 + this.container,
356 this.width, this.height, 356 this.width, this.height,
357 "11.1", "js/AdobeFlashPlayerInstall.swf", 357 "11.1", "js/AdobeFlashPlayerInstall.swf",
358 flashvars, params, attributes, 358 flashvars, params, attributes,