From e8680527c3f8d57a8a0b6cbfbec438405cd3c52c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=A1=E2=80=94=E2=80=94=E9=97=AE=E9=A2=98?= Date: Thu, 17 Sep 2015 12:09:29 +0800 Subject: [PATCH] allow domain * MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在使用时,srs_player可能和所在页面部署在不同的域名下。 所以在此处添加跨域许可。 --- trunk/research/players/srs_player/src/srs_player.as | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trunk/research/players/srs_player/src/srs_player.as b/trunk/research/players/srs_player/src/srs_player.as index 27513f0db..0c553055f 100755 --- a/trunk/research/players/srs_player/src/srs_player.as +++ b/trunk/research/players/srs_player/src/srs_player.as @@ -79,6 +79,8 @@ package this.stage.addEventListener(FullScreenEvent.FULL_SCREEN, this.user_on_stage_fullscreen); + Security.allowDomain("*"); + this.addChild(this.control_fs_mask); this.control_fs_mask.buttonMode = true; this.control_fs_mask.addEventListener(MouseEvent.CLICK, user_on_click_video); @@ -591,4 +593,4 @@ package ExternalInterface.call("console.log", msg); } } -} \ No newline at end of file +}