2 Replies Latest reply on Mar 30, 2010 11:01 PM by ne_polle

    SecurityError 2123: ImageSnapshot.captureBitmapData(video)

    ne_polle Level 1

      Hi

       

      Project compiled for Flash Player 9 and developed with Flex SDK 3.5

       

      I try to take snapshats from a rtmp video.

       

      I wrote a crossdomain.xml:

       

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

       

      directly located in the folder where the swf is located.

       

      ActionScript Code in the init function:

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

       

      ActionScript Code in the function "when content.xml loaded":
      Security.allowDomain(myXML.elements("flvUrl").attribute("url").toString());

       

      content.xml:

      <content>

          <flv url="rtmp://3p0.de/vod/Extremists"/>
          <flvUrl url="rtmp://3p0.de/vod/*"/>

      </content>

       

      The rtmp video is located an a server I do not know.

       

      I just had to write a swf which manipulate the video.

       

      I loaded the project to a fileserver and tried it to run but I get the SecurityError (translated in english):

      BitmapData.draw: ..../my.swf couldn´t access to rtmp://3p0.de/vod/Extremists there are no security file which allow the access.

       

      Can someone help me?

      Is it possible to test the access from a fileserver?

       

      thanks and

      best regards