BitmapData.draw failed on WebcamSubscriber

Most of the times when I try to snap data from WebcamSubscriber movieclip I get the following error.
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: mypath.swf cannot access rtmfp://fms7.acrobat.com/cocomo/na2-sdk-bec0edb4-775b-4f16-94f7-cd43ec89ff10/test. No policy files granted access.
in some (very few) cases it works, and I can feagure out what are the conditions require for it to work.
Few weeks ago it was working consistently.
Will appreciate any help.
Best regards,
Gadi Srebnik

Great, bitmapdata.draw works good !
however, it didnt happened when I removed the protocol decleration on my previous room/application. When I tried that it tried to connect to fms8 and only when I started a new application/room and removed the protocol declaration it changed to fms4 and it works fine now.
Does it have anything to do with the specific server node?
how can I be sure that user connection will allways run on the server that will enable this feature?
btw, the subscribe from dev panel also work now all the time
Best Regards,
Gadi Srebnik

Similar Messages

  • BitmapData.draw fails to capture webcam

    I am trying take a snapshot from a webcam. I'm using
    BitmapData.draw(video). This works fine on my desktop but when I
    try to do it in the browser it fails. Apparently this is some kind
    of security restriction. Is there a way to get around it?

    Hello jspoon27,
    I am working on a locally run flash application that is very
    similar to your post about wanting to save a snapshot of a local
    webcam. Could you share your code for doing that or explain your
    steps? I would like to have a webcam running then take a snapshot
    of the webcam with a button and then email the saved snapshot. My
    main interest is how you created the snapshot and button for it.
    Thank you,
    LeverLock2

  • BitmapData.draw() failing to draw entire MovieClip

    Hi, all;
    I'm trying to do some lean blitting for an object that rotates by rotating it once at startup and capturing a BitmapData snapshot of each 5 degrees.  The problem I'm having is that the draw() method of the BitmapData object is only picking up pixels in the MovieClip that are below and to the right of the registration point.  If I change the MC so that the registration point is in the top left corner, I sometimes get what looks like most of the pixels, but the entire object rotates into and out of the frame, since it's rotating around the corner and not the center.
    Has anyone encountered this before, and if so is there a fix?
    Thanks;
    Amy Blankenship
    flexdiary.blogspot.com

    I think you're misunderstanding the question.  I am using a matrix to transform it, and that lower right quadrant of the MovieClip rotates perfectly as inended, but the rest of the object isn't captured as if it weren't there.
    Here's the code:
    package com.magnoliamultimedia.datastructures
    import flash.display.BitmapData;
    import flash.display.IBitmapDrawable;
    import com.magnoliamultimedia.datastructures.IChain;
    import com.magnoliamultimedia.datastructures.IChainable;
    import flash.geom.Matrix;
    import flash.geom.Rectangle;
      * RotationChain takes an IBitmapDrawable and rotates
      * it through 360 degrees, creating a BitmapDataLink
      * for each incremental rotation
      * @author Amy Blankenship
    public class RotationChain implements IChain
      //private storage for the chain entry point
      private var _defaultNode:IChainable;
       * Constructor
       * @param rotatingObj object to rotate
       * @param degrees number of degrees to rotate (must divide evenly into 360)
      public function RotationChain(rotatingObj:IBitmapDrawable, degrees:int=5, size:int=200)
       //first, check if degrees divides evenly into 360
       if (360 % degrees != 0) {
        throw new Error('Degrees must divide evenly into 360');
        //set to the default, so we still have a usable chain
        degrees = 5;
       var matrix:Matrix = new Matrix();
       var bd:BitmapData;
       var bdl:BitmapDataLink;
       var lastBDL:BitmapDataLink;
       var loops:int = 360 / degrees - 1;
       for (var i:int = 0; i < loops; i++) {
        /* Take "snapshot" of rotating obj with matrix applied.
         *  On the first loop, use the identity matrix.
        bd = new BitmapData(size, size);
        bd.draw(rotatingObj, matrix);
        bdl = new BitmapDataLink(bd);
        //check for any previous links that might have been added
        if (lastBDL == null) {
         //no? this is the default
         defaultNode = bdl;
        } else {
         //set up reciprocal arrangement with last node
         bdl.previous = lastBDL;
         lastBDL.next = bdl;
        //set this link as the last link
        lastBDL = bdl;
        //rotate next snapshot
        matrix.rotate(degrees);
       //connect the last link to the first link to make a circular chain
       lastBDL.next = defaultNode;
       defaultNode.previous = lastBDL;
      /* INTERFACE com.magnoliamultimedia.datastructures.IChain */
      public function get defaultNode():IChainable
       return _defaultNode;
      public function set defaultNode(value:IChainable):void
       _defaultNode = value;
    Is there anyone out there who does this kind of stuff?
    Thanks;
    Amy

  • BitmapData.draw() and embedded MovieClip

    I can't capture the content of an embedded MovieClip, the
    following code creates a Bitmap that shows only the results of the
    changes methods of Graphics, although the clip is correctly
    embedded. Have you tackled similar problems? Thanks.
    [Embed(source="aMovieClip.swf")]
    private static var AMovieClip:Class;
    var aMovieClip:MovieClip = new AMovieClip();
    aMovieClip.graphics.lineStyle(6, 0xff0000);
    aMovieClip.graphics.lineTo(100,100); //i don't need this, but
    this is the only things that you will see, a red line
    var bitmapData:BitmapData = new BitmapData(aMovieClip.width,
    aMovieClip.height,true, 0xFFFFFF);
    bitmapData.draw(aMovieClip);

    It seems that the functions that were failing were
    getBounds() and accessing the transform.concatenatedMatrix in the
    loaded swf in the process of preparing to draw the bitmap.

  • BitmapData.draw problem due to security

    As another thread has posted, there seems to be a problem for BitmapData.draw on the Stratus server.
    After connecting to the Stratus server, drawing any part of the UIComponents will be stopped by a security alert.
    Event after disconnecting to Stratus, the problem still exist.  The only time when BitmapData.draw worked is when
    the application just lunched and havn't connect to Stratus yet.
    I've found another thread in the LCCS forum discussing the same problem, and it seems that over there they found a solution.
    Just wondering of Stratus will apply the same fix or do we have to wait until the new edition of FMS to have this fixed.
    Thanks in advance
    The LCCS forum thread discussing this problem:
    http://forums.adobe.com/message/2803074#2803074

    Hi,
    If you haven't already, I suggest opening a ticket with customer support.
    Jennie

  • HTTP Streaming and BitmapData.draw

    Hi OSMF Experts,
    I've tried to duplicate segments of a Video with BitmapData.draw.
    It's working with RTMP (set videoSampleAccess server side).
    Progressive is also working (crossdomain.xml is ok).
    BitmapData.draw doesn't work with HTTP Streaming! (Using *.f4m). What's the way to get this working? Following Error is thrown:
    SecurityError: Error #2123: Verletzung der Sicherheits-Sandbox: BitmapData.draw: file:///C|/players/myVideoTestHTTP.swf kann nicht auf null zugreifen. Es haben keine Richtliniendateien Zugriff gewährt.
    I've used OSMF 2.0 for the Tests. And I've testet with the sample.mp4/manifest.f4m example.
    Thanks for your answers.
    Greets
    Martin

    Have you seen bug CSCdx31582- Macintosh wont play WMT from CE (ecdn). Guess this is similar to the issue that you have.

  • Getting Security Error when trying to use bitmapdata.draw method on youtube videos

    Hi All ,
    I am playing youtube videos in UIComponet of flex, but when I trying to capture the image using bitmapdata.draw() method it gives me an secutity error on server  , It works well locally in flex editor.
    Is any one knows how to resolve this bug??
    Thanks in advance
    sujit Rai

    Try nesting the clips and then adding the warp stabiliser to the nest.

  • BitmapData.draw Security Sandbox and LocalTrusted not working?

    Hello there, wondering if anyone else is having the same
    problem -- I have a LocalTrusted security sandboxType -- and when i
    try to access a BitmapData.draw method on a progressive flv, i get
    the error message:
    SecurityError: Error #2135: Security sandbox violation:
    BitmapData.draw: file://file.swf may not access null. RTMP content
    cannot be accessed using this API.
    I've rechecked my sandbox type a zillion times, as well as
    tried putting allow="*" in the crossdomain policy file ....
    is this an error in my security settings -- or is
    bitmapdata.draw on video objects now "gone"?

    Could you try this - Open and swf, rightClick - Goto
    settings, then click Advanced. On the webPage click on "Global
    Security settings panel".
    If you don't find your local directory in there, add it and
    see if things work?
    If not, it would be good if you could post the chunk of code
    which is creating problems.

  • BitmapData.draw() with crossdomain

    Hi,
    I am trying to capture an FLV Frame with the
    bitmapdata.draw() function.
    I works fine with same domain but don't with cross domain
    even with crossdomain.xml
    I got a Security SandBox Violation
    Here is the sample demo :
    http://www.raprace.nl/forums/MMBBSevotest/Snapshot1.html
    It should be considering the file
    http://loloviolo.com/crossdomain.xml
    Here is the source
    Thanks for your help.
    LoLoVioLo

    works for me using an flvplayer without a cross domain
    policy.

  • Security sandbox violation: BitmapData.draw

    Hello,
    I got this error:
    SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: A policy file is required, but the checkPolicyFile flag was not set when this media was loaded. 
    when I try to draw a frame of a movie that is downloading from another server. Crossdomain.xml is set. Another Jpgs are correctly drawn but only a movie causes an error.
    I need to checkPolicyFile but where should I do this? I have no direct access  to Loader to set up LoaderContext(true) ...
    Thanks,
    Michal

    I too would love to know how we can pass in our own LoaderContext to set the security domain. I'm receiving the same error after snapshotting a loaded SWFElement bug/watermark.
    e.g.
    var bug:MediaElement = new SWFElement(new URLResource(url));
    var bugTrait:LoadTrait = bug.getTrait(MediaTraitType.LOAD) as LoadTrait;
    bugTrait.load();

  • BitmapData.draw Security error

    I am drawing to bitmap from MediaContainer:
    var mediaContainer:MediaContainer = new MediaContainer();
    bitmapData.draw(mediaContainer);
    This works, but when I switch video, an error occurs:
    SecurityError: Error #2123: Security sandbox violation: BitmapData.draw
    cannot access unknown URL. No policy files granted access.
    Any ideas?

    Here you go:
    http://flashboard.info/files/DrawTest.fxp
    It has both HTTP and RTMP ways.
    I've tried launching from http:// and file:// - both work fine for me.
    Links inside app are to our production servers.
    Regards!

  • LOCAL_WITH_NETWORK sandbox and SecurityError: Error #2121: BitmapData.draw

    We have an application we run in a localWithNetwork security sandbox.  This application loads many assets from an off-site web server.  In spite of a very permissive crossdomain.xml, swfs downloaded from site give a 2121 error when we convert them to bitmaps at runtime.
      <?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="*" />
        <site-control permitted-cross-domain-policies="all"/>
      </cross-domain-policy>
    Now, I understand why this restriction with BitmapData.Draw exists in general, and from what I've read in other discussion threads the general solution is to allow less restrictive access via crossdomain.xml.  This is the most permissive I know how to make it, although the documentation on the subject is not the most concise.  Are there details I'm missing here?
    For the moment we're just running this as LOCAL_TRUSTED, but this requires folks to be setup with the debug plugin which is a maintenance problem.
    Thanks in advance for any guidance.
    jv

    Crossdomain isn’t used in localWithNetwork because there is no “domain” for the request.
    I didn’t think you needed a debug plugin for LOCAL_TRUSTED, I thought any trust file would work.  Did you try creating an AIR app instead?  It might have different security rules.

  • "Drawing Failed" After Camera RAW 4.0

    Hi,
    After testing the trial version of Photoshop CS3, I've found that processing images through camera raw leads to odd behavior when watching them in Windows Picture And Fax Viewer (particularly when zooming in), it just says "Drawing Failed" but the image still shows when I either scroll in the picture or zoom out and then back in.
    It also "removes"/hides the basic exif info when checked through Windows XP (Properties -> Summary), but it is still there when read from Photoshop's File info.

    On the
    Adobe Design Center video workshop website there is a brief video that will describe a few of the new controls. You will have to look for it in the Photoshop section of all the different videos that are listed. You might have to scroll to find one entitled, "Correcting lighting with Camera Raw." There are also a few short video tutorials available on the NAPP website.
    Take a look here.

  • BitmapData.draw is not rendering contents outside visible portion of Canvas

    My application has a Canvas with a bunch of elements on it and which has a scrollbar to see the full contents of it, i.e. the Canvas has a height of 200px, but the objects contained within extend past the 200px all the way to 400px. When I pass this canvas object to my BitmapData instance which I have created with a height of 400px, the result is that I get a 400px image but only the top 200px are actually rendered. If I move the scrollbar down and call draw, I get the bottom 200px of the canvas rendered on the top half of the BitmapData.
    Is there a way to render the full contents of the Canvas object and not only what is currently visible in the viewport?
    Thanks
    Ruy

    It is internal, meaning it is not documented, but it should be in the rawChildren or you can access it via mx_internal.  I would think if you set height=400, called validateNow() then bitmapData.draw it might work.
    You could also try setting scrollRect=null.
    FWIW, often folks have a print view that hooks up to the same data model.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • !!Still unresolved error #2123: BitmapData.draw(), videosampleaccess, No policy files granted access

    Hello,
    I have looked all over the forums, google etc. and not found any reliable and working solution to be able to retrieve the stream bitmapdata from RTMP  or HTTPDynamicStreaming source. Please find the details below.
    I have tried everything:
    NetStream.checkPolicyFile = true
    Security.loadPolicyFile(...);
    /applications/live/main.asc has the code below:
    application.onConnect = function( client )
        client.videoSampleAccess = "/";
        this.acceptConnection(client) ;
    The Application.xml has the tag:
    <Client>
         <access>
              <VideoSampleAccess enabled="true">/</VideoSampleAccess>
         </access>
    </Client>
    But constantly, I receive this error ( both on FMS3.5 and FMS4.0 RTMP & HttpLiveDynamicStreaming):
    securityerror:Error #2123: Security sandbox violation: BitmapData.draw: http://localhost/xxyy.swf cannot access rtmpt://localhost:1935/live. No policy files granted access.
    The problem persists wherever the player.swf is placed.
    Since I'm using OSMF the video display object had to be retrieved in the way like this:
    var mediaDisplayObjectTrait:DisplayObjectTrait;
    mediaDisplayObjectTrait = media.getTrait(MediaTraitType.DISPLAY_OBJECT) as DisplayObjectTrait;
    v = new Video(mediaDisplayObjectTrait.mediaWidth,mediaDisplayObjectTrait.mediaHeight);
    loadable.netStream.checkPolicyFile = true;
    v.attachNetStream(loadable.netStream);
    The new Video part is a must because when using ( the only working http - vod setup ) the BitmapData of the DisplayObject defaults to 320x240 even though the mediaWidth and mediaHeight properties are set fine and the video itself has much higher resolution. I must note at this point its far weird and worths another post.
    Seems like the player simply doesn't know anything about where and how to obtain any kind of policy information from the stream.
    I think this issue must be resolved once and for all, it's simply not acceptable to have this poor documentation floating around an essential feature without any professional help involved.

    You don't need crossdomain policy files, you need to do the following;
    1)      Edit the Application.xml file in the host folder, within install directory/conf/... , edit the client tag, adding the attribute override=”yes”
    <Client override=”yes”>
    In a default install of Flash Media Server, the Client class is set to prevent overriding values in the application folder. This was why the settings we were trying were not holding.
    We do not need to alter anything else of the conf Application.xml
    2)      Add the client/access nodes to the root Application.xml within the content folder  ( we have already done this as far as I am aware ).
    <Application>
      <Client>
       <Access>
        <VideoSampleAccess enabled="true">/</VideoSampleAccess>
        <AudioSampleAccess enabled="true">/</AudioSampleAccess>
       </Access>
      </Client>
    </Application>
    3)      Restart the Media Server by using the administration console. This will enable the client>access values to be overridden to true.

