AIR strangeness with playing video

I've come across something strange with playing local video
with AIR 1.1 (FlashCS3, Windows XP)
If I use this code to play a video
// AS3
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("test1.flv");
If works fine if I compile for Flash 9 but if I compile for
AIR I get a error:
"Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095:
flash.net.NetStream was unable to invoke callback onMetaData.
error=ReferenceError: Error #1069: Property onMetaData not found on
flash.net.NetStream and there is no default value."
Adding a meta data handler like this fixes it:
// AS3
var customClient:Object = new Object();
customClient.onMetaData = metaDataHandler;
var myVideo:Video = new Video();
addChild(myVideo);
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.client = customClient;
myVideo.attachNetStream(ns);
ns.play("cell1.flv");
function metaDataHandler(infoObject:Object):void {
trace("metaData");
}

Ok, I've found more playing video in AIR strangeness: (Flash
CS3, Windows XP)
Run this code and make sure that "flawed.flv" is a file which
has a .flv ending but isn't actually in flv format
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
var vid:Video = new Video(320, 240);
this.addChild(vid);
vid.attachNetStream(ns);
ns.play("flawed.flv");
ns.addEventListener(NetStatusEvent.NET_STATUS, netstat);
function netstat(stats:NetStatusEvent)
trace(stats.info.code);
var netClient:Object = new Object();
netClient.onMetaData = function(meta:Object)
trace(meta.duration);
ns.client = netClient;
When compiling for Flash 9 the net status event kicks in and
you get a "NetStream.Play.FileStructureInvalid"
message. When compiling for AIR nothing happens at all.
Ho hum.

Similar Messages

  • Hi guys, do you know iPad air 2 can play video with 4k resolution or not??? .. THZ,,,,

    I want to know that can iPad air 2 play video with 4K resolution video or not???

    https://www.apple.com/uk/ipad-air-2/specs/

  • Having PROBLEM with playing videos on my 5800

    Hi all,
    I bought my nokia 5800 2 days ago, and i am havig a problem with my videos.
    When i try to play a video (MP4) SOMETIMES it plays it without a problem, but SOMETIMES it plays a black screen with sound. And the most strange thing is it can play a video and in few hours it will just play sound on the same video!!
    Please try to help..

    pavilion_alex wrote:
    phones like 5800 and other similar must be updated because a new update solves the existing problems on the device.
    download and install this http://www.nokia.co.uk/get-support-and-software/download-software/device-software-update/download and carefully read the instructions it gives you before the update.
     ...Or return the phone and replace it with something from another manufacturer that either A) works out of the box, or B) doesn't require such an awkward and painful update procedure. Nokia seem incapable of either.
    Message Edited by garnett on 26-Oct-2009 12:49 PM

  • My macbook air will not play videos online, like product demo videos, etc.

    My macbook air is running on OS X 10.9.5, with i5 processor, and for some unknown reason will not play videos, like short tutorial videos or demo videos for online shopping site.  The enable plug-ins is on and I don't know what else to try. Never had this happen before.

    If you can't install or update Flash, follow these instructions.
    If you have installed the latest version of Flash, please take each of the following steps that you haven't already tried. After each step, relaunch Safari and test.
    For a "blocked plug-in" error, see Step 4.
    For a "missing plug-in" error, start with Step 8.
    Back up all data before making any changes.
    Step 1
    You might have to log out or restart the computer before a Flash update takes effect.
    Step 2
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data...
    and confirm. Close the window. Then select
               ▹ System Preferences… ▹ Flash Player ▹ Advanced ▹ Delete All...
    In the sheet that opens, check the box marked
              Delete All Site Data and Settings
    then click Delete Data. Close the preference pane.
    Step 3
    If you're only having trouble with YouTube videos, log in to YouTube and load this page. You may see a link with the text "Leave the HTML5 Trial." If so, click that link.
    Step 4
    a. If you get a warning of a "blocked" or "outdated" plug-in, then select the Security tab in the Safari preferences window. In the list of plugins on the left, there should be one—and only one—entry for "Adobe Flash Player," showing the same version number that you installed. Select that entry. On the right there will be a list of websites for which you have specifically allowed Flash, if any. It's normal for the list to be empty. Below that is a menu labeled
              When visiting other websites
    From that menu, select either Allow or Ask.
    b. If you still get the alerts, then go back to the Flash Player preference pane and select the Advanced tab. Click Check Now. Quit and relaunch the browser.
    c. If the alerts still persist, triple-click anywhere in the line below on this page to select it:
    /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources
    Right-click or control-click the highlighted text and select
              Services ▹ Open
    from the contextual menu.* A folder should open. Inside it, there should be a file named "XProtect.meta.plist". If that file is missing and you know why it's missing, restore it from a backup or copy it from another Mac running the same version of OS X. Otherwise, reinstall OS X.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    Step 5
    In the Safari preferences window, select the Advanced tab and uncheck the box marked
              Stop plug-ins to save power
    Step 6
    Open this folder as in Step 4:
    /Library/Internet Plug-Ins
    Delete the following item, or anything with a similar name, if present:
              Flash Player (failing).plugin
    You may be prompted for your login password.
    Step 7
    Re-download and reinstall Flash. Download it from the domain "get.adobe.com". Don't click a link from any other website, including this one, because you can't trust links. They may be an attempt to trick you into installing malware masquerading as Flash. Type the address into the browser window. Never download a Flash update from anywhere else.
    Step 8
    If you get a "missing plug-in" error, select
              Safari ▹ Preferences... ▹ Security
    from the Safari menu bar and check the box marked 
              Allow (or Enable) plug-ins
    Then click the button marked
              Manage Website Settings...
    if present and make sure that the website is not blocked for Flash.
    Step 9
    Select
              Safari ▹ Preferences... ▹ Extensions
    from the Safari menu bar. If any extensions are installed, disable them.

  • Problem with playing video via composite av cable on iPod classic 2009 model 160gb

    Things went well, after  purchasing the new Ipod classic 160 gb i tryied to watch movies on my LED TV via Composite AV Cable.  I did it once. Everything worked correctly & I was able to see my photoes, watch movies.  Today i tryied to connect it again to the TV via av composite cable. The TV Out was switched on. But i could hear only audio. No video. I tryied all possible configs for Ipod an for tv set & no result. If i choose on my Ipod to ask me  first if i want to switch on the AV out, the Ipod shows me a message that i should connect the video accessory (but it  is already connected!). If i choose simply to switch on the TV Out without asking  me it will play either sound only on the TV, either the playback on the Ipod is ending after 20 seconds of show time.
    Without AV Cable connected Ipod is working normaly in terms of video playback. Also the device is working normally with the ITunes.
    Please help. Where is the problem. The AV composite cable? TV set? Or iPod itself?

    Hi Rusbug,
    I am having the same issue with my iPod Classic 160gb not playing video on the TV via Composite cable as you posted in march!
    did you get a solution for the issue??
    desperate to know what to do next.
    thanks

  • Problem with play video on TV

    sorry my english. I have problem with some VGA cards with TV-out.
    When i set on VGA properties clonning view / nView / and i play video via windows media player, on secondary monitor is blank screen - in media player. Desktop is show correctly.. Is this direct show problem ? Is some way to fix this problem ?
    thanks

    I have to assume that the tech support people took you through the basics, like eprebooting the iPad and quitting the videos app, but here is something that sometimes help with the "black, blank" video screen.
    Swipe to the right from your first home screen to get to the iPad Spotlight search. Type in the name of any of your movies in the field at the top. When the movie appears in the search - tap on it and it should hopefully start to play. Let it play for a minute or so - hit done - go back to videos app and see if all is OK.

  • Trouble with Playing Video Files

    I have a new macbook pro and I am having trouble playing video files.  It seems like it is having trouble with the size of the file.  I need to get this figured out because I will be doing a lot of work with video including using final cut to edit. Any suggestions for me to speed up video play?

    Any suggestions for me to speed up video play?
    Max out your ram.
    It seems like it is having trouble with the size of the file.
    Please clarify. 
    Are the videos home made, downloaded from the net, browser videos, streaming videos, etc.

  • My lap hp envy 17-j130us problem with playing videos and audio

    when i am playing videos it freezes up to 2 seconds and playing continously as well as playing audio in music player also.i have downloaded videos in youtube mkv file with high resoluton 1080p video it was freezing at starting and after playing too fastly and them i have loaded the videos from pen drive that videos ae alos having the same trouble in above process how can i fix the problem i just have buy this pc 20 days ago my model is HP ENVY 17-J130US TOUCH SMART

    Hi,
    Which software are you using to play videos (offline). Please try the following software, it will play nearly all video formats:
         http://www.videolan.org/vlc/download-windows.html ​   
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Issue with playing video on 4400g

    Hello, guys. I'm using dmps 4400G, almost all of them are running under 5.2.3 software version.. I wish some of my DMPs (standalone) to start playing video file in loop. Used a html script to do it for 5.2.1 - everything works properly. But under 5.2.2 or 5.2.3 i have some problems while playing video using the same script.
    I followed next:
    "2. Create your own html page to have the content playing from the DMP flash (usb_1) or USB key (usb_2).
    https://supportforums.cisco.com/docs/DOC-14752
    https://supportforums.cisco.com/message/3194092
    So when under 5.2.2 or 5.2.3 video suddenly stops playing, DMP and Monitor state becomes off. After that player starts playing video again. And at the same moment it stops again. Red light indicates that DMP tries to obtain an IP-address via DHCP, but DHCP is disabled (static IP is used).
    Also I have a problem with image. When I want from my DMP in standalone mode to show an image using hmtl script, it just shows nothing (and red light is on).
    How can I rectify this? Or maybe there is another way to play file in loop at 5.2.3 software version. Do not want to downgrade.
    Thanks in advance.

    Excuse me? Doesn't the title say trouble playing video on utube etc? I am having trouble playing videos that don't jump. I am just looking for a solution to a problem that seems to be inherent in MBP and the new operating system. If you have a solid solution, please respond.

  • Macbook Air Mavericks cannot play video in ANY presentation application

    Long ago, last year to be exact, I had a Macbook Pro 2009, with Open Office and MS Office older versions installed. They played embedded videos in both Impress and Powerpoint PERFECTLY.
    This year I bought a Macbook Air and installed Open Office 4.1.0 and MS Office 2011. Now I cannot play any of the videos in these presentations.
    I attempted to make new presentations and re-embed the videos. They play in Powerpoint fine ONCE, then not again. They do not embed at all in Open Office. The videos are all MP4 files.
    This does not appear to be either a Microsoft or Open Office issue. To me this is clearly because of my upgrades. This is extremely frustrating, as I am a college professor and need to be able to use these programs without a problem. I also use presentations in my creative work.
    Each time I find one more thing that I can no longer do with my new machine, I love Apple a little less. I hope someone can help.

    I don't understand what your point is. If I have 15 minutes to edit the post, then I should have been able to edit the post 1 minute after posting it.
    It is now 24 hours later - long past 15 minutes.

  • IDVD behaving strangely with HDV video from FCP X and FCP 7?

    AVCHD exported from FCP X as ProRes 422 works perfectly in iDVD producing a 16:9 DVD.
    HDV doesn't, even though QT Player plays it perfectly.
    The odd thing is that 4 years ago, using legacy FCP my exported HDV videos had no problems being recognised as 16:9 by iDVD.
    So why are FCP X produced HDV videos not recognised as 16:9?
    P.S.  I know that iDVD never recognised DV in the 16:9 format but it always worked with HDV.
    Incidentally, the old trick of opening it in QT Pro and changing the frame size to 1024 x 576 does not work!
    Even stranger, I have just opened the HDV clips in FCP 7 and exported them as a QuickTime Movie.
    iDVD plays them back in the correct aspect ratio but look at the effect  .  .  .  .  muted colours and green patterns all over.
    This never happened in the past!

    I mentioned several problems so I don't know which one you are referring to. 
    After experimenting I found some workarounds.
    To cure the squashed image I created a ProRes 422 preset in Compressor 4 with a frame size of 1920 x 1080 and exported from FCP X using Compressor Presets.
    Everything now works perfectly except the encoding seems to take  longer.
    I got rid of the moire pattern when using FCP 7 by exporting as ProRes 422 1920 x 1080.

  • Weird problem with playing videos on v2009.08 with KDE desktop

    Hi all.
    my weird problem is; i see a transparent box instead of video, in all players!
    in addition VLC immediately be killed in case of playing vids.
    i also tried that with compiz effects disabled but it didn't work.
    plz help me about this.:(

    I don't know why but changing the video output driver in smplayer and vlc corrected it. But there is no option to change video output driver in dragon player.

  • Big problem with playing videos on Vista

    I have a big problem with iTunes and Quick Time on Vista. I know other people in the german cmmunity who have it, too.
    If ich want to play a video with iTunes or Quickt Time my PC starts wokring very heavy. Then the programm shut down. Sometimes there is a bluescreen, too.
    In iTunes it is enough just to leftclick on a video an the programm is freezing without an error message.
    I bought a new iPod classic some days ago. With this error i can't use it and 350 € would be thrown away.
    I installed both prgramms again and again but that's no use.

    Seems to be a hard drive issue. I sometimes get the blue screen of death or a message that one of my 2 raid0 hard drives is starting to fall down. If I restart the PC (3 seconds on the power button... since iTunes blocked everything) and declare the hard drive is OK using the Intel Matrix soft provided by Dell on their website, everything is back to normal (as long as I don't use iTunes). Problem only occurs with iTunes. I am currently doing a backup of my complete HDD to an external drive. I'll try moving my iTunes library to this drive and see if it works better from a non raid 0 drive. Will keep you informed. But an external drive is always VERY slow compared to an internal so it can only be a degraded mode solution to the problem. Apple please do something!!!

  • Sawtooth problem with playing video

    Hi
    My sawtooth is freezing up.
    Usually the freeze occurs when I am playing a video.
    the screen freezes and the audio skips repeatedly over and over.
    This does not happen all of the time but it does occur frequently. I took it to an apple store and was able to reinstall the system software (not a clean install) but it did not make difference. Otherwise the machine works fine.
    any advice is appreciated.

    Do you mean streaming internet videos or DVD videos? In spite of the faster 1.4 GHz G4 processor you have installed, your Sawtooth suffers from the same hardware limitations of other computers built at that time. The 100 MHz system bus speed, DRAM memory (as opposed to DDR memory), and a 2x AGP graphics bus all contribute to choppy video viewing. The original graphics card that you still have installed has a very small 16 MBs of SGRAM, which can easily choke on video playback. You'd definitely benefit from a faster/newer graphics card with DDR memory. If you search the G4 Expansion Forum for "graphics card," you'll find numerous topics and recommended/compatible cards.

  • Problems with play videos in the latest version of iTunes

    There is a curious problem with the latest version of iTunes. If you play the videos in Quickplay as a standalone, the videos play fine, but within iTunes whether within it or in a separate window, the videos start out choppy. I am using an ATI 5770 with 1G ram. The machine is an i7 Core 870 with 8G of ram. I have turned off the 3D accelator, etc. So, don't point me to iTunes stock advice concerning this. Been there, done that.

    Hello there, ondrafromczech.
    The following Knowledge Base article offers some practical steps for troubleshooting performance issues when using AirPlay or AirPlay Mirroring with your Apple TV:
    Resolve issues with AirPlay and AirPlay Mirroring from iPhone, iPad, and iPod touch - Apple Support
    Resolve performance issues with AirPlay or AirPlay Mirroring
    If you are experiencing intermittent playback or significant network lag with AirPlay or AirPlay Mirroring, it could be due to a weak Wi-Fi connection, interference, or the distance between the Wi-Fi router and your iOS device, Apple TV or AirPort Express.
    Try these suggestions:
    Ensure that other devices are not trying to stream to the same Apple TV at the same time.
    Ensure that your Wi-Fi router is set up with the recommended settings for the best performance.
    Certain external devices, such as microwave ovens and baby monitors, may interfere with a Wi-Fi network. Try moving or disabling these devices.
    If possible, try to locate your Wi-Fi router in the same room as your iOS device and Apple TV.
    If your wireless and wired networks are the same, try connecting your Apple TV to the router via Ethernet instead of Wi-Fi.
    If the Wi-Fi router has an external antenna, check to see that is it connected properly and in good condition.
    Use the Wi-Fi network troubleshooting guide to resolve interference and other issues.
    If you are using iTunes, please see these troubleshooting guidelines.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

Maybe you are looking for

  • Can't run helloworld of Google App Engine (python 2.7)

    I looked and searched for the bug and found the post. -> See comment 29 But, it seems that it's still not fixed in google-appengine 1.6.4 for python 2.7. The exact error is: (Trying to run the helloworld given in docs) WARNING 2012-04-06 23:26:00,928

  • Another user-modified table  'Items' (ODBC -2039)

    I have a problem with the Items object. I have a folder on the Item MasterData  form and a extra table that stores the info from that tab. When I try to update an item i get this error message : Another user-modified table  'Items' (OITM or OITW) (OD

  • Nokia 6230i cannot cannect using PC Suite 6.7

    I am using Windows XP SP2 IVT Bluesoleil 1.60 Nokia 6230i PC Suite 6.70.22 My Bluetooth stack does not appear as an option on the Get Connected wizard, it only shows the Microsoft Bluetooth stack. Have tried to use this but my phone is not detected.

  • Tab controling Tab

    My goal is following When i press the A tab on the test tab control, the B tab shall disepear in test tab control and only the A tab should be visible in test2 tab control( not greyed out) . The same thing shall happen when B are pressed, that wil sa

  • Using Maps when not connect to internet.

    I just bought an Ipad 2 to replace a netbook. I am a pro-driver an my favorite app was to get detailed maps while on the road [or on the side trying to figure where to turn] Sooooo.....is there a way to save maps on the Ipad so I can bring them up wh