Getting the format of the media played

Hello, all is in the title, i would like to know how to get the format and other information on the media (audio, or video) played. I looked at the API but didn't get to find how to call getFormat method on an object.
Thank you for helping.

That's a bug in getCommonCharacterFormat.  The getCommon*Format code is very simple.  I'd recommend writing your own function.  This compiles but I didn't test it.  I believe I have all the imports listed here as well.
    import flashx.textLayout.edit.ElementRange;
    import flashx.textLayout.elements.TextRange;
    import flashx.textLayout.formats.Category;
    import flashx.textLayout.formats.ITextLayoutFormat;
    import flashx.textLayout.formats.TextLayoutFormat;
    import flashx.textLayout.property.Property;
    import flashx.textLayout.tlf_internal;
    use namespace tlf_internal;
        static public function getCommonCharacterFormatFromRange(range:TextRange):ITextLayoutFormat
            if (!range)
                return null;
            var selRange:ElementRange = ElementRange.createElementRange(range.textFlow, range.absoluteStart, range.absoluteEnd);
            var leaf:FlowLeafElement = selRange.firstLeaf;
            var attr:TextLayoutFormat = new TextLayoutFormat(leaf.computedFormat);
            for (;;)
                if (leaf == selRange.lastLeaf)
                    break;
                leaf = leaf.getNextLeaf();
                attr.removeClashing(leaf.computedFormat);
            return Property.extractInCategory(TextLayoutFormat, TextLayoutFormat.description, attr, Category.CHARACTER) as ITextLayoutFormat;
Hope that helps,
Richard

