I need to determine if a mp4 is playing in flex

I am building a video player in Flashbuilder 4 (Flex 4.1) that supports .flv and .mp4 and need to know how to determine if an .mp4 file is playing in flex so I can have other events work off of it.
My player is of type <s:VideoDisplay id ="player"...>
Here's my code:
if (!player.playing)
togglePlayImgCanvas.visible=false;
This code works for the .flv files but for the streaming .mp4's this doesn't work. Does anyone have an idea on how I can get this working for .mp4's also?
Thanks,
Eric

Have your net status code handler check for these king of errors:
function netStatusHandler(evt:NetStatusEvent):void
    trace("net status event ", evt.info.code);
    if(evt.info.code == "NetStream.Play.FileStructureInvalid")
        trace("The MP4's file structure is invalid.");
    else if(evt.info.code == "NetStream.Play.NoSupportedTrackFound")
        trace("The MP4 doesn't contain any supported tracks");
HTH,
C

Similar Messages

  • Need to determine data type of free characteristic in multiprovider

    Hi,
    I need to determine the data type (e.g. numeric vs alpha numberic) of a free characteristic in a multiprovider.  Can this be accomplished in BEx Query Designer? 
    If not, can it be accomplished in RSA1?  How?
    Thanks,
    Kevin

    its not possible via Query designer..
    give that object name if it is infoobject then you can get via RSD1

  • Need to determine plant and storaeg location for item in delivery

    Hello All,
    I have an inbound IDOC which changes the quantity of items in a delivery and also adds new items if necessary. I need to do a auto PGI also if required.
    Am using BDC to update the delivery. Now the problem is when I add a new item to the delivery. I add the material, quantity and Unit recieved from the IDOC. I need to determine the plant and storage location and fill that too in the delivery.
    Kindly let me know how I can determine these two values. Which table holds this data?
    Please note that I am changing only the delivery. The document preceding the delivery wont be changed.
    Thanks for your help.
    Regards,
    Johnson

    normally the plant is determined on this basis:
    customer inforecord (table KNMT)
    customer master (KNVV)
    material (MVKE)
    The storage location is determined in table TVKOL based on:
    shipping point (you have it in delivery header LIKP-VSTEL)
    plant (see above)
    storage conditions (material master MARA-RAUBE)
    regards
    Roberto

  • How can i open a downloaded mp4 file that is zipped?  Witch will not open.   And, Convert that mp4 to play on my iMac with Maverick osx ?   I there an app or apps i need to buy ?

    how can i open a downloaded mp4 file that is zipped?  Witch will not open.   And, Convert that mp4 to play on my iMac with Maverick osx ?   I there an app or apps i need to buy ?

    You should be able to open the zipped file by double clicking on it.
    http://www.videolan.org/vlc/index.html
    This link is for a VLC Player it can play just about everything.
    Cheers
    Don

  • I have built a slideshow in iPhoto -- I need/want the file in .mp4 format.  How do I do that?

    Ok, I don't know why I am here, but!
    I have built a slideshow in iPhoto -- I need/want the file in .mp4 format.  How do I do that?
    The question may have been answered somewhere but I was sent here -- so her I am.
    Still I think I need my slideshow in .MP4 format to play on windows/smartTVs and the .m4v file that export offers seems to be the only option and it fails.
    I am using iPhoto v9.5.1 on a Macbook Air.
    help.

    Try changing the extension to .m4v and see if that will do the trick.  It did for me on another occasion where it wouldn't play as .MP4.  If it works it's a simple solution.
    I compared an .m4v and an .MP4 file in Qujicktime Player via the Winde ➙ Show Movie Inspector menu and both were  the same codec:
    H.264, 1280 × 720, Millions
    AAC, Stereo (L R), 44.100 kHz
    Check to see what codec the Movie Inspector window shows.
    OT

  • Why do we need account determination?

    Hello,
    why do we need account determinations and how can i create them for the COA?
    Thanks,
    -S

    Hi
    To create accruals and post payables, the system must first of all determine the correct G/L accounts for posting in FI.
    Before the system can determine the G/L accounts, certain settings must be made in Customizing. In the IMG, select: Logistics Execution -> Transportation-> Shipment costs -> Settlement -> Automatic G/L account determination. The settings required are described in detail here.
    G/L account determination is carried out automatically. The following parameters are used for determination:
    Chart of accounts
    Valuation grouping code
    Transaction key
    Account grouping
    Valuation class
    G/L account determination can be carried out at shipment cost item level or you can have the system carry out posting at delivery or delivery item level for a more detailed process.
    Nagesh

  • Need to determine which partner function level is pulling in the currency (

    need to determine which partner function level is pulling in the currency (sold to, ship to , bill to or payer)on sales invoices
    Also I my requirement is to have different currency based on different ship to party for same sold to..then how set up the same

    Hi,
    Yes, that is true. The field borders are not drawn when there is no data for that field.
    Here's a workaround though. Create this formula and use this formula field instead of the original database field on the report
    if isnull({database_field}) or not({database_field} > 0) or not({database_field} = "") then
    space(1) else totext({database_field})
    You can then apply borders on this field and you'll see that the field draws the border when there is no value.
    If the field that is in the Subreport, then it needs to be done in the Subreport, otherwise in the Main Report.
    -Abhilash

  • OK , I have my instructional coaches creating power point presentation add audio to each slide with the presenter 10 add ins. I need these presentation converted into MP4 like you can do with adobe presenter video creator.

    Love the Adobe products first. OK , I have my instructional coaches creating power point presentation add audio to each slide with the presenter 10 add ins. I need these presentation converted into MP4 like you can do with adobe presenter video creator.

    If you import the PPT deck into Captivate it will not bring the audio from Presenter. But you can import it into Captivate after the slide deck has been imported. The audio files aren't necessarily named in a logical fashion in the source files for the presentation, so I would recommend that you publish the presentation locally and then find the 'data' folder in the published output and the audio files will be named in a way that you can infer the slide they are associated with. Not the simplest proceedure but it should be pretty painless.

  • I need to determine the fields on a selscreen at runtime

    Hi Team ABAP,
    I need to determine the fields on a selscreen at runtime.
    That means FM´s like DYNPRO_FIELD_GET, are not doing the i need.
    If a field is made inactive or invisible in PBO (at selection Screen Output) i dont Need/want this in my Analysis.
    Maybe i better state what i want to achieve.
    I want to rightclick a selscreen-field, and then use the upcoming context menue to make it dissappear.
    For that i added a pf-status to that selscreen.
    In sy-curow i get which row the user clicked on (for example take 5), so now i need to find out which selscreen field is displayed in row 5.
    So i can create the customizing entry for this field.
    Maybe someone has an idea for me, i dont need coding, i can do that myself.
    Thanks for reading
    regards
    Florian Kemmer

    Well Anyway, it took me a Little but i figured it out.
    following code does the trick for me:
    [code]
    Tables phelp.
    IMPORT phelp FROM MEMORY ID 'PHELP'. [/code]
    i do this in the Event AT_SELECTION_SCREEN OUTPUT.
    Then in phelp-dynprofld i have the actual field i clicked on.
    And even if i totally misunderstood you you helped me a lot focusing my thoughts on the right way.
    Before your answer i didnt think about that while pressing F1 it works and i only have to find out how they do it.

  • Need Help Determining Least Common Demoninator for Frame Rate, Codec, and Workflow

    I need help determining the best timeline setting and Compressor workflow to integrate footage with varying frame rates and codecs that I'm currently upres'ing for a multi-camera concert performance destined for HD broadcast output. I'm assuming the network needs 29.97.
    Thus far, I've been working with Apple ProRes Proxy files to create lo-res edits. Now, I've started the task of offlining and ingesting new, HD clips from the proxy references. The content originates from either Panasonic HVX200 or Panasonic GH1 cameras.
    Looking at the material, it appears the cameras were not shooting with the same settings and, somehow, a PAL GH1 got into the mix. Some of the performances have the PAL GH1 and other do not.
    Here's the breakdown of the varying sources. I got this info from the Log & Transfer columns.
    HVX Cameras
    Format: 1080p24
    Source Format: DVCPRO HD 1080i60
    Shooting Rate: 24
    Vid Rate: 29.97
    TC Format: Non-Drop
    GH1 NTSC
    Format: 1080i60
    Source Format: AVCHD 1080i60
    Shooting Rate: 30
    Video Rate: 29.97
    TC Format: Drop
    GH1 PAL
    Format: 1080i50
    Source Format: AVCHD 1080i50
    Shooting Rate: 25
    Video Rate: 25
    TC Format: Non-Drop
    ANOTHER GH1 NTSC
    Format: 1080p24
    Source Format: AVCHD 1080p24
    Shooting Rate: 24
    Video Rate: 23.98
    TC Format: Non-Drop

    Call the TV station/network and get their spec sheet first. You need to know more than frame rate.
    Once you have that, you can work backwards to arrive at a workflow.
    As a general priniciple, you'll get a more seamless translation of format when you add frames rather than removing them. (eg 24p to 27.97 rather than 29.97 to 24p)
    At least all the material starts out in the 1080 world.
    Do all your conversions before you start editing. (I'd use ProRes or ProRes LT for the editing codec).
    Budget a bunch of time to sync the material or figure out a quick cutting style that minimizes sync drift.
    What a nightmare.
    x

  • I have two separate iTunes libraries on two separate Computers. I need to consolidate them so I can play them on a brand new computer. How do I do this so I can play them off an External Hard Drive on my brand new computer?

    I have two separate iTunes libraries on two separate Computers. I need to consolidate them so I can play them on my brand new computer. How do I do this so I can play them off an External Hard Drive on my brand new computer?

    Why, if it told you you have insufficient space on your computer, would it suggest making more space available on your phone?
    At a guess, you have insufficient space on your phone. Installing software will typically require more space than the final size of the software, perhaps even twice or three times as much, for the installation process. You can easily dump some videos or music temporarily, and then synch them back in afterwards.

  • HT3775 i need codec format to support audio to play movies?

    i need codec format to support audio to play movies

    Just download the free, open-source media player VLC. It plays pretty much anything.Get VLC here:
    http://www.videolan.org/vlc/download-macosx.html
    Also, beware of dodgy internet sites that say you can't play a movie and offer to install a 'codec' for you. They're typically malware or spyware.

  • Do I need to download a DNLA server to play contents of my iMac on my TV through a blue ray player?

    Do I need to download a DNLA server to play contents of my imac on my TV through a blue ray player?  I have Mountain Lion.

    No, but if you want to do this wirelessly or as Apple calls it, AirPlay, then you need a compatible iMac and an Apple TV or other compatible AirPlay device.
    Otherwise you can connect the two with a suitable cable.

  • Mp4 files plays both A/V in itunes but only V on ipod classic

    mp4 files plays both A/V in itunes but only V, no sound, on ipod classic

    The same happens to me but slightly diff. It doesn't
    play the song at all. It only skips to the next song
    or returns to the main menu
    I've noticed that only the itunes-purchased songs will not play on my ipod mini, although these same songs work fine in itunes...
    Once an itunes-purchased songs is selected to play in my ipod, the song does not play. Instead, the ipod screen defaults back to the main menu.
    I've downloaded all the lastest upgrades, performed the 5Rs, deauthorized, reauthorized, unistalled & reinstalled software, checked for a complete download of songs in my purchase history, and also played the purchased songs in itunes.
    Dell   Windows XP  

  • I need the timenumbers that shows when I play a song to be bigger. Any suggestons? I didn`t help to increace the lettersize.

    I need the timenumbers that shows when I play a song, to be bigger. Any suggestions? I have tried to increace the letters, but the numbers didn`t get bigger.

    Because the location for each song in your library is on your hard drive.  If the hard drive isn't there, how can iTunes play it?
    You'll have to move/copy the music from your hard drive to your computer's hard drive.
    Basically, EASIEST way to do all this, if you don't care about your play counts, etc...
    -Delete EVERYTHING from iTunes, so that your library is now empty.
    -Go to "Advanced" inside of the "Preferences" window, found in the "Edit" drop-down.  You can also access Preferences by pressing Ctrl+, (Press Ctrl and the comma key)
    -Change your iTunes Media Folder Location to something simple, but on your computer. I use C:/iTunes.  Make sure "Keep iTunes Media Folder Organized" and "Copy files to...." are both checked.  You can close Preferences now.
    -Now, drag and drop your music from your hard drive into your iTunes library.  iTunes will automatically add the music to your library, as you would expect, and also creates a copy of each file to place into that iTunes Media Folder you just created.
    Shouldn't have any more problems...

Maybe you are looking for

  • JMS Adapter Parameter

    Hi All: I am using XI 3.0 SP-9 and When I am confuring JMS adapter i am seeing these parametes :- <b>QueueConnectionFactory Java</b> Class :progress.message.jclient.QueueConnectionFactory <b>Queue Java Class</b> : progress.message.jclient.Queue <b>Se

  • Printing a thick black paper

    Hi, i got an Hp officejet 7000 wide format model E809a I have to print on a thick black paper size A3 I tried doing it and what i got was only some darker sqaures on the paper where the images and text should be. anyone can help me with this problem?

  • I have Adobe Reader 9 on an apple

    Hi I have Adobe Reader 9 on a Mac and I want to open up a PDF fillable form. It will allow me to open up the form but not allow me enter information and click on boxes. Also, when I hit the EMail button at the bottom of the page, nothing happens? wha

  • How can I activate the Middle East Languages in My Indesign CS6?

    I need to view and change the Middle East Language Text in the Indesign Documents. I've the Adobe CS6 Master Suite. Do I need to buy a particular version of Indesign CS6? Or i't enough to download some package? Thanks a lot Best Regards Andrea Bortol

  • Where is the 'reload' button?

    ''Duplicate post, continue here - [https://support.mozilla.com/en-US/questions/843347]'' how do I get my 'reload' button back on my screen?