[AIR to iOS] Reading 'included' video file with NetStream, possible?

Hey all,
During publishing of the app you have a chance to include extra files. I'd like to include a f4v flash video that I'd like to play via the Video class. I'm having a bit of trouble figuring out how to get these two connected.
I can get a full reference to the file ala the usual and use .url or .nativePath:
var videoFile:File = File.applicationDirectory.resolvePath("some.f4v");
When I try to pass that into a NetStream such as:
var myVideo:Video = new Video();
addChild(myVideo);
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
myVideo.attachNetStream(ns);
ns.play(videoFile.url);
This never works for me. Nor using:
ns.play(videoFile.nativePath);
Anyone ever get a class like Loader or NetStream, etc to load included files in AIR for iOS or Android projects? See anything wrong here? Thanks for tips!

I got this to work (exactly as mentioned above) in Android but on iOS I get issues. I also need to use .url as .nativePath doesn't seem to be friendly.
The performance is another thing. Trying to play a 800x480 video on a HTC EVO 4G (single 1ghz snapdragon) was a painful 1-2fps mess. I encoded the video in f4v H.264 and also mp4 H.264. They were both 1-2FPS.
Clearly waiting for StageVideo in AIR3.0 is going to be the fix for this whole mess.
ns.play("videofile.f4v") ... I don't think that your first 3 lines are needed or appropriate here, are they?
You're in AIR for Android/iOS so you have the flash.filesystem package you should look at, specifically the File class. It helps AIR load files you package that are located in your applicationDirectory.