Similar Messages

  • "recording stopped because the format of the source media changed" Error

    I am trying to import video from my digital camera via firewire to quicktime...
    the New movie recording screen appears and works, but after a random amount of time (normally just around 4 minutes..) the recording stops and the message appears..
    "recording stopped because the format of the source media changed"
    I have plenty of disk space, and am sending the output vid to the desktop..
    please help.. I have spent 3 days trying to record the vid...
    I cannot import via imovie because I want to have the sound come from a different source then the movie.. i.e. Quicktime lets me get vid from DV and sound from "saffire" sound card..
    Thanks
    Geoff

    Jon Walker wrote:
    This is an older model Sony prosumer 3CCD camera that records to mini-DV tape.
    So does the HC3 and I have to re-set the camcorder output to match the capture settings each time I switch modes. However, I don't use QT for capture since the ability to maintain frame rate is dependent on the platform's CPU power. As you feel the problem is tied to your use of QT Pro, why not download and try the free Vidi dedicated capture utility.
    I'll check out vidi. I'm not familiar with it. I've been using this same method to capture clips for several years. I pretty much set the camera once and never have to mess with it again. I don't switch the mode at all during the day.

  • Where does FireFox get the default value of a preference from. What is the format of the file that has the default value?

    Where does FireFox get the default value of a preference from. What is the format of the file that has the default value?. I need the actual default value for a particualr preference.
    About:config does show some default values but I need the source from which about:config picks up the default value.
    Any help in this direction is greatly appreciated.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    The prefs that aren't hidden if they are the default are stored in two JavaScript text files in the Firefox program folder
    You can open them via these links in a Firefox tab:
    <code>resource:///defaults/pref/firefox.js
    resource:///greprefs/all.js
    </code>
    ([/forum/1/702598])

  • How to get the format of the uploaded file ?

    Hi !!
    I am developing a web application, which allows user(client) to upload a file.
    I have to place that file in corresponding directory like image, sound, text on server-side.Here........ I am facing a problem to find the Format of that file.
    I used 'ImageInfo.java' to find the format of the image files and I am unable to find the format of the Text, Sound files.
    if user changed the file name from 'file.txt' to 'file.jpg', the action class has to indentify it. Vice Versa......
    Please Help me !!!!!
    Thanks in Advance :-)

    Thank you.
    Yes, you are right!!!
    But i am using ' org.apache.struts.upload ' package . where getContentType() method in this package, gets the mimeType of the file. Its returning the type- by its extension not by its (File)Format.
    I don't know ... I am trying to find the solution.....
    Once again thanks.........

  • KEYNOTE: Why change the format of the presentations? not respect the original format!

    Why change the format of the presentations? Keynote not respect the original format!
    This new versionof Keynot (6.1-1769) is very poor:
    is very slow
    missing fonts
    changes the selected letters
    change the formats of the presentations
    Carousel animations missing
    Please correct the defects before releasing a new version. (The previous version was much better).

    Found the solution!
    I must set the Formats in the CODEC to get the Format that I want to play with! I was trying to complicate too much!
    The correct format class to is RGBFormat.
    RGB

  • The value entered does not match the format of the field

    I am trying to do a simple division of profit by sales to find the profit %. Here is the script I am using and it doesn't work.
    var v1 = +getField("Profit%").value;
    var v2 = +getField("Contract1").value;
    event.value = v2 !== 0 ? v1 / v2 : "";
    I continue to get the error The value entered doesnot match the format of the field
    I have attached the file. Can someone help

    Are you very sure?
    Using
    var v1 = 0.05; // "Profit%"
    var v2 = 100000; // "Contract1"
    v1 / v2; // result of division;
    5e-7
    That is 5 * 10 exponent -7 or 0.00000005
    Set the format to "None"
    Also so please post the values you are using.

  • How can I insert a line that extends from a word without it affecting the formatting of the WHOLE document?

    I am trying to create a simple form for people to print out and fill in. I want fields like 'Name' with a line extending from the word for people to write on. What should be the simplest of tasks has confounded me for HOURS. Inserting a line as a 'shape' or 'drawing with pen' just messes up the formatting of the whole document. I've used Pages 'Help' but it almost forced me to staple my eyelids to the carpet. Surely there is a SIMPLE way to do this. I even tried 'tricking' Pages by 'underlining' a row of spaces. It won't even allow you to do this because Pages is far more clever than a human.
    My cat is looking at me with increasing consternation.

    I would use a right-aligned tab with an underline leader.

  • I hired a commercial artist to create a color image for the cover of a self published book. I want a black and white image for the inside. The commercial artist has not responded to this request. How do I determine the format of the color image, I'm guess

    I hired a commercial artist to create a color image for the cover of a self published book. I want a black and white image for the inside. The commercial artist has not responded to this request. How do I determine the format of the color image, I'm guessing it's Illustrator's formatting but I don't know. How can I find out if Illustrator will open the file and allow alterations? The image opens only in Apple's Pages software?

    rons,
    It seems that all you have is a raster image, presumable PNG24 or JPEG, in RGB.
    It may have been created as raster artwork in Photoshop, or it may have been created as vector artwork with the help of Illy, or as a mixture of vector and raster artwork in either application, or both combined.
    If you just need to have a raster representation in black and white based on the current colour image, you may try this, in a new RGB document (View>Smart Guides are your friends):
    1) File>Place the image (you may tick Link or untick and have it embedded);
    2) Create a rectangle with black fill (R = G = B = 0), at least as large as the image, and place it behind the image (you may ClickDrag with the Rectangle Tool between opposite corners, then Ctrl/Cmd+X+B);
    3) Select all and in the Transparnecy palette flyout click Make Opacity Mask with both Clip and Invert Mask ticked.

  • How to change the format of the display_name

    Hi,
    Does anyone have an idea, how can I change the format of the display_name of the employee to First_name|| last_name? I do not want to include the title in the name format. This is for India Localisation.
    I tried changing the HR profile value "Default full name format". But the format of full_name does not change.
    your response would help me alot
    Thanks
    Mano

    Pl post full versions of your OS, EBS and HR patch level. Pl see if these MOS Docs can help
    362229.1 - How to Display Full Name as Surname PreferredName
    359995.1 - How to Access Global Name Format Functionality
    HTH
    Srini

  • Excel cannot open the file beacuse the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file [help]

    Hi,
    I have a excel file that I have been using since beginning of year.
    Yesterday, I tried to open it but a message comes out "
    Excel cannot open the file beacuse the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file"
    After I click yes, the page is blank. The file is about 400kb in size.
    I have try open and repair and third party repair program and not working also.
    I would appreciate a lot if you can help me.
    Thank you very much.

    Per your post, this problem might be caused by malware on the affected machine.
    http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2013/09/07/quot-cannot-open-the-file-because-the-file-format-or-extension-is-invalid-quot-opening-office-files.aspx
    In order to clean your machine, run Microsoft Safety Scanner (http://www.microsoft.com/security/scanner/en-us/default.aspx) to kill the malware, and then repair Excel file itself.
    If this is not the case, feel free to post back and let me know. Thanks.
    Tony Chen
    TechNet Community Support
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • HT1296 how do I sync movies from my PC to my IPad & what should be the format of the videos?

    how do I sync movies from my PC to my IPad & what should be the format of the videos?

    Pad2, the new iPad Supported Video Formats & Movie Formats
    H.264 video up to 1080p, 30 frames per second, High Profile level 4.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;
    MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;
    Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    Another way. You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
    Secrets of the iPad Camera Connection Kit
    http://howto.cnet.com/8301-11310_39-57401068-285/secrets-of-the-ipad-camera-conn ection-kit/
     Cheers, Tom

  • I have a numbers spreadsheet for tracking company data.  I want to copy the format of the spreadsheet (rows, columns,and formulas) but have all of the data fields be blank for the new year.  How do I do that?

    I have a numbers spreadsheet for tracking company data.  I want to copy the format of the spreadsheet (rows, columns,and formulas) but have all of the data fields be blank for the new year.  How do I do that?

    click and hold on one cell, then drag to select the range, then release, then type the delete key.  Only inlude cells in the range you do not want to keey the contents of the cell.  You can remove one-off cells by holding the command key and clicking cells to add or remove as needed.
    You can download the Numbers users guide here:
    http://support.apple.com/manuals/#productivitysoftware

  • To change the format of the list

    Hi Guys ,
    I have schduled a batchjob its a report program runs every week and after completion of the job it sends mail to the concerned guy  with the details of the report .Its an Standard report everything is configured by using SM36 transaction .
    Everything is fine but we have to change the format of the report to CSV could any one can guide me how can we change the format .
    Thanks in advance,
    Sathish.M

    CSV means a text file, where the columns are separated by a character ";".
    The best way to change a list to CSV is to create an internal table in the ABAP, with the structure of the required CSV.
    You have to fill in this internal table.
    Because you are running the program in background, you can't download the file, the best would be to store the file on the server in a separated directory.
    Regards
    Tamá

  • ICS 2: Can I change the format of the date displayed by Calendar Server from M/D/Y to D/M/Y using JavaScript?

    Can I change the order in which the month and day are displayed in Calendar
    Server using JavaScript? Specifically, I would like the date to be displayed
    in the format D/M/Y instead of M/D/Y.
    <P>
    Yes. You can change the format of the date by editing the JavaScript variable
    in the file <I>
    loadpoint</I>/CalendarServer/cal/uicust/en/main.html
    . The variable is located in the
    "Misc" section in the
    following line:<BR>
    <P>
    i18n['def date order'] = 'M/D/Y';
    <P>
    Edit the line as follows:<BR>
    <P>
    i18n['def date order'] = 'D/M/Y';

    Hello Mark,
    yes, it is possible. In Calendar Express under
    "Options | Settings -> Date"
    "Show brief dates in the following order: Date, Month, Year".
    BTW.: iCS 5.0 P4 is out since August, 2001. It's worth upgrading!
    Regards,
    Jakob.

  • Does Time Machine backs up also the format of the volume?

    Since many softwares cannot be installed on case-sensitive volume, so I erased the whole volume and install OS X Mountain Lion with format of OS Extended(Journaled). Then I use Time Machine backing up to the new system.
    But now when I'm trying to install Adobe softwares, here's what I see.
    still, It hints that this is a case-senstive volume.
    Then I go to check the Disk Utility:
    Very weired! It shows as "Mac OS Extended(Journaled) in the Drop-down list, but "case-senstive, journaled) in the discription in bottom.
    Anyone has some clues of this??
    Thanks.

    As well as doing backups and other things, you can use Disk Utility to create RAID volume sets. 
    Returning to the image you posted, RAID is selected at (1) and so it thinks you are about to create a RAID volume.  The format for the new volume would be as shown at (2).  On the other hand, the volume at (3) is selected and it is that volume's format which is shown at (4). 
    I don't think you wanted to create a RAID set; maybe Disk Utility got a click you didn't intend for it.  RAID is explained a bit in the Disk Utility help.
    I have found a lot of good information about Time Machine at this site: 
      http://pondini.org/OSX/Home.html
    To go back to your original question: 
    > Does Time Machine backs up also the format of the volume?
    My guess would be "No"; but see pondini.org for a definitive answer.

  • How to change the format of the cell in input schedules

    Hi gurus
    I tried to change the format of the cel in input schedulesl, but I can not, for example
    when I insert 80 in the cell, and i send the data the system switches to -80 and the report shows (80) y when i insert -80, the system switches the number to 80
    I want it when you insert 80, the system keeps 80 and do not change
    Anyone know how to do that?
    thanks
    regards

    Hi,
    The other experts have guided you with the steps to change the property. However, you need to understand why is the design like this and what impact can it have on your system.
    Usually, the accounts defined belong to the PnL or BL statements. There definitely can be some other accounts as well. The PnL and BS accounts can be either income (INC), expense (EXP), asset (AST) or liability and equity (LEQ). Changing the account type of these type of accounts can heavily impact your financial statements. So, you should carefully think over this before changing the property.
    Hope this helps.

