FLV video in AIR app

I have made an AIR application with Flash including SWF/FLV videos.
When I run the application, the videos aren't displayed.
Even so I have included the directory containing the videos in the export setup stuff.
And when I export in EXE format, videos are OK.
Have you ever encountered that issue ?
Thanks !

Nobody knows ?

Similar Messages

  • Local videos not playing in Flash/Dreamweaver Air app

    Hi there. I am having trouble playing local video from an Air app created from Dreamweaver. I have found many similar [posts, but most are about Flex and so on. I need some help getting this working form Flash and Dreamweaver.
    What I did wat create a jQuery site that uses Flash to play videos. It will be packaged as a desktop Air app using the Dreamweaver Air plugin.
    From advice that I got here (http://soenkerohde.com/2008/06/playing-local-files-with-air/)
    I started a new Air Project in Flash as suggested. Using an Air flash app makes more sence I guess, but I still need to imbed it into an HTML framework.
    Here is the code I am using:
    import flash.filesystem.File;
    var myVideo:Video = new Video(stage.stageWidth, stage.stageHeight);
    addChild(myVideo);
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    var client:Object = new Object();
    client.onMetaData = function(metadata:Object):void {
    trace(metadata.duration);
    ns.client = client;
    myVideo.attachNetStream(ns);
    var f:File = new File("Special_Assignment_Title.flv");
    ns.play(f.url);
    When I run this I get the following error:
    <blockquote cite="">ArgumentError: Error #2004: One of the parameters is invalid.
              at Error$/throwError()
              at flash.filesystem::File/set nativePath()
              at flash.filesystem::File()
              at videoPlayer_fla::MainTimeline/frame1()[videoPlayer_fla.MainTimeline::frame1:17]</blockquo te>
    Any suggestions on how to fix my problem? Any help would be greatly appreciated

    Instead of using the File object, try URLRequest instead:
                                            var urlReq:URLRequest = new URLRequest("Special_Assignment_Title.flv");
                                            ns.play(urlReq.url);
    Chris

  • Flv video not playing in AIR application

    Hi everybody,
    i'm building a tutorial with flash catalyst and since the 20 states limit i've split it up in different swf files that I import and show in different states.
    One of these swf (which i built with Catalyst as well) is supposed to play a flv video, and it actually plays it if i run it alone.
    The problem comes when i build the overall tutorial: it works perfectly with the "run project" command in Catalyst and with the run-local version but the video won't play if i try the AIR application.
    Does anyone have any suggestion?
    NB: the "asset" directory created with the AIR application installer does contain the flv file (i didn't have to put it there manually)
    Thanks in advance for your help,
    Giuseppe

    Hi Giuseppe,
    what I do is:
    1. create a file using Captivate
    2. i place a .flv video in this file
    3. save the file as .swf
    4. then i go to dreamweaver and put the swf on a html page.
    Now:
    when viewed in a browser, everything runs fine.
    when i pack this page into an air application (in dreamweaver) the video does not appear,
    instead I get this "Connection Error"
    I do not know a console or log file.
    However, I learned that there is a .xml file located in the same AIR folder that you publish in.
    In this .xml file there is a setting :transparency. in order to playt a .flv file this must not be be "transparent"!
    (i read this somewhere in the net)
    hope that helps
    I will talk to a professional programmer, if I have any news, i will let you know
    Claus

  • Needed. Android Air app to watch live FMS video stream.

    Does anyone have an Android Air app that can be used to watch a live video stream from Flash Media Server?
    I've been trying to get our live stream viewable on Android devices and can't find any solutions.
    Thanks,
    Dave

    Hey, I am having the same issue.  Did you find a solution?

  • FLV colorspace is different from Android to Android? Is FLV video HW accelerated?

    I'm not sure how long this problem has been there, maybe since November 2012 when we launched the app, or did it just appear. I can dig deeper if I get any replies. It seems some of our FLV videos, which have a person speaking on front of a white (as in #ffffff) background, end up having gray background in some devices. I had a lot of trouble originally getting the encoding process work and I'm not sure if I even understood it in the end.
    Videos have different color spaces, one having RGB values from 0-255 and others from 16-235 for example. The color space information is encoded in the video, which video playback software may use or not. In the end, videos look different with different playback software and hardware combinations.
    I've trusted FLV, because I thought Adobe AIR does everything by software and thus it should work (and has worked) exactly the same on all devices. But not any more. The only thing I can think of, is that some parts of video playback is HW accelerated. Is it possible that my Galaxy Tab 10.1, which shows all videos correctly, doesn't use HW to render video, whereas Galaxy Tab 3, which shows some videos incorrectly, uses HW? It may also be, that some of our videos indeed have wrong color space information in them, a bug in our encoding process. But I need to understand how AIR works a bit better to get the problem solved.
    We're using a complex command line script, involving Avisynth. The line I underlined may not have always contained ".ConvertToRGB().ConvertToYV12(matrix="pc.601")" part, which could be the problem, but not explain why this happens sometimes and on some devices.
    SET p1="%~dp0bin/x264.exe"
    SET p2="%~dp0bin/Bepipe/BePipe.exe"
    SET p3="%~dp0bin/faac.exe"
    SET p4="%~dp0bin/MP4Box-0.4.6-rev2735/MP4Box.exe"
    rem 2.1. Create Avisynth file
    echo QTInput("%~f1", color=2, audio=1).FieldDeinterlace().BilinearResize(740,410).Crop(10,5,-10,-5).ConvertToRGB().Conv ertToYV12(matrix="pc.601") > "%TMPFOLDER%/%~n1.avs"
    rem 2.2. Encode video
    %p1% --profile main --crf 10 --fps 25 -o "%TMPFOLDER%/%~n1.264" "%TMPFOLDER%/%~n1.avs"
    rem 2.3. Encode audio using Avisynth script
    %p2% --script "QTInput(\"%~f1\", color=2, audio=1).GetChannel(1, 2).Normalize(0.80)" | %p3% -b 256 -o "%TMPFOLDER%/%~n1.aac" -
    rem 2.4. Create mp4 file
    %p4% -fps 25 -add "%TMPFOLDER%/%~n1.264" -add "%TMPFOLDER%/%~n1.aac" "%~dp1%~n1.mp4" -new

    Hi BKSTER
    I just tested this and it seems to work fine. Here is what I
    did.
    1. Within my Captivate project, I inserted the Flash .FLV
    file.
    2. I browsed to a file on my hard drive and the File Link
    field listed the absolute path of C:\somefolder... blah blah blah.
    3. I then changed it to point explicitly at the server where
    I placed the .FLV. The link then looked like this:
    http://www.MySever.com/FileName.FLV.
    4. I dismissed the dialog and published the Captivate
    project.
    5. I uploaded the Captivate files to one server and the .FLV
    on the other.
    6. I ran the Captivate .HTM file and observed. The .FLV
    played as expected!
    Hope this helps... Rick

  • AIR app on Android for live chat crashes

    No matter which streaming server I use, I regularly have a crash. My scenario is:
    One side is on browser on PC, the other side is on android air app. Application is receiving a live stream and publishing a live stream at the same time, using two different Netstreams. Half of the time the application crashes. Crashes are rearly occuring during chat, but most of the time after a chat session is ended, and some time after netstreams are closed. There is no exceptions.
    If I run the same AIR application on Windows Desktop, no problem occurs.
    My application also records video and views recorded video. No problem occurs there. So, play("recorded.flv") and publish("someFLV", "record") has no problems.
    When it comes to live streaming, problem occurs.
    I use netstream.buffer = 0 for publishing live content, and netstream.buffer with its default value for playing live content.
    When chat ends, I detach camera and microphone from netstream, remove eventlisteners from netstream, remove camera from Video object, set microphone and camera to null.
    I tried closing and not closing netstreams, but nothing changed.
    I tried sound only and video only streams on both sides, but nothing changed.
    I compiled with AIR on Android 2.6 and 3.0, but nothing changed.
    I tried compiling with Flash Builder Burrito and Flash Builder 4.5, but nothing changed.
    I investigated Android adb logcats, but nothing useful is traced.
    Application just crashes without any message or warning.
    Is there a bug for playing and receiving live content at the same time on AIR on Android?

    For those who are interested in this crash, I'll give a few more experiments and hope for an answer.
    I investigated a few adb logcat deeper and noticed something about AIR runtime:
    1. The crash does not happen all time, but randomly. Followings will explain the reason.
    2. If I try sound-only streams, and if app crashes after disposing resources, logcat has messages related to Android microphone. After painful research, I found that logs mean: "someone requested microphone data, but it didn't consume microphone data fast enough."
    3. If I try video-only streams, and if app crashes after disposing resources, logcat has messages related to Android camera. After painful research, I found that logs mean: "someone requested camera data, but it didn't consume microphone data fast enough."
    So, maybe, only maybe, because AIR doesn not support multi-threading, when we dispose a microphone or a netstream, AIR stops receiving microphone data immediately, but until our calling function ends its execution, AIR does not notify Android OS about dispose. So, in Android's point of view, it sends microphone data but nobody consumes that data, thus nobody empties Android's buffer. Hence Android OS thinks that something is wrong and kills AIR application. That may explain why we get crash randomly: If Android's microphone, or camera, buffer is nearly empty when we dispose, buffer is not get filled until we fully dispose resources and everything is fine. But if the buffer is nearly full when we call dispose, buffer gets filled to its maximum until we finish our disposing and Android OS suspects about buffer and AIR app is killed with a signal 11, a segmentation fault.
    This is only a theory, and I found one evidence that supports the theory: Android developers are suggested not to use camera and microphone resources directly. Instead, they are advised to create another thread to consume camera and microphone and use that thread for their needs. That is impossible in AIR as AIR don't have multi-threading.
    Well, is there anybody now who has an idea?

  • Sound is lost in AIR app

    I've build an AIR app that shows and plays flash animations
    (swf) and flash video (flv) files.
    The app has 5 pages, the first has a TileList of swfs, and
    when one is selected, it switches to another state that holds a
    Image component that will play the chosen swf.
    The other four pages have a TileList of flv files, and when
    one is selected, it switches to another state that holds a
    VideoDisplay component that will play the chosen flv.
    You can switch from one page to the other with a
    TabNavigator.
    It all works fine, but after switching from one page to the
    other, from one flv to the other, suddenly the chosen flv is played
    without sound. And then the sound for the entire application is
    gone: even when you try to view an swf you've previously played
    with sound, the sound is gone!
    I've traced the volume settings and they stay the same
    whether the sound is audible or not.
    Any ideas on how to solve this problem or find out what makes
    the sound crash?

    Adobe Newsbot hopes that the following resources helps you.
    NewsBot is experimental and any feedback (reply to this post) on
    its utility will be appreciated:
    T (Flex 3):
    The skin for all the states of a Tab in a TabNavigator or
    TabBar. ...... Values for the direction property of the TileList
    component.
    Link:
    http://livedocs.adobe.com/flex/3/langref/all-index-T.html
    Peter deHaan: This Week in FlexExamples Archives:
    Blah, blah, blah, list of posts from the past week from my
    Flex examples blog, .... Creating a simple image gallery with the
    Flex TileList control
    Link:
    http://blogs.adobe.com/pdehaan/flex/this_week_in_flexexamples/
    All Classes (Flex 3):
    flash.filters, The BitmapFilter class is the base class for
    all image ...... listClasses, Values for the direction property of
    the TileList component.
    Link:
    http://livedocs.adobe.com/flex/3/langref/class-summary.html
    Peter deHaan: Flex Archives:
    In earlier Flex 3 betas, the FCK was included with the Flex
    SDK (see, 'Installing the Flex Component Kit for Flash CS3' for
    more details on installing the
    Link:
    http://blogs.adobe.com/pdehaan/flex/
    T Index (Flex 2.0.1 Language Reference):
    The TabNavigator container extends the ViewStack container by
    including a TabBar ..... Values for the direction property of the
    TileList component.
    Link:
    http://livedocs.adobe.com/flex/201/langref/all-index-T.html
    Peter deHaan: October 2007 Archives:
    Oct 1, 2007 ... Rebuilt entirely in Flex (Formerly was Flash
    MX), ... to link up the scroll bar with the image list control on
    the stage. various 'oohs' and
    Link:
    http://blogs.adobe.com/pdehaan/2007/10/
    Disclaimer: This response is generated automatically by the
    Adobe NewsBot based on Adobe
    Community
    Engine.

  • How do I play flv videos on iOS?

    I use netconnect and netstream in my actionscript 3 flash player for desktop FLV video playback. But now I would like to add support for Apple iPad.
    I recently upgraded to Flash Developer Pro CS6 as part of my master suite upgrade.  I was hoping for an HTML5 solution, but a large FLA conversion does not seem likely.
    So now I think I will have to port my FLA actionscript 3 code and the various assests for tooltips and buttons as an AIR application.
    Is publishing my SWF as an AIR app the correct way to support mobile iOS devices? Any example code solutions out there? Any gotchas?
    Here is a link to my flash player overview video that I call "LectureMaker's Cross-domain video platform" for reference:
    http://www.lecturemaker.com/products_services/cross-domain-video-platform/#video
    I see old references to this question, but I think it is time to revisit this problem with some fresh ideas hopefully....
    Best regards,
    Ron

    http://www.apple.com/iphone/specs.html
    Video formats supported: H.264 video up to 1080p, 30 frames per second, High Profile level 4.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format.

  • Play local FLV files in AIR

    Hello,
    Here is another question regarding FLV files: I'm developing my AIR application using Dreamweaver. My app will need to play some local FLV files wich will be delivered together with the application (they are not online).
    I'm using the built in feature of Dreamwever, wich creates a small SWF called "FLVPlayer_Progressive.swf" when you insert an FLV in the page. If I preview the page in Firefox, everything works fine and the video is played, but if I preview it in AIR, there is just a blank box where the video should be.
    All the files are in the site's root folder and are included in the "AIR application settings" (FLVPlayer_Progressive.swf, Clear_Skin_2.swf, video.flv, index.html and application.xml).
    I tryed importing the video in Flash (through progressive download) and then creating a small SWF wich would work only as a player but it didn't work either. The only way it worked was if I actually embedded the video in the SWF (so there is no external file), but then I have some audio synchronization problems and I loose quality...
    So the problem seems to be that AIR doesn't allow the SWF file to access external files, even if they are in the same folder. Is this a bug or is there a workaroud?
    Regards,
    Manuel

    Well, I just spent a few hour trying to make this work, and still nothing... but I think I know now what the problem is.
    As you said, after putting an absolute path in (I used "C:\video.flv" for testing) it worked fine! So what I did was create a code that would get the absolute path to the video located in the app-storage folder. I came up with the following:
    var flvFile = air.File.applicationStorageDirectory.resolvePath("data/flv/video.flv");
    var flvFilePath = flvFile.nativePath;
    This code returns flvFilePath as "C:\Documents and Settings\Manuel\Application Data\Test.08196269638DC859464A7A09369FF97BAC18DD7A.1\Local Store\data\flv\video.flv".
    I tried suplying this path to the player but it didn't work. So I inserted a new player in Dreamweaver using the path above and I got a message saying that the path can't have any spaces. This seems to be the cause of all my problems! I tried substituting the spaces with "%20" but it didn't work either.
    Do you have any ideas?

  • Need to 'launch' AIR app from SD card on Samsung Galaxy TABLET...

    April/28/11 at 3pm ET
    Hi to the group...
    Not 100% sure if this is proper forum to ask this, if anyone knows a better one please point me to it via ([email protected])
    Ok. Trying to see if my working .AIR app will run on my pals Samsung Tablet (before I buy one for myself)...
    Dropped the 'AIR' file onto the SD card (I can see it (the AIR file, size correct) via the fileBrowser app but clicking it does nothing.
    Of note AIR is installed in background of the device and it is running.
    Cant see/find an 'Adobe AIR launcher?' icon' anywhere (only see Adobe PDF browser).
    In all my web searching I see 10000 developer related tutorials re: creating an APK file / converting to APK file using Flash Professional ect.  Not what I am looking for...
    I think I am missing something very basic here is there a launcher for AIR apps on Android?
    TIA //GregH

    Hello
    Thank you for your post.
    You cannot throw directly from your external device, however you can once that file is transferred to internal memory.
    please review this guide for instructions on how.
    How to throw (send) music, video or picture files to a DNLA compatible device.
    https://us.en.kb.sony.com/app/answers/detail/a_id/34563/c/65,66/kw/34563

  • How do I use transparent=true in my Air app but still displaying swf ?

    How do I use transparent=true in my Air app but still displaying swf's files ?
    The thing is that I created a customized chrome, and looks nice when it is transparent cause seems to be floating, it works as a browser, but the problem is that when I navigate with it into a page wich contains embedded youtube videos, as in example, or any other swf file... it just doesn't show...
    Any help ? thanks in advance,

    Contact iTunes Support: http://www.apple.com/support/itunes/contact/

  • Is there no way to direct an AIR app's audio to different audio output devices?

    I'm needing to make a couple of our AIR apps select certain audio devices to send their audio output to, and last year, somebody mentioned possibly using native extensions to do this.  I had to start working on other things for a while, but I've come back to this (for the moment), and I've basically learned how to create native extensions.
    But so far, they don't seem to provide me any special access to anything going on under the hood of an AIR app.  When you stream live audio in through RTMP or RTMFP, the details of the audio are hidden from you.  There doesn't appear to be any place where you can actually access the audio bytes that are being sent over the wire.  You can specify a certain SoundTransform object for the NetStream to use, but that class is final and a vanilla Flash construct, so even if it may have a way to access the audio bytes, they're not acessible at all.
    It really looks like, when a NetStream object starts streaming in live audio, there is no way under the sun to access the audio bytes and direct them to a certain audio output device, with or without extensions.  Is this so?  It would be unfortunate if Adobe didn't allow this, even through native extensions.  Thanks.

    Couple quick thoughts..
    Limits are important. There's a large amount of work done to keep a clear separation between a users decision and a developers decision. For instance, you can't change a users default audio output because that clearly violates a users decision. That said, here's a whole mess of people debating the issue and actually eventually an undocumented COM API you can find that will actually let you do it in Vista/Win7 (but not 8), however don't expect that to be a 'good thing to do':
    http://social.microsoft.com/Forums/en-US/9ebd7ad6-a460-4a28-9de9-2af63fd4a13e/programatica lly-setting-the-default-playback-device-and-recording-device?forum=windowspro-audiodevelop ment
    You might want to get a beverage before reading that.
    Aside that, RTMP is secured, which is why you can't gain access to the bytes. The entire purpose of it is to assure media developers that their media can't easily be copied/stolen. Adobe doesn't document their method of securing streams but they do publish the RTMP specification. It's entirely possible for you to create your own RTMP server and encryption method while delivering a RTMP stream to custom client that you code yourself which can read the stream. Here's the spec:
    http://www.adobe.com/devnet/rtmp.html
    So I'd say it would be unfortunate if Adobe did give you access to the bytes. You might as well just hand users a mp3 of whatever song is playing because they would steal media left and right.
    That isn't to say you can't use a multitude of ways of getting the data going across the default output device. Plenty of apps (fraps/etc) capture video and mixed audio streams. But Adobe isn't going to give you the keys to the kingdom and let you decrypt their protected media protocol.

  • Viewing flash based website in HTML component of AIR APP

    Hello,  I've got an air app where I'm trying to use the Html component to load up a flash website.  Problem is that the website starts to load (I can see the preloader) and then the html component just goes blank.  I wrote the html page I'm trying to load so I went in and did some trimming of javascript stuff that I didn't really need that I thought might be causing the issue, but, no dice.  I'm also catch uncaughtScript errors from HTML, and there are none.  Anybody have any ideas?  The flash on the page that I'm loading only required flash player 8, so I'm thinking that shouldn't be an issue.  The page I'm trying to load is www.socialsaga.com/air_index.php
    Here is my little mxml file that won't properly display the site.
    <mx:Panel title="Video Storage" xmlns:mx="http://www.adobe.com/2006/mxml" enabled="true" visible="true" width="100%" height="650"> <mx:Script>      <![CDATA[           public function showDOM(ev:Event = null):void {                var indEv:Event = ev;           }                      public function uncaughtException(ev:Event = null):void {                var whatException:Event = ev;           }      ]]> </mx:Script>      <mx:HTML uncaughtScriptException="uncaughtException()" htmlDOMInitialize="showDOM()" width="100%" height="100%"  location="http://www.socialsaga.com/air_index.php" id="htmlOne"/> </mx:Panel>

    That was a waste of a couple hours.... The reason it was not redering is because I had a glow filter effect on a parent
    displayobject in the app... Really weird, cause html stuff would load, but flash would not show up.

  • Drag&Drop from Browser to AIR App

    Hi there,
    i wonder how it is possible to drag an element from a flash
    page in my browser to an air app on my desktop. i've seen the
    showcase
    of the nickelodeon jigsaw game on adobe.com, but the videos
    looks kind of post-processed.
    do you have any tipps on how to enable flash/AIR
    drag&drop trespassing the browser borders?

    Thanks for your answer.
    i already tried something like this, but i still have
    problems with getting the newly created entity dragged. how can I
    position the new entity from my air app directly under the mouse
    cursor? so far i didn't find any screen mouse position functions or
    properties. If I use a fullscreen, always on top window with mostly
    transparent parts, I can't capture the mouse position using
    MOUSE_MOVE all the time. Besides, how can I change the focus from
    my browser to my air app? I already tried calling
    nativeWindow.orderToFront() and nativeWindow.activate(), but the
    focus doesn't change when I click the entity in my flash page.
    Maybe somebody knows an answer to this ...

  • Adl quits unexpectedly - while debugging AIR app in Flash Builder 4.5

    the crash scenario:
         - i'm debugging an AIR app, things are running fine
         - my app is a media rotator and i've set it up to load in images, videos, sounds, and swfs (all good no problems there)
         - the original was built for AIR 2.6 and used the old halo components
          - however, now that i've done the conversions, targeted all spark and mx, and also setup my new AIR 3 SDK (following these instructions http://jeffwinder.blogspot.com/2011/09/installing-adobe-air-3-sdk-in-flash.html)
           when I go from loading a BitmapImage to loading a VideoDisplay element, the adl debugger simply crashes w/ 'adl quit unexpectedly' msg and a massive crash report.
         - it never did this in AIR 2.6 and Flex 4.0 SDK
         - i can load videos in sequence no problem, but the error only occurs when going from bitmap to video.
    Any ideas? It's frustrating because after the crash there's not even an error message in the Console.
    Also, is this really the best practice Adobe approved way of targeting AIR 3?
    http://jeffwinder.blogspot.com/2011/09/installing-adobe-air-3-sdk-in-flash.html
    Mike Delucchi

    For example in the runtimes\player\win folder I would suggest downloading and renaming...
    1. http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_ax_debug_32bit .exe ===> FlashPlayerDebugger.exe
    2. http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_plugin_debug_3 2bit.exe ===> InstallPlugin.exe
    3. http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_ax_debug_32bit .exe   ===> InstallAX.exe

Maybe you are looking for

  • Can I stop a Finder window from opening on a mounted volume?

    I work in an elementary school. One of the startup items on our kindergarten computers is a shared network applications volume. I have set the Finder preferences to not show connected servers or the hard drive on the desktop. However, when the comput

  • Calling sql loader in sqlplus

    Hi all, i am trying to load a file called text1.txt using sql loader. I am using sqlplus but i dont know how to call sql loader in sql plus. can someone provide syntax assumming data file is text1.txt and control file is txt.clt thanks

  • Transaction Variant for MM02

    Hi All, I have a requirement of creating Tailored version of MM02 . Requirement is explained below When we enter any Material in ZMM02 , it should display only Basic Data1 View hiding all other views. This is to restrict the users from updating any o

  • New computer with ipad2. old computer broken.how can i backup the data?

    old laptop broken. how can i input the data to new labtop with new itune?

  • Functionmodule: get includes from program

    Hello, I need a function module, the FM  supplies the Includes from this program . Does such a function module exist?