FLV from ByteArray

I'm trying to load and play an FLV from a ByteArray in AS3.
Let me try to explain better. I have a local FLV that is
encrypted. I can load it using an loader and decrypt it but i don't
find any way to pass the bytearray to anywhere that plays it.
I have searched the web for awnsers and didn't have any luck
with it :(
I'm thinking in extending the INCManager and find some way to
pass the damn bytearray to the video stream but don't even know
where to start...
I only solution i have found until now is to write the
decrypted ByteArray to disk and load it as a normal FLV but that's
exactly what i want to avoid..
Any help, ideas or something?
Thanks in advance

was u got solution to ur issue, i'm alo searching thing for tht
to load byte array in video in flex

Similar Messages

  • Error #2148 when loading image from ByteArray (not network or file)

    Hi!
    When I try to access bitmap data of Image loaded from ByteArray, I receive the following error:
    Error #2148: SWF file file:///C|/blablabla..../MyFlash.swf cannot access local resource file:///C|/blablabla..../MyFlash.swf/[[DYNAMIC]]/2. Only local-with-filesystem and trusted local SWF files may access local resources.
    I'm on Flash, not on AIR. And ByteArray contains PNG data which I prepare myself
    I tried to do it with Image.load and loader.loadBytes - the error is the same. I tried to use Flex SDK 3.4, 3.5 & 3.6 - nothing helps.
    When I add this image to my stage, it is displayed absolutely OK, but I still can't access bitmapData of this image - always got the same error.
    Flash Player 10
    Here are the samples of my code:
              public function onLoadComplete(event:Event):void
                var loader:LoaderInfo = event.target as LoaderInfo;
                var bmp:Bitmap = loader.loader.content as Bitmap; <-- here I received the error
                var bmpDat:BitmapData = bmp.bitmapData;
                this.bitmapData.copyPixels(bmpDat,new Rectangle(0,0,width,height), new Point(0,0));
                var loader:Loader = new Loader();
                loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);
                loader.loadBytes(byteArray);
    And another try
           var image: Image = new Image()
           this.addChild(image);
           image.addEventListener(FlexEvent.UPDATE_COMPLETE, onCompleteLoad2 );
          image.load(byteArray);
          public function onCompleteLoad2 (e:flash.events.Event):void
                     var image:Image=e.target as Image;
                     var bitmapData:BitmapData;
                     bitmapData=new BitmapData(image.width,image.height,true,0);             
                     bitmapData.draw(image); <-- here I received the error, while image is correctly added to the stage and displayed
    What's wrong? It seems, the image loaded from byteArray is treated as local resource. How can I overcome it inside the code? Because this .swf is
    run on different computers and I can't just add a flash security exception on every of them....
    Please, help I spent, maybe 20 hours and still can't find the solution

    I had the same problem, except I was reading in the image from the local disk using FileReference.  Anyway, my issue was resolved by using the
    -use-network=false option on the command line of my compiler (I do all my development in the shell using 'vi' to edit and mxmlc to compile).
    Ttry "-use-network=false" and see if that helps...
    ...bob...

  • Playing FLV from CD-ROM

    When running long a FLV from CD-ROM the seek times
    are terrible. Sometimes taking a full 3-4 minutes to seek
    near the end of a 160x120 - 30 minute movie for example.
    And that is on a 3ghz machine.
    How can this be reduced to approx. 3-5 seconds?
    This is what our customers expect from video.
    They need to bounce around the video rapidly.
    Also, splitting the FLV into smaller clips is not a solution
    and we can't we install to the hard drive.
    Thanks.

    HI
    This is because of CD-ROM's cache. Heres a way to resolve
    these issues.
    http://www.flashjester.com/?section=faq&cPath=14_53#248
    Download an evaluation copy and try it and see the
    difference.
    Regards
    FlashJester Support Team
    e. - [email protected]
    w. - www.flashjester.com
    "This has been one of the most impressive and thoroughly
    pleasant
    experiences of customer support I have ever come across -
    astounding!"
    Director - hedgeapple

  • Creating FLVs from Final Cut Pro

    I am trying to create an FLV from Final Cut Pro 5.1.4 on an
    Intel Mac. I have intalled the exporter plugin but it does not show
    up as an export option in FCP. Does anyone know why this is
    happening? Do they not yet have an FLV exporter for FInal Cut Pro
    5?
    I am stumped any help would be greatly appreciated.

    The only way I could make it work was to open FCP using
    Rosetta. This opens the program as if it were running on an older
    (non Intel) MAC. The plugin should then show up where it is
    supposed to. I guess they haven't come up with an Intel MAC plugin
    yet.
    To open as a Rossetta program control click on the FCP icon
    and click on Get Info. Then click on the Open using Rosetta
    box.

  • Random FLV from an SMIL Playlist

    I have been trying to find a way to randomly select an flv
    file to play in a 400x100 signature I have for some of my forums.
    There is no user control on this swf besides onRollOver to start
    the flv and onRollOut to pause it. What I want to achieve is
    whenever the swf is loaded that it will randomly select an flv from
    a playlist. From what I have read, SMIL is the best format to use
    with FLVPlayback. All I should be needing to do is typing in the
    SMIL URL into the concenturl inside the properties of the
    FLVPlayback. However, this doesnt work. I also haven't a clue how
    to actually randomize it. I could not find anything regarding the
    required code used in SMIL to randomize the playlist.
    Any help, hints and clues would be very appreciated as this
    has stumped me for quite some time.

    If I am listening to my Shuffle in random/shuffle
    order and come to a song from an album I want to hear
    more of, can I switch it to Playlist order and hear
    the rest of the songs in order of the playlist?
    I believe that's the way it's supposed to work... WHY not TRY it?

  • Can't export .flv from FCP!

    Hello, I am new to these forums and to flash so any help is appreciated.
    Here's my problem. I am trying to export a .flv from FCP. I know that I can't do it directly so I was able to get my hands on a copy of Flash CS4 from my boss. I installed it onto my computer but none of the export options have been updated to included the .flv option. I am pretty sure that I have to install a plugin or something but I am not sure what or where that info is?
    Also, what will yield a better looking video? Exporting from FCP to Compressor? or Exporting a QT reference video and using Adobe Media Encoder?
    Thanks for the help.

    Perhaps we're just arguing about semantics, but the fact is that it will play successfully in the flash viewer and I have been delivering h264 files to webdesigners for the last 6 months which are simply renamed with the flv extension. And if this is what the OP needs to do, it will work for him. Do some searching here and you'll see this is common practice. If you look at what formats the last few iterations of the flash player will accept, you'll see h264 is fine.

  • Streaming FLV from FMS to MediaDisplay

    Hello,
    Is it possible to stream an FLV from FMS to a MediaDisplay
    component for playback? I know this can be done with the Video
    Object and with the FLVPlayback component. I explored the
    MediaDisplay class and it looks like it has the capability but I
    cannot find documentation on how to implement it.
    Thank you.

    And one reason for writing your own is that many of the
    components are buggy, or "quirky" at best. For example, the
    FLVPlayback component had (may still have) a major bug where if you
    attempted to open a file that didn't exist (say it got deleted or
    you simply specified the wrong filename), then the component was
    essentially "dead". You could NOT request it to open a different
    file, even if you correctly specified the new file.
    I reported this to Macromedia and they acknowledged it was a
    bug. The only work around was to use the lower level "stream" and
    "connection" objects and write your own.
    The major problem with writing your own is that it requires
    LOTS of work. And while you do have complete control over
    everything, the underlying Macromedia API is very poor. If you are
    a purist engineer, you will cringe at the "hacks" you must do to
    make your own MediaPlayer "control". Fortunately, Macromedia makes
    the code to their player available to everyone (as part of the
    Flash 8 Pro install). And when you look at their code, you will see
    those hacks which will make you cringe as well...

  • How to play a FLV from a ByteArray to a Video object

    Hi,
    I wrote an application that loads a FLV into a ByteArray object at runtime. Now I want to play this FLV into a Video object. The problem I have is that the Video object won't accept anything else than a NetStream (or a Camera) as its source, and I can't find a way to set an in-memory FLV as a NetStream's source for playing. Adobe's Doc offers no help on the matter: does someone know how to proceed?
    Thanks,
    Simon

    Hi,
    As such there is no known method to do this. There is an open feature request in the Adobe bug tracking system for this
    http://bugs.adobe.com/jira/browse/FP-5
    With RTFMP (Real Time Flash Messaging Protocol) you can send data between flash applications via NetStream in a P2P mode. You could send your FLV binary data to another Flash Appilcation which actually decodes and renders it. Flip side would be that
    - you will require FMS on the sever side that sets up the P2P connection
    - RTFMP advices against sending large amounts of data via this approach as it is typically used in communication applications like chat, games etc
    cheers
    Sunil M

  • Delete flv from server

    How do I delete an flv file from a media server? I have an
    application in which registered users can store flv files. When a
    user is removed from the system, I want to remove their name from a
    database and all of their videos from the server. I've taken care
    of deleting the users from the database, but don't know how to get
    rid of their videos. I have all of the file names stored in the
    database, so thatis not a problem.
    Thanks!

    you can do it using a php file that delete the flv files as
    you delete other
    files, managing file sentences
    "SiHoop" <[email protected]> escribió
    en el mensaje
    news:fsdkuu$kao$[email protected]..
    > How do I delete an flv file from a media server? I have
    an application in
    > which
    > registered users can store flv files. When a user is
    removed from the
    > system, I
    > want to remove their name from a database and all of
    their videos from the
    > server. I've taken care of deleting the users from the
    database, but don't
    > know
    > how to get rid of their videos. I have all of the file
    names stored in the
    > database, so thatis not a problem.
    >
    > Thanks!
    >

  • Why I can no longer save videos (*.flv) from my cache folder?

    Well, I don't speak English.
    I'm sorry.
    Até o Firefox 3.6.16 eu conseguia salvar um vídeo (*.flv), do Youtube por exemplo, a partir da pasta cache. Por que não posso mais fazê-lo no Firefox 4.0?
    A partir disso, desinstalei o Firefox 4.0, voltei para o antigo. E quando não puder mais usar a versão 3.6.16 passarei a usar o IE, já que na versão 8.0.6001.18702 ainda consigo fazer o salvamento de vídeos.
    Grato pela atenção.
    Cordialmente,
    Elson

    it is way more convenient just to get the cached videos (not just from youtube) from the cache folder... no encoding/downloading/converting because the file is already there!
    I don't get it why Mozilla decided to hide the .flv files from cache... makes me want to change browser :(

  • Flash player will not play flvs from folder with name containing non-Roman Chars

    We're trying to play flash as part of a program that can be installed to locations including non-Roman chars (European, Arabic, Chinese, etc.).  When the installation path includes any non Roman chars, video will not play.  The non-roman chars are garbled when Flash tries to load the flvs. Correct non-Roman chars are: ńśćłł.  When loading video it gets translated to: ńśćłł
    We've found this happens whether we are trying to access the video from the xulrunner app or by taking the activities out and running them within an html frame.
    Audio on the other hand is no problem
    The path information for the xulrunner app from Process monitor is:
    Video not found from the video player.
    10:41:25.3337898    xulrunner.exe    2316    CreateFile    C:\Pro\ńśćłł\Flash dll Test\.shared\content\assets\video\VI-d9e37af511faa\Engplus1.flv    PATH NOT FOUND    Desired Access: Generic Read, Disposition: Open, Options: Sequential Access, Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, AllocationSize: n/a
    10:41:25.3339452    xulrunner.exe    2316    CreateFile    C:\Pro\ńśćłł\Flash dll Test\.shared\content\assets\video\VI-d9e37af511faa\Engplus1.flv    PATH NOT FOUND    Desired Access: Generic Read, Disposition: Open, Options: Sequential Access, Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a
    Audio found.
    10:41:59.7659648    xulrunner.exe    2316    ReadFile    C:\Pro\ńśćłł\Flash dll Test\.shared\content\assets\audio\AU-fa6ed5d31f577\LG0CD1Track06.mp3    SUCCESS    Offset: 0, Length: 4,096, Priority: Normal
    10:41:59.7660482    xulrunner.exe    2316    ReadFile    C:\Pro\ńśćłł\Flash dll Test\.shared\content\assets\audio\AU-fa6ed5d31f577\LG0CD1Track06.mp3    SUCCESS    Offset: 4,096, Length: 4,096
    Video not found from a flash interactive
    10:43:50.0804572    xulrunner.exe    2316    CreateFile    C:\Pro\ńśćłł\Flash dll Test\.shared\content\assets\flash_interactive\content\FL-123456780l0l\assets\video\video. flv    PATH NOT FOUND    Desired Access: Generic Read, Disposition: Open, Options: Sequential Access, Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, AllocationSize: n/a
    10:43:50.0806413    xulrunner.exe    2316    CreateFile    C:\Pro\ńśćłł\Flash dll Test\.shared\content\assets\flash_interactive\content\FL-123456780l0l\assets\video\video. flv    PATH NOT FOUND    Desired Access: Generic Read, Disposition: Open, Options: Sequential Access, Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a
    Audio found from a flash interactive
    10:43:50.1928413    xulrunner.exe    2316    ReadFile    C:\Pro\ńśćłł\Flash dll Test\.shared\content\assets\flash_interactive\content\FL-123456780l0l\assets\audio\journa list.mp3    SUCCESS    Offset: 0, Length: 4,096, Priority: Normal
    10:43:50.1929148    xulrunner.exe    2316    ReadFile    C:\Pro\ńśćłł\Flash dll Test\.shared\content\assets\flash_interactive\content\FL-123456780l0l\assets\audio\journa list.mp3    SUCCESS    Offset: 0, Length: 25,206, I/O Flags: Non-cached, Paging I/O, Synchronous Paging I/O, Priority: Normal

    Not exactly sure what you are doing, but it is obvious that some part of the program you are running does not support multibyte characters like Unicode.
    If you are developing that application, make sure it is Unicode enabled.  If it is Flash (or Flash Player) that doesn't understand it, then you may not be able to do anything about it.
    What I would try if I were to encounter the situation, I would try to use the DOS (8.3) path names, like C:\Documents and Settings would normally be C:\DOCUME~1 or C:\Documents and Settings\All Users would be C:\DOCUME~1\ALLUSE~1 etc.
    Use the DIR /X command to find out what the DOS folder names are.

  • Stop FLV from auto loading and playing clip

    I intend to have four video files on my site.
    As of now, when the user goes to the site, all four files
    play
    simultaneously. What I need is a way (code) to have each
    file not automatically start and
    allow the usr to click a play button. That button is already
    there and you click to activate it.
    Here's the code that automatically plays the clip:
    <a href="
    http://www.mysite.com"><object
    type="application/x-shockwave-flash" allowScriptAccess="never"
    allowNetworking="internal" height="345" width="460" align="middle"
    data="
    http://www.sourcefile.com/flashplayer/video.swf">
    <param name="allowScriptAccess" value="never" />
    <param name="allowNetworking" value="internal" />
    <param name="movie" value="
    http://www.sourcefile.com/flashplayer/video.swf"
    />
    <param name="quality" value="high" />
    <param name="bgcolor" value="&#035;ffffff" />
    <param name="menu" value="false" />
    <param name="flashvars"
    value="url=http://newmedia.sourcefile.com/movies/www.sourcefile.com-matrix_ping_pong.flv"
    />
    </object>
    <msprm name="allowScriptAccess" value="never" />
    <msprm name="allowNetworking" value="internal" />
    <msprm name="movie"place value="
    http://www.sourcefile.com/flashplayer/video.swf"
    />
    <msprm name="quality" value="high" />
    <msprm name="bgcolor" value="&#035;ffffff" />
    <msprm name="menu" value="false" />
    <msprm name="flashvars"
    value="url=http://newmedia.sourcefile.com/movies/www.sourcefile.com-matrix_ping_pong.flv"
    /><COLOR="&#035;FF0000"> Click on screen to Pause,
    from <BIG>myfile.com</BIG> </a>

    it happens anytime my laptop is open.  iTunes will just open and start playing.
    i do notice that it happens most often when i'm streaming content from another site, or from chromecast.

  • Flv from Connect shows no audio

    I am trying to convert recordings I have made from Adobe Connect. I click the Make Offline option and it converts the meeting into an ,flv. I then need to convert that .flv into either a .wmv or a .mp4. When I play back the .flv file on another application the audio and video are there and synchronized. However, when I load the file into AME, when I hover the over the filename for information, it suddnely shows the .flv has no audio, which I know is not true since I can hear it clearly playing through another application. Obviously, when I then try to convert it, it converts without audio. I did not touch the screen size at all when makeing the Adobe Connect offiline since I read somewhere that that can interfere with the audio encoding.
    What's the trick to getting this to work so I get both my audio and video into AME and thus into a .wmv or .mp4?

    I can confirm that FLV recordings from Connect aren't going to work. Our importer only accepts audio in an FLV if it is encoded as MP3. The audio in an FLV created by Connect uses a codec (NellyMoser) which isn't supported in AME. You have two potential workarounds though:
    Convert the FLV in a 3rd party app
    If you have access to the original Connect meeting, you can download an MP4 from the Connect admin interface instead of creating an FLV. The MP4 will be supported in AME.
    -Tom

  • Having issues with importing a FLV from Adobe Connect. Either the file is too large to import, the file corrupt or the sound will not play. In the Flash Pro 5.5 version it can only be viewed with sound but will not import so it cannot be converted, the ne

    Anyone have a clue how I can open or convert the Adobe Connect FLV file?

    I'm searching for an answer to almost the same exact problem, using almost the same exact hardware and software. Has an answer been found?
    The files that I'm trying to burn come from eMusic, and they are formatted mp3. Recently, (after the iTunes update to 9.2.3?,) they would not drag and drop from iTunes into Toast. From several different discussions I've tried working around this by dragging to the desktop first then dragging and dropping to Toast, going to Toast from a programmer's homemade help window, " iToons," and today, after talking with Apple support, going directly to Toast from my eMusic folder. Alas, all recordings do not perform like they use to. Sometimes they play and sometimes not. There is one I managed, that is listenable, but sometimes I have to put it in my car stereo over and over again as it gets ejected with an error code, sometimes, finally it takes it... Some of the recordings on other disks I've burned are not clean - they have white-noise sounds creeping in... I use to have none of these problems. One time as I was listening to a CD that managed to play, and it just stopped playing... Is there an answer out there to get back to how it use to be? Thanks for you help.

  • Q#2. FLV from localhost much worse than from remote

    I have a strange situation #2:
    I need to watch streaming video (or clips) from Windows
    machine where “Flash Media Server 2” is running.
    I grabbed an example from “Creating a Dynamic Playlist
    for Streaming Flash Video”
    http://www.macromedia.com/devnet/flash/articles/video_player.html
    unzipped and run original application , and everything was
    excellent!
    Then I redirected half of XML-file links from
    “rtmp://www.ifoxremote.com/videosource/fish.flv”
    for example,
    to my localhost :
    “rtmp://localhost/videosource/fish.flv” where
    “Flash Media Server 2” server is running and
    videosource is active.
    When I clicked on my local clip from the list nothing
    happened for a very looong time – about 5-10 min, and than
    clip finally started and run for about 10 second, and freezes
    again.
    However all remote clips are still running well.
    Ok, may be Server is slow? No, I’d used online
    somebody's video player from far-far-away, and surprisingly it
    worked excellent with both remote and my local “.flv”
    files.
    Original code was not touched at all.
    I tried to run from attached hml files and using Flash
    Professional 8 as well (all security issues were resolved on my
    business machine).
    Strangely replacement of FLVPlayer by "basic video object"
    works fine for any rtmp streams
    so everything is playing and is selectable.
    Problem is that I HAVE TO use FLVPlayer :-((
    Does anybody have any idea?

    Oh, I forgot to mention that the MAC is using CS5 and the PC that gives the better FLVs is using CS3.  So, the older version of the Media Encoder is doing the better job.

Maybe you are looking for

  • How to fix errors when trying to erase an old external drive?

    I have an external drive I used to use on my windows machine, which I wanted to erase and start using on my mac. When I plugged it in to my windows laptop, the drive was there and I could access files. I plugged it into my iMac and again I could see

  • Processor doesn't work correctly in saving stream to file

    hi, i write this code for saving in a file video and audio from a web cam, but when i do p.getDataOuput it returns always null. Why? help me   public void setupvideocapture()   c=getContentPane();   c.setLayout(new FlowLayout());   try     try {     

  • Black Bars in Encore

    Hi, so I have a video in premiere in 1440x1080 (set it up with square pixels) When it comes over to encore (720x480) I have thin black bars on the left and right.  Anyway to get rid of these?

  • ITunes music playing problems

    Hey I just downloaded and installed 7.1 iTunes and have played a few songs on it but now it won't play any songs at all. As I start up iTunes and when i play a song it says it playing but I cannot hear anything and the dial of the song indicator is n

  • Oracle Client License

    When a client license is purchased, does this allow the owner of the license to load and use any and all of the client code on the CD (including sqlplus, Net8, admin tools, etc)? In my case, my customer has purchased the 8.1.6 NT Client and has a dat