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.

Similar Messages

  • Security issue with NetStream.appendBytes() and BitmapData.draw()

    Iuse appendBytes to continuously and seamlessly stream video data into a netStream. since we're NOT playing the video files directly from a web domain, there is no meaning to the checkPolicyFile property of our netStream object and therefore - we cannot BitmapData.draw() our Video instance with the netStream attached.
    Is there any possibility to get images from the netStream in order to manipulate them on-the-fly?

    I ran into the same problem.  Have you managed to find a solution to get around the security violation?

  • OSB MTOM HTTP Streaming

    Hello everybody,
    I have just started using Service Bus 11gR1 and I run into a problem. I need to define a proxy service (web service) which accepts large files (hundreds of MB).
    I opted for using MTOM/XOP combined with HTTP streaming. To do this, I enabled in the "Message Handling Configuration" screen, the "XOP/MTOM Support" option and I set "Page Attachments to Disk" to true.
    Actually, when I try to send large messages, the memory usage does not increase because the binary sent is buffered into the disk. Now I noticed that, before the proxy server is called, the binary sent is saved in a temporary file. I was wondering whether or not we can define a limit on the Message Size to be checked*before* the file is buffered on the disk. I want OSB to start reading the HTTP streaming and, when the max size is reached, to reset the http connection with the client. If this is not possible, I think that this is an issue from a security point of view.
    Thank you in advance.
    Edited by: 837199 on Feb 16, 2011 6:23 AM

    I don't know the answer to your question. Sorry! But It sounds like you have more succes with mtom on OSB than me. So I have a question that I hope you can help me with. Is you service based on a WSDL? if it is, can I see how it looks because I have some problems, making a wsdlbased proxyservice with mtom and invoking it from soapui
    BR,
    Mads

  • Steps to Publish Live Audio for HTTP Streaming

    I wanted to confirm some steps in order to stream Live Audio from FMS to a mobile device using HTTP Streaming and HTML 5 audio/video tags.  I have a system setup like below:
    Lets say my application which recieves the live audio is called CLASSROOM.
    Lets say my application instance is called "TEST"
    So I have application code like:
    In "onAppStart()"
    this.broadcast_live_stream = Stream.get("f4f:livestream");
    this.broadcast_live_stream.liveEvent = "TEST";
    this.broadcast_live_stream.record("record");
    To play the incoming audio:
    application.broadcast_live_stream.play(streamName); // name of the stream sending audio to the server
    Thus, I have a folder:
    Flash Media Server 4.5\applications\CLASSROOM\streams\TEST\livestream
    which contains a bootstrap, control, meta, f4f, and f4x files.
    Since I specified the Event name as "TEST", I also created the folder:
    Flash Media Server 4.5\applications\livepkgr\events\_definst_\TEST
    Which contains event.xml:
    <Event>
    <EventID>TEST</EventID>
    - <Recording>
    <FragmentDuration>4000</FragmentDuration>
    <SegmentDuration>400000</SegmentDuration>
    <DiskManagementDuration>3</DiskManagementDuration>
    </Recording>
    </Event>
    and manifest.xml:
    <manifest xmlns="http://ns.adobe.com/f4m/1.0">
    <media streamId="livestream" bitrate="100" />
    </manifest>
    Should I then be able to create a video tag and hear the live audio:
    <video id='slide1' controls='controls'><source src='http://fms-dns/hls-live/livepkgr/_definst_/Test/livestream.m3u8'></video>
    I am not sure what other steps are needed, or a good way to test.  I don't understand how the Live Media Encoder would be needed in this situation.

    So I implemented the above change, using code from the livepkgr.
    My custom application is called Unity3, and the instance is Test, and I am trying to  publish to an event called "Test".
    I now have:
    applications\Unity3\streams\Test\livestream
    Which contains segment files, which update when I send audio in my application.
    I have:
    C:\Program Files\Adobe\Flash Media Server 4.5\applications\Unity3\events\Test\Test
    Which contains my event.xml (EventId Test), manifest.xml (StreamId livestream).  I also have a ".stream" file in this folder.  The contents of which are:
    <?xml version="1.0" encoding="UTF-8"?>
    <stream xmlns="http://ns.adobe.com/liveevent/1.0">
    <type>
    f4f
    </type>
    <name>
    livestream
    </name>
    <path>
    C:\Program Files\Adobe\Flash Media Server 4.5\applications\Unity3\streams\Test\livestream
    </path>
    </stream>
    So everything there seems to be good.  I try to use:
    <video id='live' controls='controls'><source src='http://[fms-dns]/hls-live/Unity3/Test/Test/livestream.m3u8'></video>
    or
    <audio id='live' controls='controls'><source src='http://[fms-dns]/hls-live/Unity3/Test/Test/livestream.m3u8'></audio>
    I don't hear audio, the controls don't seem to respond as though they recognize a source.  Are there certain browsers which can be confirmed work?  Any other mistakes stand out?
    Thanks.

  • HTTP Streaming in JavaFX

    How to perform HTTP streaming in JavaFX ?
    I am planning to make a player which can stream video from a local area network like "http:\\172.16.20.201:1234".
    I could see similar questions , but no replies to them.
    Hoping for a quick reply.
    Thanks in advance.

    I'm interested in a similar topic...
    We have a vlc streaming server, which serves a http stream (videos). We can control this stream with the help of telnet thus for example if we pause the stream at the vlc-server through telnet, the stream is stopped centrally and the connected clients almost synchronously see the same images and audio at the same time. On the client side we are searching for a solution to get this http stream and display the video on a jpanel. With JVLC (java bindings for vlc) it works, but unfortunately JVLC makes use of a canvas awt component to display the video and because of that, we can't use JVLC in our project (we need this player in sun's wonderland as an embedded swing app and canvas isn't supported there -> http://forums.java.net/jive/thread.jspa?messageID=341831&tstart=0#341831). We know from a wonderland developer that he was able to run a simple javafx video player inside wonderland (which displays and plays a video from an url, he referred to this tutorial: http://www.informit.com/articles/article.aspx?p=1326515&seqNum=2).
    But is it also possible to get and display the http stream from our vlc streaming server which is run for example at http:\\175.13.26.401:8080?
    Thanks for your help.
    Peter

  • Streaming Video and Bitmap Draw issues.

    Hello all,
    In the current application I'm developing, I have a custom
    video console. While watching a video, certain points in the
    timeline will pop up a dialog box that gives the user the ability
    to switch to a related video. If the user clicks the button to view
    the related video, a 3D effect flips the current "main" console to
    a secondary "branching" console - much like the flip effect the
    iPhone uses. The videos are streaming from FMS 3, the client
    application was developed in Flex, and we are using Alex Uhlmann's
    Distortion Effects to achieve the 3D flip effect.
    When I first started developing the application, I ran in to
    the infamous "Security sandbox violation: BitmapData.draw" error
    whenever I would try the flip. After some investigation on the web,
    I found that I needed to set the Client.videoSampleAccess property
    in my FMS application's main.asc to allow bitmap snapshot access. I
    did so, and that seemed to do the trick. After playing with the
    application a bit more, however, I found that the error would still
    come about if I did the following:
    1. Pause the video (stream)
    2. Perform a seek while paused.
    3. Attempt the flip effect.
    When I did the above, the error came back. If I paused,
    performed a seek, and then unpaused the video, everything worked
    fine. If I pause and then immediately do the flip without a seek,
    everything works fine.
    It seems as though when you pause and then perform a seek,
    the player forgets that it has permission to do a frame grab until
    you restart playback.
    Has anyone else had this issue, or anything similar? If so,
    how did you solve it?
    Thanks,
    --G
    (For reference, here is the actual Error that is getting
    thrown)
    SecurityError: Error #2123: Security sandbox violation:
    BitmapData.draw:
    http://localhost/Bison/trunk/BisonClient/bin/BisonClient-debug.swf
    cannot access rtmp://localhost/digitaltutors. No policy files
    granted access.
    at flash.display::BitmapData/draw()
    at
    sandy.util::DistortImage/renderVector()[C:\workspaces\flex2.0.1\AlexFlexLibrary\sandy\uti l\DistortImage.as:190]
    at
    sandy.util::DistortImage/initialize()[C:\workspaces\flex2.0.1\AlexFlexLibrary\sandy\util\ DistortImage.as:107]
    at
    com.adobe.ac.mxeffects::SimpleDistortion/initDistortImage()[C:\workspaces\flex2.0.1\AlexF lexLibrary\com\adobe\ac\mxeffects\SimpleDistortion.as:501]
    at
    com.adobe.ac.mxeffects::SimpleDistortion/renderSides()[C:\workspaces\flex2.0.1\AlexFlexLi brary\com\adobe\ac\mxeffects\SimpleDistortion.as:357]
    at
    com.adobe.ac.mxeffects::SimpleDistortion/flipFront()[C:\workspaces\flex2.0.1\AlexFlexLibr ary\com\adobe\ac\mxeffects\SimpleDistortion.as:98]
    at
    com.adobe.ac.mxeffects.effectClasses::FlipInstance/updateFront()[C:\workspaces\flex2.0.1\ AlexFlexLibrary\com\adobe\ac\mxeffects\effectClasses\FlipInstance.as:46]
    at mx.effects::Tween/
    http://www.adobe.com/2006/flex/mx/internal::doInterval()[C:\dev\flex_201_gmc\sdk\framework s\mx\effects\Tween.as:567
    at
    mx.effects::Tween$/timerHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\effects\Tween.as: 177]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()

    Hi,
    I've been searching all over for someone having the same
    problem that I am.
    I'm seeing nearly the same thing that you are. I have
    SWFVerification turned on and the swf copied over to the correct
    directory. If I stream an FLV and attempt to capture grab the
    bitmap data it works fine. Always.
    If I try the same thing with a .mov or .mp4 file it mostly
    works, but sometimes (after doing basically the same thing you've
    described in your message), I get the SecurityError. If I try again
    after a delay of a few seconds, sometimes it works. When that
    doesn't work, if I seek a 1/10th of a second ahead in the video
    then try again, it almost always works. But sometimes that, too,
    fails.
    Have you found a reliable solution to your problem? Has
    anyone else seen this issue? I would file a bug for FMS, but it
    looks like the bug-tracking system for FMS is not public. It would
    be nice for it to be public.
    regards,
    david

  • Using your own AMS, how can you use BitmapData.draw() on an RTMP stream with no security exception?

    We have an Adobe AIR app written in AS3 that can view live video streams from other parties.  That being said, when trying to call BitmapData.draw() on one of those remote video streams (technically we're calling ImageSnapshot.captureImage()), we're getting a 2123 error - a security sandbox exception.  I've seen a lot of people refer to a real simple configuration in the AMS that will allow this to work for RTMP streams, but they keep posting broken links, links to posts that only vaguely mention this configuration, etc.  The one thing I did find is something that I'm having trouble applying:
    http://help.adobe.com/en_US/FlashMediaServer/3.5_SS_ASD/WS5b3ccc516d4fbf351e63e3d11a11afc9 5e-7ec3.html#WS5b3ccc516d4fbf351e63e3d11a11afc95e-7fcb
    Please don't just give me another link, unless it's to a quick, clear explanation.  How do you configure the AMS to allow people to capture screenshots from RTMP video streams?  For the above article, I've tried setting videoStreamAccess and audioStreamAccess both to "/", and even it didn't work.  We also need to be able to do this for P2P RTMFP streams, but that's really a different question.  Thanks.

    You will get a better luck if you post this question on media server forum:
    http://forums.adobe.com/community/adobe_media_server?view=discussions

  • 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.

  • BitmapData.draw() and Security

    I am dynamically creating screen captures from flv files
    located in separate sub domains through the Bitmap Data Draw
    method. The problem is the illusion that flash calls security.
    "When you call the BitmapData.draw() method with progressive
    video as the source parameter, the caller of BitmapData.draw() must
    either be from the same sandbox as the FLV file, or the server of
    the FLV file must have a policy file that grants permission to the
    domain of the calling SWF file. You can request that the policy
    file be downloaded by setting the checkPolicyFile property of the
    NetStream object to true."
    Here is my first question. This seems to only apply to
    "progressive video". Is this yet another attempt to make us buy
    stream servers?
    And now my second question.
    Why is it that an end user can tap the flv files and draw
    freely as long as the embed object code references a cached version
    of the swf file but the remote swf file hosted on a separate sub
    domain in the same network needs to download a copy of the "policy
    file"?

    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.

  • It is possible to use a VOD HTTP Stream in an iTunes U Collection and/or Course?

    We wish to better comply with TEACH Act guidelines by using VOD (video on demand as opposed to real-time streaming) HTTP Streaming where an instructor is asserting educational fair use of copyrighted material.  The key component in TEACH guidelines is that the student not be able to retain the materials beyond the duration of the course.  Thus, VOD HTTP Streaming will meet this specification nicely and is supported across all of iOS and MacOS X.
    Thus, the question: It is possible to use a VOD HTTP Stream in an iTunes U Collection and/or Course?

    I knew about that, but my question is, if it is possible to use an europe power adapter.
    Because i dont want to a carry around an power adapter and a plugin adapter.
    I hope you understand what i mean.
    Sorry for my english
    Best.

  • How can I know the end of TCP stream and/or SOAP over HTTP flow

    Hi all!
    I want to read SOAP messages over HTTP, from sniffed TCP fragments.
    How can I decide that the TCP and/or the HTTP fragmenst finished?
    For example there is a SOAP message sliced to 5 TCP packets, and the first packet contains the HTTP header and some SOAP content too. The last packet contains the SOAP XML's ending XML-tag </soap:Envelope>.
    I don't want to watch every packet's end like "if the end string is </soap:Envelope> then it is the last packet", I just simply want to know which is the last packet of that message.
    The TCP connection won't be closed after the message arrives, and let's say the HTTP header doesn't contain a Content-Length field.

    A TCP connection is just a stream of bytes. It doesn't care what those bytes are. HTTP is built on top of TCP and specifies the ability to make a request without closing the connection (HTTP 1.1 Keep Alive). So you need to understand the HTTP protocol, understand whether it's a Keep Alive connection or not, and then do the same thing a browser would to do understand when a reply has been completed and the connection is available for the next request. Otherwise, you'll just look like you're getting loads of unrelated data as you sniff the connection. Oh, and you'll probably need to understand the HTTP chunking protocol too.

  • 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() 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() and displayobject with 3D transformations

    Hi all,
    I have a sprite with some objects in it which are transformed in 3D (positioned and rotated). The objects form a coneshape in such a way that the objects that make up the back are hidden.
    When I use that sprite as a source for the bitmapData.draw() it is drawn from another viewpoint so it seems. In my case the copy is viewed slightly from the bottom and right.
    Bottomline:
    Does anyone know of a way to duplicate the image of a sprite which contains 3D manipulated graphics?
    thanks in advance,
    Manno

    Nevermind:
    var pp:PerspectiveProjection = new PerspectiveProjection();
    pp.projectionCenter = new Point( 0, 0 );
    sphere.transform.perspectiveProjection = pp;
    Where sphere is the object to use as a source in the draw method. It seems OK now it has it's own perspectiveProjection set.

  • SWF Verification and HTTP Streaming from FMS 4.0.1

    Is it possible to do SWF Verification with HTTP Streaming? (If calling the box directly)
    My gut says No, and I haven't seen any examples or mentions of this in the forums, and I was hoping I could get a clear cut answer from someone that has either tried it or from Adobe.
    Thanks.
    -Will

    Hi,
    As of now, you cannot use SWFVerification to protect HTTP Streaming, as HTTP Streaming does not require connection with core process of FMS, but request is handled by f4f module in apache. The current way to ensure protection of HTTP streams is to use Flash Access for encryption of fragments. You can find more about Flash Access here at http://www.adobe.com/products/flashaccess/
    Thanks,
    Abhishek

Maybe you are looking for

  • How can I delete an Icloud account that is already on my phone?

    I have started a new job and my predesessor left his icloud account on the phone.  How can i delete it without his password?

  • Editing link properties

    This is probably an easy question, but here goes. I'm working with a Latex application that outputs PDFs. However, it has the odd quirk of outputting all URLs in pink and all internal links (cross referencing, table of contents) in red. I would like

  • Synchronized method's block list implementation

    In an object with synchronized methods, the OS maintains the list of blocked objects waiting to enter synchronzied methods. For this reason, I'm guesing, the Java spec seems to state the selection of these blocked objects as "arbitrary." I am trying

  • Camera Raw crops my image from left and right

    As you can see in the screen cap, camera raw inside AE opens my timelapse images cropped from left and right. I had this problem before in photoshop too, but never tried to fix it. I'm now in serious trouble and need to find a solution ASAP.

  • Can OX Server manage multiple drives on a server?

    I want to convert my 2008 Mac Pro to a file server.  I want to use Drives 2, 3, and 4 and the photo libraries located herein.  Can OX Server manage access to folders located on drives other than Drive 1?.