Local video file (.mp4) file not play in MAC OS using netstream (NetStream.Play.StreamNotFound)

I have developed adobe air application using adobe flash builder 4.6 for Windows and Mac OS. Application allow user to download movie (.mp4) file in his system at specific location for play  without live streaming. File downloading correctly in both OS and also file playing from download location in Window application correctly. but when start playing file Mac OS application not start playing.
When start playing in mac OS, NetStatusEvent.Net_Status event return "NetStream.Play.StreamNotFound" event info code. I have found one solution for mac OS is use colon notation instead of slash notation. I have tried it but it also not working.
Code:
_nc = new NetConnection();
_nc.addEventListener(NetStatusEvent.Net_Status, connectionHandler);
_nc.connect(null);
private function connectionHandler(event:NetStatusEvent):void
     trace("Connection to server: " + event.info.code);
     /// Get "NetStream.Play.StreamNotFound" code in mac OS.    
slash notation path: /Users/mayur/Downloads/myvideo.mp4
Colon notation path: I have tried following colon notation path
1) :Users:mayur:Downloads:myvideo.mp4
2) Users:mayur:Downloads:myvideo.mp4
3) Macintosh HD:Users:mayur:Downloads:myvideo.mp4 (Macintosh HD - Drive name)
Please help me to solve this issue.

Finally I found a solution...
The problem is that AIR on Android stores the application data in the protected directory /data/... which is not accessible by StageWebView (or any browser app).
So you have to copy the video file you want to play to a temporary pubic directory on the sd-card for example and use this in StageWebView.
You also have to create a temporary html-page with the video-tag and load this page in StageWebView (not the string) because external resources are only loaded in StageWebView when using an URL.
On iOS the application storage directory is readable for StageWebView so you don't have to do this step.
Hope this helps