Similar Messages

  • I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    By doing a Google search. 

  • Trying to convert video files with an extension of IDI_DVD to digital files itunes and imovies can read can someone help me

    Can someone please tell me how I can convert video files with an extension of IDI_DVD to a file itunes and imovie can read? Thanks.

    Thanks for the reply, The files are on a DVD disk. I coverted my family VHS tapes to digital dvds using an HP Media Centre PC five or more years ago cant remember the program but if I get info on the disk ,on the Mac it tells me the extension is IDI_DVD.

  • How can i make a picture from a video file with final cut pro x?

    how can i make a picture from a video file with final cut pro x?

    Go to the "share" menu, select "save current frame"

  • Can I move ninety video files with their keyword tags from 'My Catalogue' into another catalogue?

    Can I move ninety video files with their keyword tags from 'My Catalogue' into a another catalogue?

    Nyinyikay a écrit:
    Can I move ninety video files with their keyword tags from 'My Catalogue' into a another catalogue?
    Two problems :
    1 - You can't merge catalogs in PSE
    2 - The usual workaround is to 'write metadata to files', export the files and 'get' them into the other catalog. But you can't write metadata to files with video files.
    The only thing you could do would be to duplicate the catalog and delete all pictures other than your ninety videos...

  • Sharing video file with non CC member

    Dear All,
    I have to share a large video file with a client who is NOT a creative cloud subscriber.  Can I do that?  How does the other person gain access to my creative cloud storage in order to download the video?  I am a Creative Cloud monthly subscriber.  Thanks
    Small Town Gal

    Thanks Nancy.
    Creative Cloud Connection
    The install for Creative Cloud Connection ("desktop sync") is available from the Creative Cloud Apps page at https://creative.adobe.com/apps or from the Adobe Application Manager. But it seems you already have it installed an just need to launch it.
    Which operating system are you on? On Windows you can launch Creative Cloud Connection from the Start Menu, and on Mac OS X from the Applications folder. Once launched it will re-open upon computer restart by default. You can change this if wanted via the Preferences.
    Your Online File Storage
    Just sign in with your Adobe ID at https://creative.adobe.com. You should see a Files menu in the top left of the web application.
    From the Actions menu you can choose Upload to upload files. You can also drag and drop upload files (but not folders) from the Windows Explorer / Mac OS X Finder to the browser.
    As a subscriber you should take advantage of the 20 GB storage provided for an individual subscription. There are some restrictions we have around certian file types, but we are working to improve that.

  • How do i make a still image (photo) fit the length of the music? I record music and want to put the tracks to a video file with a still image of my business logo in the background. Any help?

    How do I make a still image (photo) fit the length of the music? I record music and want to convert the tracks to a video file with a still image of my business logo in the background. On windows movie maker you could just select "fit to music" but this program isnt as easy to figure out! Any help?

    Double-click on the still image in the project timeline to open the Inspector. In the Inspector, adjust the duration by typing in a new duration to match the length of your music. I think the limit for a still image is 10 minutes. If you need more than this, simply drag the image into the timeline again then adjust its duration. The two images will play seamlessly (no gap will be visible).
    See this iMovie Help topic:
    http://help.apple.com/imovie/#mov3a883915
    You can achieve more precision when entering durations by changing a preference in the menu item iMovie Preferences. Check (tick) the preference for Show Time As HH:MM:SS:frames. This will enable you to enter the duration of stills down to the frame level, rather than full seconds (NTSC is 30 frames per second; PAL is 25 fps). When entering times, type a colon between each time segment, such as 2:50:15, which represents 2 minutes 50 seconds and 15 frames. For 5 seconds 20 frames you would enter 5:20 and so forth.
    Note that the music will only run to the length of the video in the timeline (in your case, the still images). So, after increasing the stills duration you will need to drag the end of the music track as far as required. The stills can be dragged inwards to reduce the duration if necessary.
    John
    Message was edited by: John Cogdell - added Note

  • Video file with Power Director of Cyberlink

    I work with the application ahead with the plugin MPEG4 (H.264). It works to create a video file with 320x240 and bitrate 1000kbit/s. Unfortunately the vidoefile doesn't run on my iPod, iTunes also. Are there any experiences where the problem could be?

    Hi Mr. Cutter,
    There is an app called "D-Subtitler for Mac" (as well as several others)
    which should allow you to extract the subtitles from a copy of the
    finished dvd and use them otherwise.
    It's been awhile since I had to do it but it is a fairly common need
    so the software exists.
    J>H<L

  • Where can I get complete INSTANCECONFIG file with all possible tags?

    Can any one provide me the complete instanceconfig file with all possible tags?
    Thanks,
    Zubair.

    Zubair- you should distribute points to the fellow OTNers who helped to answer your question (mark their answers as correct or helpful - just a forum etiquette)

  • How do you include extra files with an AIR for iOS Publish?

    I've seen people mention they can include .html, .js, etc files with their iOS for AIR publish when making an iOS application from flash.
    What I haven't seen is how these people include extra files (html, css, images, videos, etc) to be packaged into the IPA during publish.
    How is this accomplished?

    --deleted--
    Sorry, figured it out.

  • AIR for iOS, Getting HTML5 Video to Autoplay in a StageWebView?

    Hi all,
    The video performance I get from the built in FLV video is pretty poor. I'm considering using a StageWebView to display a HTML5 page with a standard <video> in it.
    The video shows up and (if I enable controls) can be played and it looks great (much better than FLV). The only issue is I cannot find a way to have the video autoplay once the StageWebView is loaded.
    I've set the <video .... autoplay> parameter. I've also tried using JavaScript to send a video.play() (after the window load event is complete and the DOM is ready).
    Has anyone figured this out?
    I can't wait for AIR3.0 so we can just use StageVideo.. But for now I'm using AIR2.7 via Flash CS5.5 publishing for an iPad2 via AIR for iOS.
    Thanks for any tips!

    This was a pretty old post. In the advent of StageVideo it doesn't really matter anymore. StageVideo is GPU and you can autoplay all you like.
    BTW there was an old project I'm unsure if it still exists but it was called StageWebViewBridge (SWVB) that reconnected AS3 and JS. You could call methods in JavaScript right from ActionScript the same way fscommand/externalInterface works. So you could force the video to start playing using that.

  • Anyone know how to encode  video files with 5.1 sound

    So now that TV officially accepts and handles 5.1 sound....
    Does anyone know how to encode their video files to include 5.1 audio?
    (assuming that ones video files contain audio that is 5.1 from the original source)

    Saw this somewhere:
    Ok, I managed to get Dolby Digital from a Video file. The steps are very easy:
    Create an mp4 from your DVD or other source with Handbrake or Visual Hub - Audio Settings are not important
    If you are ripping a DVD then open Mac the Ripper, choose Chapter extraction, open streams and select the Audio File you want to be extracted
    You will now need Quicktime Pro
    Open both files (the mp4 and the ac3) in Quicktime. Copy the ac3 stream and paste it to the mp4 file
    Save the file as a MOV movie
    Import it in iTunes
    That was it!!!
    I am now trying to figure out how to extract ac3 audio from mkv files...

  • Issue in reading a binary file, with 'Flatten to String' data.

    I'm facing issue while reading a binary file (created using LabVIEW).
    I've mentioned everything (issue and method to reproduce it) within the attached VI.
    Same vi is attached in 2012 and 8.0 versions.
    Regards
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.
    Solved!
    Go to Solution.
    Attachments:
    Issue in VI.vi ‏26 KB
    Issue in VI (Version 8.0).vi ‏43 KB

    moderator1983 wrote:
    crossrulz wrote:
    The reading of a string from a binary file stops at a NULL character (0x00).  When the first character is 0x00, you are just reading the one character.  I would suggest writing to a byte array since you are doing the inverting.  And then you can read as a byte array.
    crossrulz:
    U rocks..!!
    you have hit bull's eye...!!
    After playing around a little more, I think I might have misinformed you a little.  If you explicitly tell it a string, it looks for the string length at the very beginning and reads that length of bytes as a string.  It appears that if you implicitly tell it to read a string (not wire the data type) it reads all of the bytes directly, including the length of string you wrote.
    Regardless, my advice is the same.  You should just write and read using byte array.  It is less conversions if you are performing your "encryption".
    EDIT:  Here's a snippet of the VI I was playing with to figure this out.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    String Binary File.png ‏12 KB

  • Adobe AIR 4 Not reading a XML file larger than 10MB

    I have an application where the XML file could be over 10MB in size. I am using XMLHttpRequest to read the file in. However, on Air 4, it results in null when the file is greater than 10MB in size. This was working until I updated to AIR 4. I can go back to a previous version of AIR and the loading of large file works.
    xml = new XMLHttpRequest( );
    xml.onreadystatechange = function( ){
        if( xml.readyState == 4 && xml.status == 200){
      b[language] = xml.responseXML.documentElement; //Results in NULL when file size is greater than 10MB
            var tempTxt = "Loaded Database";
    xml.open( "GET", file.url, false);
    xml.send( null );
    Why AIR limited the file size and any work around for this? The Request processes fine and readyState will become 4. However, xml.responseXML.documentElement will respond with a NULL.
    Thank you
    Binu
    www.verseview.info

    It's difficult to tell what it is, it looks like a binary
    pipe symbol but I can copy it from TextPad for example. Some of the
    characters following it cannot be copied from TextPad which I
    assume is because it's null. I can read the whole file in C#/.Net
    and assign it to a string variable without any problems but perhaps
    Air is somewhat limited to binary content.

  • Import movie from iPhone gives "An unknown error has occurred while reading the video file. Connecting to Dynamic Link server failed. (1)

    Tried previous suggestions about purging the Camera Raw Cache and I raised it to 20.0 GB.
    Still lightroom fails to read most of the videos that I create on my iPhone 6 plus.
    Aperture, iMovie, and Image Capture have no problem with these files.
    Respectfully,
    Kay Fisher

    This is an iPhoto problem. It is, IMHO, one of the worst photo/video programs ever thought up by any company.
    I suggest you find your original video files, which won't contain any edits and or adjustment you have made in iPhoto, and copy them to some other folder on your drive that you create and then import them to LR.
    Usually iPhoto stores all original image and video files in a folder called Masters buried deep inside the iPhoto Photolibrary package folder. Which makes almost impossible for any normal computer user to get to.
    Next time you are in the market for a new computer think long and hard before you drink the Apple Mac Cool-aid.

Maybe you are looking for

  • Upgrade Default Address Lists from LDAP

    Hello, I migrated from MS Exchange 2003 to 2010 some time back. Currently trying to upgrade the address lists as per the guide here: http://technet.microsoft.com/en-us/library/dd351283.aspx When I  run Set-GlobalAddressList "Default Global Address Li

  • EMail problem since Mavericks

    Heretofore I was able to just enter the firsl letter or two from my contacts list in order to have the address put on the email I will be sending. Now this does not work any more and I have to copy each address and paste it on the email manually. Is

  • DMS Profile not selecting proper storage category

    We have defined two different profiles in DMS with two different security roles with the applications for each profile pointing to different storage categories.  If a user has only one of the security roles when they store an original it automaticall

  • LR 2.1 and Camera Raw 5

    I have LR 2.1, CS3, Elements 5 installed on Windows XP. I understand that ACR 5 is not compatible with CS3 and Elements 5. However, I thought that LR 2 would work with ACR 5. Whenever I look on the LR 2 About screen it says that Camera Raw 4.6 is ins

  • How can i upload files in servlets and also using jsp

    means that uploading files(.doc) or any files by using servlets and jsps