我可以从我的Flash播放器的两个不同的服务器调用两个crossdomain.xml吗? [英] Can I call two crossdomain.xml from two different servers from my flash player?

查看:184
本文介绍了我可以从我的Flash播放器的两个不同的服务器调用两个crossdomain.xml吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

crossdomain.xml是一个非常简单的概念,大多数开发人员可能已经完成了这个任务,但只是为了获取信息: - $ / $>

lockquote>

跨域策略文件是授予Web客户端(如Adobe Flash Player或Adobe Acrobat(尽管不一定限于这些))的权限,以跨域处理数据的XML文档。当客户端请求托管在特定源域上的内容,并且该内容使请求指向非自己的域时,远程域需要托管允许访问源域的跨域策略文件,允许客户端继续交易。

安全HLS流:
https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/UsingHTTPLiveStreaming/UsingHTTPLiveStreaming.html

问题:

我有一个flash hls播放器(player.swf)我的网站www.A.com。现在正在向一个安全请求(AES-128加密)的媒体服务器www.B.com/playlist.m3u8发送请求。包含在playlist.m3u8中的关键url指向一个web服务器www.C.com/keyPage.jsp



现在我的player.swf理想情况下应该调用crossdomain.xml服务器同时调用它们并继续后续的调用,但在我的情况下,一旦玩家从www.C.com接收到第二个crossdomain.xml,它将停止进行其他调用。但是,如果我把密钥传送应用程序从www.C.com移动到www.A.com它工作正常。

我真的很困惑这样的行为,根据目标服务器使用文档crossdomain.xml来验证驻留在其他服务器上的客户端。如果我使用多个服务器并为单个Flash应用程序提供所有这些服务器的跨域xml,那么这些问题如何?



PS - 我已经尝试过不同的在线hls球员可用的相同的过程,他们每个人都描述了相同的行为

编辑1
只是我的crossdomain xml是

 <?xml version =1.0encoding =UTF-8?> 
<!DOCTYPE跨域策略系统http://www.adobe.com/xml/dtds/cross-domain-policy.dtd\">
<跨网域政策>
< allow-access-from domain =*secure =false/>
< / cross-domain-policy>


解决方案

出问题了,因为 C.com 是一个jboss服务器。我尝试了同样的架构,首先由IIS取代C.com,然后是Apache Tomcat。在这两种情况下,所有的电话正在被请求和服务。



所以上面的问题如果我可以请求2个crossdomain xmls从我的两个不同的服务器Flash Player是是的,我可以做到这一点



虽然问题仍然是为什么提供crossdomain xml jboss停止后续的调用


crossdomain.xml, quite a simple concept which most of the developers might have came through, though just for info :-

A cross-domain policy file is an XML document that grants a web client, such as Adobe Flash Player or Adobe Acrobat (though not necessarily limited to these), permission to handle data across domains. When clients request content hosted on a particular source domain and that content make requests directed towards a domain other than its own, the remote domain needs to host a cross-domain policy file that grants access to the source domain, allowing the client to continue the transaction.

Secure HLS streaming : https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/UsingHTTPLiveStreaming/UsingHTTPLiveStreaming.html

The question :

I have a flash hls player (player.swf) that is on my site www.A.com. Now the request is being made to a media server www.B.com/playlist.m3u8 which is a secure hls request (AES-128 encrypted). The key url contained in playlist.m3u8 points to a web server www.C.com/keyPage.jsp

Now my player.swf ideally should call crossdomain.xml for both the servers while calling them and proceed with the subsequent calls, though in my case once the player receive the second crossdomain.xml from www.C.com it stops making any other call. However if I move the key delivery application from www.C.com to www.A.com it works fine.

I am really confused on such a behavior as according to the documents crossdomain.xml is used by destination server to validate a client which resides on some other server.So how does it matter if I am using multiple servers and providing crossdomain xml for all of them for a single flash application.

P.S. - I have tried the same process with different online hls players available and everyone of them depicts the same behavior

EDIT 1 Just for reference my crossdomain xml is

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
     <allow-access-from domain="*" secure="false"/>
     <site-control permitted-cross-domain-policies="all"/>
</cross-domain-policy>

解决方案

Well after too much digging into the issue, I figured out that the problem was coming because C.com is a jboss server. I tried the same architecture replacing C.com first by IIS and then Apache tomcat. In both the cases all the calls are being requested and served properly.

So the above question if i can request for 2 crossdomain xmls of two different servers from my flash player is yes, I can do that.

Though still the question remains why providing the crossdomain xml from jboss stops the subsequent calls

这篇关于我可以从我的Flash播放器的两个不同的服务器调用两个crossdomain.xml吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