Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ouzhou committed Jul 23, 2019
1 parent eae29f9 commit 8b7cf49
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ rtmp 流直播定制 flash 播放器

- 良好适配 wowza
- 支持截图 base64
- 支持跨域文件

## 使用

Expand Down
3 changes: 3 additions & 0 deletions crossdomain.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<cross-domain-policy>
<allow-access-from domain="*"/>
</cross-domain-policy>
6 changes: 6 additions & 0 deletions index.as
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import mx.utils.Base64Encoder;
import mx.graphics.codec.JPEGEncoder;


var doMain = stage.loaderInfo.url;
var currSwfUrl = doMain.substring(0,doMain.lastIndexOf("/"));

Security.loadPolicyFile(currSwfUrl + "/crossdomain.xml");

var nc = null;
var ns = null;
var serverName;
Expand Down
Binary file modified index.fla
Binary file not shown.
Binary file modified index.swf
Binary file not shown.

0 comments on commit 8b7cf49

Please sign in to comment.