Results 1 to 5 of 5

Thread: crossdomain policy issue with jwplayer

  1. #1

    Default crossdomain policy issue with jwplayer

    hello allo,

    i have a website that plays a list of youtube movies inside a jw flash player. this works correctly. i have managed to access it by javasript to send events to it:

    Code:
    <script type="text/javascript">
    videoPlayer = null;
    function test_button(){
    videoPlayer.sendEvent("load", 'rtmp://192.168.0.15:1935/httplive&file=tv720_high.stream');
    }
    function playerReady(obj) {
      videoPlayer = document.getElementById(obj['id']+'-embed');
    }
    </script>
    when i access the test_button() function i get the message: "playlist could not be loaded due to crossdomain policy restrictions" in the flash player itself.

    i have created a crossdomain.xml and placed it on the wowza server on port 80, and there was already one available on the wowza server itself on port 1935. settings in there look corrrect:

    port 80:
    Code:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <allow-access-from domain="*" />
    </cross-domain-policy>
    port 1935:
    Code:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    	<allow-access-from domain="*" />
    	<site-control permitted-cross-domain-policies="all"/>
    </cross-domain-policy>

    i have also tried binding the ip of the server to a subdomain, but no changes to the behavior.

    anyone who knows what is going wrong?

  2. #2
    Join Date
    Dec 2007
    Posts
    28,412

    Default

    Try adding Flashvar "provider=rtmp":

    Code:
    videoPlayer.sendEvent("load", 'rtmp://192.168.0.15:1935/httplive&file=tv720_high.stream&provider=rtmp');
    Also, confirm that this works testing with Wowza example /examples/LiveVideoStreaming/client/live.html

    Server: rtmp://192.168.0.15:1935/httplive
    Stream: tv720_high.stream

    Richard

  3. #3

    Default

    the stream does work with the tester, and with a fixed url it does work as well, but when i try to turn on that stream with a sendEvent it does not work, your code does not change this.

  4. #4
    Join Date
    Dec 2007
    Posts
    28,412

    Default

    You will have to ask about this on JW player forum.

    Richard

  5. #5
    Join Date
    Dec 2007
    Posts
    28,412

    Default

    I do not think this has anything to with crossdomain policy files on Wowza. Maybe on your web server where the player is served from, but that doesn't add up either because you are not loading any file, much less one from a different domain.

    Richard

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •