Why onMetaData handler doesn't be called when playing some .flv?

Hello, Everyone,
I am encountering a problem:
I am using NetStream to play some .flv files on local disc. My code skeleton is:
public class AdvertisPanel extends MovieClip
          private var _video:Video;
          private var _connection:NetConnection;
          private var _stream:NetStream;
          private var _clientObject:Object;
          public function AdvertisPanel($playlist:Array, $delay:int)
                    ....(code omitted)
          public function build():void
                    this._video = new Video();
                    this._connection = new NetConnection();
                    this._connection.connect(null);
                    this._stream = new NetStream(this._connection);
                    this._video.attachNetStream(this._stream);
                    this._clientObject = new Object();
                    this._clientObject.onMetaData = this.metaDataListener;
                    this._clientObject.onXMPData = this.XMPDataListener;
                    this._stream.client = this._clientObject;
                    this._stream.addEventListener(NetStatusEvent.NET_STATUS, this.netStreamStatusHandler);
                    this._stream.addEventListener(IOErrorEvent.IO_ERROR, this.netStreamIOErrorsHandler);
                    this._stream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, this.netStreamAsynErrorsHandler);
                    this.addChild(this._video);
                    this._stream.play(this._medias[this._currentPlayingIndex].mediafile); // this is the url of the video
          private function metaDataListener($metaData:Object):void
                    ....(code omitted)
                    trace(metaData.duration, $metaData.width, $metaData.height);
          private function XMPDataListener($xmpData:Object):void
                    ....(code omitted)
                    trace($xmpData);
          ....(code omitted)
I used some .flv files that I download from YouTube to test; and I found that the handler metaDataListener would not be called when playing some .flv files, but some would. Is the problem caused by the video file? Because I may resize the video before play it on the screen, and I really need to know its original width & height.
Would some ont help with that? Thanks a lot in advance.

Thanks, Donny.
But I failed to open the .flv file with Adobe Media Encoder, it said that the format was not suported.
And the .flv is downloaded from YouTube.