Maybe you are looking for

  • Visual Composer (B1i) error message

    Hi, Does anyone know what does this error message say (while opening a new project in the Visual Composer tool): "Access to Remote Visual Composer library denied. Automation server can't create object" ? Thanks, AS.

  • In Oracle 10g, How to call a report since an option of a menu (*.mmb)

    Hello In Oracle 10g, working since the browser, how to call a report since an option of a menu (*.mmb)? I know to call it in a form (*.fmb), therefore uses the fields bean area and the objects reports, but in a menu there is not neither canvas, neith

  • Jco.server.max_startup_delay

    SAP Note 730870 say: Q 25: A RFC sender channel is registered at a SAP Gateway which is shutdown. Does the RFC sender channel automatically reconnect to the SAP Gateway after it is available again? A: The SAP Gateway is shutdown due to e.g. offline b

  • T430s Error in how the Power Manager icon displays in system tray at bottom of screen

    The icon for the Power Manager in the Windows system tray in the bottom right area of the screen is cut off.    It's basically displaying itself too low on the system bar.  Please see picture attached: Does anyone know how to fix this?  I've tried up

  • How to Calculate Sum of Difference between two dates

    Hi, I'm using BI Publisher in Siebel CRM. In RTF template I have the following expression to calculate the Difference between dates <?xdoxslt:date_diff( 'd' , psfn:totext(CIRGSubmittedDate,"yyyy-MM-dd","MM/dd/yyyy"), psfn:totext(Done,"yyyy-MM-dd","MM