Maybe you are looking for

  • How do I move my Creative Suite from my iMac to my Mac Pro laptop?

    I bought a Mac Pro laptop because I need to work away from my iMac. How can I get my Creative Suite on my laptop without having to buy a new Creative Suite?@

  • Crystal v7 export to pdf

    Hi, I would like to be able to export to pdf in version 7 with SP2, this feature is not able in the export dropdown.  Any help would be appricated. cheers Mo

  • Prime Infrastructure to manage WLC 5760 with IOS XE 03.03.03

    Hi there Is IOS XE 03.03.03 on WLC 5760 to be managed via Prime infrastructure 2.1 or what version do I need? It seems to be not fully supported with 2.1... Thanks and best regards Dominic

  • Debugging a project!

    Hello ! I have installed Sun IDM 7.0.1 and I am suing Net beans 5.5 IDE as a development tool. I was trying to debug a project and I get the following error : " com.waveset.util.WavesetException: Server exception: java.lang.NullPointerException" I ha

  • PROBLUM IN RESULT OF IF ELSE

    Hi all i have table and data like this sale_order_id  QTY     item_type 12554          58     DYEING 12554          30     CUTTING 12554          58     PRINTINGAND MY CODE IS LIKE THIS DECLARE      a_qty NUMBER;      a_sale_order_no VARCHAR2(100);