Similar Messages

  • Any idea why I can only hear a caller when I'm using speaker phone?

    Does anyone know why I can only hear a caller when I am using speaker phone? 

    Hi goodferg,
    The troubleshooting steps below may help you with the sound issue you are having with your iPhone 4:
    iPhone: Can't hear through the receiver or speakers
    Resolution
    Verify that there is nothing plugged in to the headset jack, including headsets, headphones, or adapters.
    Make sure the Ring/Silent switch is not switched to silent.
    While on the Home screen, adjust the volume buttons. If you see the icon below, indicating that headphones are attached, there may be debris or an object lodged in the headset jack:
    Check the headset jack. If there is an object lodged in the headset jack that is not easily removed, have the iPhone serviced to remove object.
    For Original iPhone: If there is light debris, such as lint, in the headset jack, try connecting a pair of headphones to the headset jack and then remove the headphones. Repeat this several times to remove the debris.
    If you have installed a protective film on the display, either ensure that the receiver is not covered or remove the film completely.
    Check the receiver mesh (which is on the top front of the device, above the display). If it appears blocked, use a clean, small, dry, soft-bristled brush to carefully and gently brush away any debris.
    If you have paired with a Bluetooth headset that is nearby, either use the headset or turn Bluetooth off (chooseSettings > General > Bluetooth).
    Restart the iPhone.
    If restarting the iPhone doesn't resolve the issue, try restoring the device.
    If the issue persists, go to the Service Answer Center - iPhone for information on service.
    Hope this helps!
    - Judy

  • Why "stop download video" feature not show when playing video

    why "stop download video" feature not show when playing video,, i hope you can give me Solution for this problem because when i using 3g internet, it downlaod the video Quickly ,,, so it consume the Balance

    Do you have Flash installed?   Check HD > Library > Internet Plug-Ins
    If the Flash Player app is not in the Internet Plug-ins folder, download and install from here.
    When you post for help, please state which OS X is installed.
    If you aren't sure, click About this Mac from your Apple menu 
    Troubleshooting advice can depend on that information.

  • HT4623 I have just finished the upgradation to an iOS 6.1.3 and have lost sound in Music and Videos. I am using an iPhone 4S. My iPhone doesn't produce sound when playing Youtube or local camera videos. However ringtones and notifications sound works fine

    I have just finished the upgradation to an iOS 6.1.3 and have lost sound in Music and Videos. I am using an iPhone 4S. My iPhone doesn't produce sound when playing Youtube or local camera videos. However ringtones and notifications sound works fine.It is quite strange as well. Have you encountered this issue before?If yes then what's the solution?

    I had major issues with the iPhone 4s battery, however it’s resolved.
    The tech who set the phone up at the Apple store did so with little training.
    if you have a mobile me account. First go and move all your data to the cloud by going on your computer and logging in at me.com/move. The cloud has replaced mobile me, so there is no need for those two accounts
    Also make sure that for any of your email accounts you set them up to fetch, not push. My tech person set them all to have the email servers push data to the phone. The new iphone4s antenna is extremely strong so it will continually try to access stuff that is pushed–***** a lot of battery life doing this. It makes it worse if you have exchange 2010 accounts. Something about changes made to exchange really suck battery life from devices that access such accounts.
    turning of locator and the push notifications from facebook--they have a lot!

  • E52 jump songs when play some AAC files downloaded...

    Hi, Nokia fans. I recently updated my firmware to 034.001. MY E52 jumps songs when play some AAC files downloaded from iTunes store. It doesn`t occur until I updated to the newest firmware. Any idea how to fix this?
    Regards for Chan

    Actually, no I don't have crossfade playback on. The files cut out anywhere from 5 - 60 seconds before the file is supposed to finish, it really has nothing to do with crossfade...
    iMac G5 17"   Mac OS X (10.4.8)  

  • Why do my DV files look better when played in MPEG Streamclip than iMovie?

    My home movie DV files look washed out (compared to what my tapes looked like I played them on the TV years ago) when played with both iMovie '06 and iMove '11. The claim has been made that if I retransfer my tapes using iMovie '06 (rather than '09, which I used last time, or '11), there will be a dramatic improvement in the visual quality (and there will be some unspecified benefits if I set the dial to 48K audio). HOWEVER, if I play the files I already have in MPEG Streamclip, the visual quality improves substantially without any retransfer. Here is my question: Why? Why do my iMovie-imported files look better in MPEG Streamclip than in iMovie?
    Here is my layman's answer: algorithms. When MPEG Streamclip encounters the exact same arrangements of molecules (or whatever), it has some plan for what to do with them that is smarter than what iMovie does. Is this another sign or way that iMovie is not well suited for DV?

    Please go to my website where I have posted new instructions on working with DV.
    This keeps both interlaced fields from FireWire capture through to a DVD. All the lines means no lost quality when editing DV or Digital8.
    It also solves the washed-out color problem.

  • I just updated to FF6 and when using FB screen turns to black and hangs up when playing some games.

    I use Facebook every day to communicate with friends and play games. After I installed FF6 I started having problems on Farmville. I disabled all the add-ons that were not supported or able to be updated and did the same thing for the plug-ins. When playing the game, my cursor stops working and then if I click on the side bar to move the screen up or down, my screen will sometimes go black with outlines of the FF log on page and then the page will show part of the game with tiled screens of the game. When I click on a blank part of the screen, the screen then lightens and my cursor goes to a circle. After awhile I get an error message in a box that pertains to chrome with an error number. When I check on the message in Windows, it does not show that error message fix. I have uninstalled Chrome also and that didn't solve the problem.. I have uninstalled FF6 and reinstalled it, but that doesn't help either. I have another laptop computer that is using Window 7 Professional and am going to see if the problem is with Farmville or FireFox. The computer I am having problems with us an HP desktop model dv5-1235dx and I am using Windows Vista SP2 operating system which came with the computer. I have my FF set to send out crash notices, but it does not do that when all this happens. Everything I know of that can be updated on my computer has been updated. I also use AVG as my anti-virus program and it is updated daily. I have also gone into my cookies and have blocked those that are causing problems that my anti-virus program. My computer is still under warranty through Best Buy until March of 2012, so I am wondering if I should contact them about the problem or maybe get some help here.

    In Firefox 4 and later [http://kb.mozillazine.org/Safe_mode Safe mode] disables extensions and disables hardware acceleration.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    If disabling hardware acceleration works then check if there is an update available for your graphics display driver.

  • Why my iphone4 doesn't vibrate anymore when it's in silent mode?

    I checked if the vibrate modes were on & they're,  and I've been having missed calls due to this issue, how can I fix this??? Thanks

    Hi Mike,
    Thank you for replying. We have tried it using a different QR code reader and it does the same thing. It's very strange as it doesn't make sense that it would work in Indesign and also if you save it as a jpg it's still readable but as a pdf it doesn't scan. I had previously created the QR code online using a website and placed it into Indesign and that worked when it was saved out as a pdf but it created a white box around it and I prefer just the code with no background. My colleague discovered we can create one in Indesign in whatever colour which is great but am stumped by it not being readable in a pdf. I'm going to try and do the same in Illustrator and see if that works, if not I will send it over to you.
    Thank you very much.
    Mel

  • Why does the phone spontaneously make calls when stored away and locked?

    Even when the screen is locked, the phone will make calls.  What can I do to stop this?  Thanks much!

    The basic troubleshooting steps are reset, restart, and restore.
    Are you sure the device is staying locked?  Do you have a lock code set?

  • Why can't I make a call when I've subscribed to th...

    Can't make calls because I've no Skype credit. I've availed of the free trial

    Also, please see that calls to mobile numbers are only covered for some countries: http://www.skype.com/intl/en/offers/skype-with-love/?intcmp=ch1-SkypeLove-main
    Anna
    Assinaturas / Skype Premium / Contacto com atendimento ao cliente da Skype /
    Se a minha resposta foi útil, dá Kudos ↘. Obrigada! Eu posso não responder às mensagens privadas não solicitadas.
    Si mi respuesta fue útil, dé Kudos ↘. Gracias! Puedo no responder los mensajes privados no solicitados.

  • Receiving calls when playing games

    When I play games on my droid razr maxx and someone calls me, they get a message that I am playing a game. Is there a setting to change? I really don't need anyone to know what I am doing on my phone when they call me.

    My guess is that it is the game you are playing that is generating this response.  I know some games I play, when I have an incoming call, it auto-saves the game and allows me to answer or ignore the call.

  • Why do I have a black screen when playing back TV shows?

    I am running Win 7, and iTunes 10.7.  Recently, when trying to play back episodes on my PC of a TV show that I purchased, the playback screen is black, with no video or audio.  The time counter is counting down the clock as if it's playing, but there's nothing to see or hear.  If I re-boot my PC, the show will play properly, but the black-screen instance has occurred several times now, and I'd like to figure out why it's happening at all.

    Because there is a problem. Want to try fix it?
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • TS2771 Why does my 4th gen touch stall when playing songs with Bluetooth connectivity?

    Why does my 4th gen. Touch freeze or stall when connected via Bluetouth?

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:       
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    -  Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • Why isn't there any view options when playing music from devices in itunes?

    I prefer to play all my music directly from my Ipod, but the truth is, itunes is useless on manually managing the content of large external devices, and the only major reason for this, as I see it, is the list-view only option.
    I don't get why they've left out the grid view option. It would be so much qicker to pace through the ipod library to find what you're looking for, and it would look much cleaner. Considering how the ipod classic lacks any editing features, it would be nice to atleast have a more organized view when it's docked!
    For the record I have started using Winamp again, as it feature much more options, but on the downside, it's much trickier to manage ipod playlists in winamp. So I rather wish apple would just open up the grid function, and hopefully the coverflow feature, for devices as well. I Can't believe why so few complain about this. It *****!!

    If there are music tracks in the Music app but your can't hear them, then make sure that you haven't set the volume limit for the app at the minimum : Settings > Music > Volume Limit

  • Why do I get a white screen when playing movies?

    Recently, for no apparent reason, when I play movies on my AppleTV 1st gen, the screen is completely white, no picture or sound. When I play TV shows, everything works like a charm. But whether they are movies I already own, or movies I rent, there is only a white screen and no sound.  Anyone have any ideas?
    Thanks,
    AD

    Try restarting the Apple TV by removing ALL the cables for 30 seconds, or resetting it using the reset option under general.

Maybe you are looking for

  • How to take clips from Event Library and put in separate event folder?

    (I looked in iMovie Help menu but found no help.) I recently did a file transfer from my Sanyo HD2000A which was a large accumulation of clips taken since last spring 2010. This was my first upload. Now I have a lot of clips organized by date by iMov

  • Why does the iCal app on my MacBook Pro only have a 2-year archive? Where did everything before that go? And can I get it back?

    I use my iCal as a daybook and every now and again need to reference events or occurences from several years ago. I tried to look something up from back in 2010 and the iCal on my MacBook Pro only has iCal data from Jan 1, 2011 onwards. Everything I'

  • How do I download iTunes to my phone.

    On my iPhone 4 I had all my music. I took up iMatch and then upgraded to iPhone 5. After my sync there was no music on the phone. This is a problem when I lose internet connection e.g. In a tunnel. How can I download all my music to my phone. Thanks

  • New K8T NEO won't boot

    I'm a longtime computer fixer but new builder – New setup - first turn on, I get only the first MSI logo and am therefore unable to DEL into BIOS setup. The D-Bracket cycles through several combinations, but stops with red on 1 and green on 2, 3, and

  • Missing Promoted Links app in root site

    Hello All, I'm working on an Intranet site for my organization. It was created in SharePoint 2013 enterprise, with the site collection created using the publishing template. Under the root site, i have 8 subsites. In each of the subsites I can add th