Similar Messages

  • Problems exporting and playback the MPEG2-DVD videos, from .MP4 file!

    I have PremiereProCS4 v.4.2.1 installed on this PC:
    OS:WindowsXPProx64Bit; CPU:IntelCore2Quad Q9650; RAM:4GB DDR2 PC2-6400 Kingston; HDD:3x500GB WestrnDigital Caviar Green; VGA: Sparkle GeForce 9400GT 512MB.
    I have downloaded an AVCHD file .MTS 1920x1080p 25p, made by Canon HF100 AVCHD camcorder, from this source (.rar file):
    http://www.megaupload.com/?d=RWR5MNYHhttp://www.megaupload.com/?d=B9ZDX2RZ
    The videos in question called: "25pf_1.25_f1.8.MTS" playback and export from Premiere as MPEG2-DVD very well.
    I playbacked it on Premiere on the second Monitor as "OutputDevice". All Ok.
    I playbacked also the DVD made with EncoreCS4, on the external DVD set-top-box-player. All OK.
    I downloaded also another clip 1080p 25p, converted as .mp4, from the same author, imported then in Premiere with Preset "XDCAM EX 1080p 25p" (470MB) :
    http://www.megaupload.com/?d=B9ZDX2RZ
    No problems with playback.
    Exported as MPEG2-DVD PAL "Lower Field First".
    Opened in NeroShowTime Player: the video have a serious interruptions of the playback, some moments plays back-and-forward, and it isn't fluid at all!
    I tried to create a DVD with EncoreCS4 and played it with DVD Player set-top-box, and the result is bad, and is the same as the playback on my PC with NeroShowTime Player. It present the back-and-forwars interruptions.
    I tried also to create an AVCHD Project 1080p 25p and import the .MP4 file, but the problem persists !
    After exporting them, and played-back on NeroShowTime and on Set-Top-Box Player, the video have strange behavior, and plays back-and-forward!
    1) What Preset in Premiere should I use to editing, for this .MP4 file format, (filmed with Canon HF100 AVCHD and converted from original .MTS format to .MP4 format)?
    2) Is this a transcoding problem?
    3) Is this an exporting MPEG2-DVD PAL field-order issue?
    This is my bad exported MPEG2-DVD converted file, available for downloading:
    http://rapidshare.com/files/337858976/Canon_HF100_1920x1080p_25p_01_AVCHD25p.m2v.html
    Strange! With .MTS files I haven't any exporting problems at all!
    Please response me hurry!
    Many Thanks!
    Horsepower.

    OK! Sanyo use a bad format.
    But about JVC GY-HM100 Professional:
    I know this model very well!
    It records to .MP4 XDCAM_EX at the same manner of Professionals Sony Camcorder such this: Sony XDCAM_EX model "PMW-EX1" price €6.478,80.
    This JVC GY-HM100 camcorder is not tha same as Consumer JVC camcorders.
    It doesn't record MOD or TOD files.
    It records .MP4 files editables in Premiere with XDCAM_EX "Preset"!
    See those details:
    http://pro.jvc.com/pro/attributes/HDTV/manual/editing1.html
    http://pro.jvc.com/pro/hm100/content.jsp?model_id=MDL101845&attributeId=2&feature_id=02
    See also this page:
    http://pro.jvc.com/pro/hm100/content.jsp?model_id=MDL101845&attributeId=12&feature_id=12
    The first Brochure called "A Guide to the Most Efficient Workflow with ProHD
    (6 pg brochure)" explain very well the .MP4 - XDCAM_EX format and the Editing process that should be with Adobe PremiereProCS4.
    I have inspected the downloaded .mp4 file in question, and GSPOT v.2.70a reading this:
    -CONTAINER:
         isom: MP4  Base Media v1 [IS0 14496-12:2003]
    -VIDEO:
         CODEC:avc1
         NAME: H.264/MPEG-4 AVC
    -AUDIO:
          CODEC: mp4a: MPEG-4 AAC LC
    1c) Is this an AVCHD video codec?

  • How to det codec for FLash 8 Video Encoder - MP4 files

    HI! How can I get Flash 8 video encoder to accept mp4 files?
    when I try open
    it I receive an error message.
    "You Won't be able to encode this file. Your computer doesn't
    have the
    necessary codec or the file is corrupt"
    Do I find this codec at Macromedia or somewhere else?
    Paul

    Paul wrote:
    > HI! How can I get Flash 8 video encoder to accept mp4
    files? when I try
    > open it I receive an error message.
    >
    > "You Won't be able to encode this file. Your computer
    doesn't have the
    > necessary codec or the file is corrupt"
    >
    > Do I find this codec at Macromedia or somewhere else?
    >
    >
    > Paul
    HI! I got it. I dn the codec pack
    (Cole2k.Media.-.Codec.Pack.V6.0.7.-Standard).

  • File Load is not working on Mac but Windows

    Hi i'm developing an app which simply load files (images and sounds) and uses binary data. Application is working fine on Windows, but it raises error on Mac.
    Now i dont own Mac so i cant debug it, I also googled but couldnt find anything close to it.
    Please advise
    Thanks
    PS: Its an AIR APP
    Here are snippets to understand the code
    //browse file
    _loadFile.addEventListener(Event.SELECT, selectHandler);
    _loadFile.browseForOpen(title, typeFilter);
    //selectHandler
    _loadFile.addEventListener(Event.COMPLETE, loadCompleteHandler);
    _loadFile.load();
    //loadCompleteHandler
    //works on windows but TypeError on Mac
    switch(file.type.toLowerCase()){
      case ".mp3":
      var sound:Sound = new Sound();
      sound.loadCompressedDataFromByteArray(file.data, file.data.length);
      fileHandler(sound);
      break;
      case ".jpg":
      case ".png":
      case ".jpeg":
      case ".gif":
       loader = new Loader();
      loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadBytesHandler);
      loader.loadBytes(file.data);
      break;
    //loadBytesHandler
    fileHandler(loader.content);

    I just tried a simple File load test and the type property always traces out null. According to the ASDocs, the type property: "On the Macintosh, this property is the four-character file type, which is only used in Mac OS versions prior to Mac OS X. If the FileReference object was not populated, a call to get the value of this property returns null.".
    Further reading into the FileReference docs, all properties are supposed to be populated once the complete event fires and that is when I ran a trace of the File.type.
    Since the is an AIR app, you might want to consider using the extension property instead to know the file extension to run a switch case against. The ASDocs also say that in reference to Mac's: "You should consider the creator and type properties to be considered deprecated. They apply to older versions of Mac OS.".
    If you choose to use the extension property instead, you don't have to include the "." in your switch statement. The ASDocs do say that "If there is no dot in the filename, the extension is null." So, you may want to run some tests on Windows to make sure that "extension" works. On Mac OS, pretty much every user friendly file (image, movie, document, etc) has a file extension so you shouldn't have any concern of extension returning null on Mac OS.
    You probably got the TypeError on Mac OS because you were trying to run a String method on a null object at the start of the switch statement.
    FileReference.extension

  • Can load text file in Windows - not on the Mac?

    I have some code that loads a text file into an array that works fine in windows, but fails on the Mac  I'm sure it's a path issue but I've spent several hours trying to work this out.
    Windows code works fine:
        var textPath =  "c:\\temp\\textfile.txt";
         try {
            var myFile = File(textPath);
            var mymenuItems=[];
            var menuItems=[];
            myFile.open('r');
            while(!myFile.eof){
                mymenuItems.push(myFile.readln());
            myFile.close();
    Mac Code Fails
      var textPath = '/User/wizbowes/Desktop/text.txt';
         try {
            var myFile = new File(textPath);  //tried both with and without new - same effect
            var mymenuItems=[];
            var menuItems=[];
           myFile.open('r');
       while(!myFile.eof){
                mymenuItems.push(myFile.readln());
    When debugging on the mac myFile.eof shows true straight after I open the file and therefore never enters the loop to populate the array
    What on earth am I doing wrong?

    1. For files on your desktop you can use a shortcut.
    var textPath = '~/Desktop/text.txt';
    2. Make sure the file object is valid before you open for reading. The new keyword is not really needed it just make clear in the code that you are creating a new file object. However just creating a file object does not means that the file already exists. You could have an invalid path.
    try {
            var myFile = new File(textPath);
            if(myFile.exists){
               // rest of the code
    3. If you don't want to check that the file exists you could check the return of the file.open() method. It should return true if it opened the file when opening an existing file.
    var openSuccess = myFile.open('r');
    if(openSuccess){
        // some code that reads from the file here

  • Mac OS 9 AFP file sharing volume not visible under Mac OS 10.5

    An old blue-white PowerMac G3 running Mac OS 9.2.2 with file sharing on is not visible on the network for a MacBook Pro running Mac OS X 10.5.5. – However, a PowerBook G4 with Mac OS X 10.4.11 perfectly shows the G3.
    Connecting to the G3 works on the new MacBook Pro with OS X 10.5 if I use the server's IP-address (afp://xxx.xxx.xxx.xxx) but does not work if I use the server's name (afp://<servername>).
    All other shares on the network are visible for both the MacBook Pro running OS X 10.5 and the PowerBook G4 running OS X 10.4.
    Why does the MacBook Pro with Mac OS X 10.5.5 not show the G3?
    Why can't I connect to the G3 using its AFP name?

    I think this is because there is no AppleTalk on Leopard.
    Ah, I stand corrected........
    Go to SystemPreferences > Network
    Select your connection in the left column. Advanced > AppleTalk
    Enable AppleTalk for your connection.
    sp
    Message was edited by: brainslice

  • CS4 files from pc not saving on Mac CS5

    I did some illustrations in CS4 (v11.0.2) on a PC and now the client is having a problem working with them in CS5 on his Mac. I did seven illustrations for a book our church is publishing. I provided the illustrations to the graphic designer who is using CS5 and Indesign. He transferred the illustrations to his computer and opened them in CS5 but after making adjustments to them when he attempts to save them he gets a box saying;
    “the file is locked or you don't have access privileges to the file or folder”
    He also tried saving them BEFORE he made adjustments and has the same problem.
    Upon hitting “command i” it shows the file is NOT locked. He tried saving them to PSD, EPS and Layered Tifs and got the same message as above.
    I went back to my studio and re-saved the files making sure “maximum compatibility” was checked. Then I saved them again as layered tifs in the Mac byte order. I even took them to an older computer and saved them using Photoshop 7. Still, the designer gets the same message and is unable to save them.
    I'm an illustrator and have worked exclusively digitally for ten years and have never had this problem before. The files are layered files and are about 25mb each. There are two things that are different about these files than other files I've created in the past.
    I changed the color profile to Adobe RGB (1998). This was so the image looked the same in CS4 and in Painter 11. I use both programs to do my painting. Again, this has never caused a problem and I always do the final save in CS4.
    I deleted the “background” layer before saving the file. This was because the client wanted a “ragged” edge to the illustration and wanted to drop the image onto a toned background paper.
    I don't see why these things would effect the ability to save the file in CS5, but maybe someone else does.
    I'd really appreciate any help on this. The deadline date when the book has to go to the publisher is very close.
    pg

    I just got a call from the designer. He moved the files into a different folder (he had dragged the folder containing the files directly from my disk and flash drive) and they save properly now. Apparently the permissions problem was originating from the folder they were in.
    pg

  • How to make my files readable but not copyable on Mac OS X?

    Hi there,
    We've got a valuable picture library forour business on our Macs. Computers are public, files are JPG pictures.
    Is there any way to protect these files from being copied but simultaneously being seen by the users.
    Thanks,
    Alex

    No. Any method available which allows people to view them also allows them to copy the files. You may want to watermark them instead.
    (61792)

  • Itunes videos skip and are not synced with sound. Using windows 7.

    Videos are not synced with sound and skip in itunes only, using windows 7. No other video issues, only in itunes.

    It's alright, I don't have a Mac so I get confused too. The option key should be somewhere to the left of the space bar and look like it is trying to represent railway points.
    I don't know how migration assistant works, but presumably it has dumped an iTunes folder somewhere on the Mac. Inside that should be a file called iTunes Library.itl that is the core of the library. Unfortunately iTunes "thinks different" so we can't just double click the file to open it, that opens whatever the "current" library is instead, so you'll need to hold down option (shift for Windows) to get a dialog to choose or create a library. Click choose and browse to the relevant file.
    If iTunes can't play your music at this point and gives the exclamation mark of doom then we need to go back to the Windows 7 library, tweak it up for easy export then bring it over again. Overview here. Customized instructions on request.
    tt2

  • Website mp3 not playing WinXP 64-bit using Firefox but plays using IE

    I have a website with embedded mp3 soundtracks that work fine when using IE but not with Firefox (latest version.11Beta). Have tried all the suggested plug-ins to no avail. Running WinXP 64-bit
    2003 SP2. Video & soundtrack works fine on other websites such as u-tube.

    That's because Firefox doesn't support playing mp3 files. It will play them if they are contained in a Flash audio or video player (like youtube) but not by themselves. If you are using the <audio> html element you can define multiple source files. Here are some instructions from our developer website - https://developer.mozilla.org/en/Using_HTML5_audio_and_video You can create an Ogg audio file that will work with Firefox by using a program like Audacity - http://audacity.sourceforge.net/

  • File sharing problem between XP and MAC when using Airport Extreme

    I recently got a Time Machine to replace my flaky Linksys Wireless N router and since I've done that I can't connect to my PC running Windows XP and was able to before. I have made sure my firewall settings are correct and have gone through many different settings on Time Machine but still no luck.
    I have my PC directly connected via ethernet to the Time Machine and my Mac is wireless. I'm able to ping the IP address of the Mac from my PC but can't ping in the opposite way.
    Any suggestions would be greatly appreciated.
    Thanks!!

    btw the error is
    "Attempting to copy to the disk "Guy_s iPod" failed. The file name was invalid."
    and then it says
    "The iPod "Guy's iPod II" cannot be updated. The disk could not be read or written to."

  • Export video from multiple iOS devices to a Mac without using iTunes

    I am tasked with importing video files from multiple iPads to a single Mac to aggregate for editing.
    The file sizes on each device are many gigs large. I don't want to use iMovie on the Mac or iOS.
    I don't want to use iTunes (since there are many iPads not owned by me to import video from).
    Suggestions?
    Paul
    Chicago

    iTunes. Other than that there is no direct method. However, do try the iPhone forums.

  • Airport Time capsule not found on mac when using AirPort Utility

    I just purchased an AirPort Time Capsule to back up my files from my Mac.  I have been able to set up the wireless portion, but when trying to access the backup portion through TimeMachine I cannot select my base.  I am able to see it on my iPhone, but not on Mac.  I have updated everything.  Is this a known problem with the transition to Yosemite?  Any suggestions?

    Dead spot on.. Yosemite is pain plus..
    I recommend you start over in your TC setup..
    Factory reset universal
    Power off the TC.. ie pull the power cord or power off at the wall.. wait 10sec.. hold in the reset button.. be gentle.. power on again still holding in reset.. and keep holding it in for another 10sec. You may need some help as it is hard to both hold in reset and apply power. It will show success by rapidly blinking the front led. Release the reset.. and wait a couple of min for the TC to reset and come back with factory settings. If the front LED doesn’t blink rapidly you missed it and simply try again. The reset is fairly fragile in these.. press it so you feel it just click and no more.. I have seen people bend the lever or even break it. I use a toothpick as tool.
    N.B. None of your files on the hard disk of the TC are deleted.. this simply clears out the router settings of the TC.
    Setup the TC again.
    ie Start from a factory reset. No files are lost on the hard disk doing this.
    Then redo the setup from the computer with Yosemite.
    1. Use very short names.. NOT APPLE RECOMMENDED names. No spaces and pure alphanumerics.
    eg TCgen5 and TCwifi for basestation and wireless respectively.
    Even better if the issue is more wireless use TC24ghz and TC5ghz with fixed channels as this also seems to help stop the nonsense. But this can be tried in the second round.
    2. Use all passwords that also comply but can be a bit longer. ie 8-20 characters mixed case and numbers.. no non-alphanumerics.
    3. Ensure the TC always takes the same IP address.. you will need to do this on the main router using dhcp reservation.. or a bit more complex setup using static IP in the TC. But this is important.. having IP drift all over the place when Yosemite cannot remember its own name for 5 min after a reboot makes for poor networking. If the TC is main router it will not be an issue.
    4. Check your share name on the computer is not changing.. make sure it also complies with the above.. short no spaces and pure alphanumeric.. but this change will mess up your TM backup.. so be prepared to do a new full backup. Sorry.. keep this one for second round if you want to avoid a new backup.
    5. Mount the TC disk in the computer manually.
    In Finder, Go, Connect to server from the top menu,
    Type in SMB://192.168.0.254 (or whatever the TC ip is which you have now made static. As a router by default it is 10.0.1.1 and I encourage people to stick with that unless you know what you are doing).
    You can use name.. SMB://TCgen5.local where you replace TCgen5 with your TC name.. local is the default domain of the TC and doesn't change.
    However names are not so easy as IP address.. nor as reliable. At least not in Yosemite they aren't. The domain can also be an issue if you are not plugged or wireless directly to the TC.
    6. Make sure IPv6 is set to link-local only in the computer. For example wireless open the network preferences, wireless and advanced / TCP/IP.. and fix the IPv6. to link-local only.
    There is a lot more jiggery pokery you can try but the above is a good start.. if you find it still unreliable.. don't be surprised.
    You might need to do some more work on the laptop itself. eg Reset the PRAM.. has helped some people. Clean install of the OS is also helpful if you upgrade installed.
    Tell us how you go.

  • FileLock is not working in Mac OS  - Used in Javafx application

    In my application, there is pause & resume functionality on the file download.
    To achieve this, we used java.nio.channels.FileLock to lock the file.
    It is working fine in Windows, not in Macintosh OS 10.8.
    We are using JRE 1.7 u 15 to run the application.
    Here is the code I am using to lock a file which is working fine in Windows, but not in Macintosh
    FileOutputStream file = null;
    FileChannel dbFc = null;
    FileLock dbFl = null;
    file = new FileOutputStream( new File(sFilePath));
    dbFc = file.getChannel();
    dbFl = dbFc.lock();
    file.write(buffer,0,read);
    When I am applying lock on the FileChannel, it is not able to lock on Mac OS systems.
    Is there any alternate I can use instead of FileLock .
    All this logic is part of JavaFx application which will run from user's machine
    Please suggest

    Not really a JavaFX question, but a quick google search indicates that on some Apple OS version, lock is not supported.

  • Canon scanner not communicating with mac min using OS 10.5.8

    I am using a mac mini with OS 10.5.8.  I am trying to scan in papers with a Canon Canoscan N1240U.  This is the message I am receiving.
         Cannot communicate with canner.
         Cable may be disconnected.   
         Check status.   
         Scanner driver will be closed.
    I have used this scanner before with this mac mini.  Any suggestions why this is happening and to correct the issue.

    I think you should, if you can, try the scanner on a different computer to rule out a problem with the scanner or it's usb cable. Then, if you have the software install disk for the scanner run it. Or download and install a new driver or software. Use the finder to find and delete any files for the scanner and then reinstall them. set the scanner up in systempreferences as if it's a newly installed item.

Maybe you are looking for

  • Cannot see any actions while creating a new function in CC5.2

    Hi All, We recently installed  GRC Access Control 5.2.At the backend we are using SAP R/3 4.7.The system has been installed and I am currently trying to configure it.I am trying to create a new function.After chosing a function ID and description whe

  • Lightroom 1.1 vs Nikon punchy pictures

    Hey, there are some posts on this forum about the fact that Lightroom (RAW to JPEG) could not deliver pictures as punchy as the one produced embedded by a D50 (for example) when shooting in JPEG. Many presets are available out there, trying to match

  • Apple G4 PowerBook Aluminium m880 startup intermittent.

    Hi all, I have an old PowerBook with no battery installed. It has been fine up until last week when it would not respond to the power button. Last night it powered up, but shut down after 15 mins. When I say shut down, it was like pulling the power c

  • Can't seem to display the Gui

    I feel dumb but I can't seem to get my Gui to display. I tried everything and this time searched a basic Gui program on the internet. When I compiled it, it did not show up as a separate window as the tutorial said it would. What could possibly be th

  • How do I update CS6 to camera raw plugin version 8.3

    I am exporting from Lightroom 5 to CS6 and it says I need this plugin.  I updated CS6 but still get the message