How to read MetaData

Hello,
im trying to read some metadata which I add to the Media Element
e.g.
mediaElement.metadata.addValue("mediatitel", mediaList.media[i].mediatitel);
how can I read this Metadata when the media element is on the stage

Brian, Im doing following:
                    var imageResource:URLResource = new URLResource(mediaList.media[i].@url);
                    var mediaElement:MediaElement = factory.createMediaElement(imageResource);
                    var metaData:Metadata = new Metadata();
                    metaData.addValue("mediatitel", mediaList.media[i].@mediatitel);
                    mediaElement.addMetadata("mediaInfos",metaData);
then I add the Image Element to a serial Element
then
            mediaElement.addEventListener(MediaElementEvent.METADATA_ADD,onMetadataAdd);
this event is never fired.
when I want to read the metadata on the displayobjectchange event
var metadata:Metadata = mediaElement.getMetadata("MediaInfos");
trace(metadata.getValue("mediatitel");
I got the metadata but not the one for the right element.

Similar Messages

  • How to read metadata (such as artist  trackname) from mp3 stream properly?

    Hi,
    while playing with JavaFX i would like to read metadata from a mp3 stream ( internet radio)
    to display information such as author, artist , trackname..
    Anbody could give some code example to show how to achieve that?
    Any help would be appreciated..
    Thank you,
    Lacos

    Thank you for your help. I tried once more but somehow i don't get it.
    Here's my code:
    binding the JavaFX media player to variable "player"..
    var player =
         MediaPlayer {
           repeatCount:MediaPlayer.REPEAT_FOREVER
            media : Media {source:mp3RadioStream}
    starting playing the stream when user clicks in a rectangle area
    and (hopefully ever printing some metadata :-) ..
    Rectangle {
                  opacity: 0.0
                  x: 10 y: 80 width: 128 height: 126
                   onMouseClicked: function(e:MouseEvent):Void
                        println("mouse clicked ..");
                        println("setting radio stream..");
                        player.media = Media {source: mp3RadioStream};
                        println("play init..");
                        player.play();
                        println("playing..");
                        // printing some metadata
                         for (a in player.media.metadata) {
                            println("metadata key: {a.key} , value: {a.value}");
                   }Any help, especially some explicit code example would be very appreciated..
    It has to be a silly error on my side but i really dont get it :-/
    Tried to play the mp3 stream with winamp an the stream definitly has some metadata like
    artist , trackname..
    Thx for your help,
    Lacos

  • How to read metadata from a pdf file

    hello
    i have got xmp sdk for windows.
    i want to read the metadata from a pdf file but i cannot
    find a way to do so.
    i cannot understand that which method to use to open the file whose metadata i want to read.
    if someone can tell me by an little code example then it would be great help.
    thanks

    The sample XAPDumper read metadata in a file (PDF or not) if it is valide. If you want to keep the XAPMeta object, don't delete this object in ProcessSubstring().

  • How to read XMP metadata from a Jpeg

    This seems like it should be a no-brainer, but I can't find any classes to do this ?? I can find classes to read song titles from MP3 files, I want to do similar with jpeg image files.
    In photoshop and lightroom you can set up titles and captions (and copyright info) in the metadata. When you save a jpeg this gets embedded in the file.
    How to read this info and parse it and use it once you have loaded it into a BitMapData???
    I am Flash/AS3.0 code only no IDE -  please no flex/AIR examples!
    Thanks!

    http://www.adobe.com/devnet/xmp/

  • How to read the EXIF metadata from a .jpg file

    hi,every one
    Photos which are captured by a digital camera, have some parameters, such as the exposure time,ISO speed rating,camera model,focal length etc.
    How to read this parameters???

    Is it listed in the IIOMetadata?
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.imageio.*;
    import javax.imageio.metadata.*;
    import org.w3c.dom.*;
    public class IIOMetaDataExample {
        public static void main(String[] args) throws IOException {
            URL url = new URL("http://today.java.net/jag/bio/JagHeadshot-small.jpg");
            Iterator readers = ImageIO.getImageReadersBySuffix("jpeg");
            ImageReader reader = (ImageReader) readers.next();
            reader.setInput(ImageIO.createImageInputStream(url.openStream()));
            IIOMetadata metadata = reader.getImageMetadata(0);
            displayMetadata(metadata);
        public static void displayMetadata(IIOMetadata metadata) {
            String[] names = metadata.getMetadataFormatNames();
            for(int i=0; i<names.length; ++i) {
                System.out.println();
                System.out.println("METADATA FOR FORMAT: " + names);
    displayTree(metadata.getAsTree(names[i]), 0);
    public static void displayTree(Node node, int indent) {
    indent(indent);
    String name = node.getNodeName();
    System.out.print("<" + name);
    if (node.hasAttributes()) {
    NamedNodeMap attrs = node.getAttributes();
    for(int i=0, ub=attrs.getLength(); i<ub; ++i) {
    Node attr = attrs.item(i);
    System.out.print(" " + attr.getNodeName() + "=" + attr.getNodeValue());
    if (node.hasChildNodes()) {
    System.out.println(">");
    NodeList children = node.getChildNodes();
    for(int i=0,ub=children.getLength(); i<ub; ++i)
    displayTree(children.item(i), indent+4);
    indent(indent);
    System.out.println("</" + name +">");
    } else
    System.out.println("/>");
    static void indent(int indent) {
    for(int i=0; i<indent; ++i)
    System.out.print(' ');

  • How do I get Bridge and Lightroom to respect - read - metadata changes?

    I cull my wedding images in Bridge (CS 6) and then export them into LR 4.  I typically rate images as I'm culling, but when I import those images into LR, the ratings don't carry over.  Likewise, when I label images in LR and export them, Bridge shows all the color labels as white - regardless of which label was actually assigned. 

    Lr saves all edits and any other metadata changes in its database (= the catalog).
    Additionally to the catalog you can <save to file>,i.e. to a xmp-file (in case of a Raw photo), or in the header (but not in the image pixels!) of a JPG, TIFF, or PSD.
    Saving to file is done by
    _ either checking the box <Automatically save changes to xmp> in >Edit >Catalog Settings >metadata tab, or manually
    _ by going >Metadata >Save metadata to file (in Lr Library Module), or
    _ by going >Photo >Save metadata to file (in Develop Module.
    When you save manually to file you can select multiple photos in the Grid Mode and do <Save metadata to file>.
    This saving to file is necessary in order that Bridge can read and display the Lr edits because Bridge cannot read the Lr catalog.
    Bridge saves to file automatically (there is no option of deselecting it) and Lr will read the metadata from Bridge when you import the image into Lr.
    In case of an image that is already in Lr you have to select >Metadata >Read metadata from file (in Lr Library Module), or 
    by going >Photo >Read metadata from file (in Develop Module). Without this <Read metadata from file>, Lr will not display any changes made in Bridge after the import  into Lr. Since this <read metadata from file> would overwrite any different edits you may have done in Lr, it is best to do this before you do further edits in Lr.
    The rating stars should transfer from Bridge to Lr and vice versa without problems.
    For the color labels to transfer correctly you have to make the textual descriptions for the individual colors identical in Lr and in Bridge - down to upper/lower case, commas, hyphens, underscores, etc.
    Having said this:
    I would recommend that you do not use Bridge for culling your images. You can do the culling just as easy in Lr. When you manage photos in Bridge and in Lr, you will always have the problem of synchronizing the metadata. This can be done but it needs a meticulous workflow that is adhered to strictly.
    There is nothing in Bridge that Lr cannot do *). Make your life easier and choose Lr as your only image management and editing tool, except for CS6 itself (I mean Photoshop itself, not the ACR ).
    *) Well there is one thing: Since Lr is not a browser-based program it does not automatically "see" what is on a hard drive. Photos need to be imported in order that Lr will "see" them.
    Bridge is browser-based. Whatever photo is on a hard drive - irrespective of which program put it there - it will be "seen" by Bridge.
    So Bridge is a valuable tool if a photo is not displayed in Lr and you want to check if it is in a particular folder.

  • Can any one tell me how to enable metadata API in salesforce developer acc?

    hi,
    i'm new to salesforce. i've just registered as a developer user in that site. can anyone tell me how to enable metadata API in my account. then only i can able to develop projects.
    plz help

    And how exactly is that related to Sun or Java? Ask them.

  • Reading metadata with exiftool

    OK, let's bounce this one around and see if anyone has an elegant solution!
    I'd like to read metadata that is in images/sidecars, but which LR doesn't display, and put the information into custom fields. While it would be great to have direct access - ie the SDK should let you read XMP data from files or from the Additional_metadata SQL table - in in its absence I am using Exiftool to extract that information. Where I hit a roadblock is that LRTasks can send the correct command line, but LRTasks.execute only returns a 0 or 1, the OS exit message, and not the Exiftool string.
    So I'm forced to look at alternatives. One would be to make Exiftool generate a temporary file, and then attempt to read that. Any other ideas - or support for the above feature request ?
    John

    Hmmm, I responded via email 8 hours ago yet it hasn't shown up. This response might be duplicated if there's just a big latency:
    John - Yes, it's frustrating knowing how much powerful functionality is sitting there but not accessible to us. I hope the SDK opens up much more in upcoming versions.
    Let me know when/if you proceed with this particular idea. I have a project I'm going to need this for in about a month or so and it'd be nice to not reinvent the wheel. If you won't need it until after that, I'll get it going and then we can compare notes when you're ready. Plus, I'm on Windows and would need a Mac user to verify things are working - I assume you'll need the reverse (?).
    db

  • What is([103]) xcscredd(103) deny file-read-metadata /Users

    Hi all, Recently I found that after installed Mac OSX Server and some VPN server , on system monitor recorded many messages about :
    ([103]) xcscredd(103) deny file-read-metadata /Users , and gen many report on
    file:///var/log/asl/AUX.2014.02.20/383655
    do any member know what is these happened ? and how to stop it.
    I set OSX server on private network ,  success connect iPhone to OSX VPN server but cannot access internet from it. Oh....
    not user frirendly to operate OSX Server...
    any helps to slove these 2 problem ?

    1. Open the terminal
    2. type
    sudo vim /Applications/Server.app/Contents/ServerRoot/System/Library/Sandbox/Profiles/xcscredd.sb
    3. enter
    (deny file-read*    (subpath "/Users")    (with no-log) )
    into the file
    To edit the file you have to press i.
    4. The press ESC and then :wq (Enter)
    But you shouldn't do things like this, if even don't know how to change a text file.
    It's on your own risk.

  • How to view metadata in iTunes music store

    I have to figure out how to view metadata for songs that have been funded by a public funding agency. The artist/record label is supposed to thank the funding agency in the metadata of albums/singles. How can I view this in the iTunes store (without purchasing the songs or album) to see if the text is there?

    If you already have the lyrics loaded in iTunes, this free plug-in will display the cover art with the lyrics superimposed. It is actually a visualizer.
    http://www.imagomat.de/coverversion/

  • How to put metadata in iweb?

    Anyone knows how to add metadata in iweb?
    I found something called iWebmore, a program made by a person out there, but it seems old (ilfe06?) and doesn't really cut it.
    Any good ideas how to do it?
    Ken

    Noone knows?
    If you don't want to use iweb more, then you open your published .html pages with a text editor and add whatever you want. You have to redo it every time you republish.
    If you are concerned about search engines, search the forum for Google or search engine to fine other discussions on the topic.

  • Will LR4 read metadata from NX2 NEFs

    Hello, I can't seem to find an answer to this, so perhaps someone can assist:
    I have just bought a refurb' imac 27" and have imported my photos to the imac, inside a folder I have created inside picture called 'Lightroom 4 photos'
    The photos were originally NEFs on my windows laptop, and were imported/edited originally using the Nikon programs transfer, view nx and capture nxw,  They all contain my copyright info etc, and have been keyworded. I am about to import them into LR4, but a little niggle is stopping me. I understand that LR4 won't read my NX2 edits, but can't find out whether a) LR will read the existing metadata so I have to do nothing, or b)I will have to enter all metadata again into lightroom.
    I have about 800 photos, so wouldn't be a huge problem if I needed to re-enter
    I would appreciate any help, and further comments, Thanks
    Roy Kaye

    Hi finesse99,
    NxToo was designed primarily to be able to use NX2 as editor in a Lightroom-centric workflow. Where Lightroom-centric means, among other things: Lightroom is for metadata, NX2 can be used for develop edits.
    To make a longer story shorter, there is no specific feature to transfer metadata (e.g. keywords and ratings) from NEFs, as written by NX2, to NEFs in Lightroom (catalog).
    There is a way to do this, which should be fine for a one-time shot (not optimal for a convenient ongoing workflow), e.g.
    * transfer metadata to xmp using exiftool command:
    exiftool -xmp -b {filename}.nef > {filename}.xmp
    Note: this will overwrite all of your existing xmp files.
    (consider puting this in a batch file, or just change the filename of an exiftool executable to implement batch mode, for example - this filename will do it: 'exiftool (-xmp -b -o %d%f.xmp).exe', but *won't* overwrite existing xmp files, so you'll need to pre-delete them)
    (another option is to use a shortcut to pass parameters - documentation on exiftool website...)
    Drop all of your nefs on the exiftool executable, shortcut, or batch file, then read metadata in Lightroom.
    Lightroom will incorporate the part it understands (e.g. ratings and keywords) and leave the rest, so it's a fairly safe operation, although *do* backup your catalog first just in case.
    Consider re-saving xmp of all nefs afterward, in Lightroom, so xmp files are re-populated with all Lr-supported metadata, if you like having the xmp sidecars around and up2date. Otherwise, all xmp files can be deleted, since NX2 metadata will be now be in Lr catalog.
    The other option I mentioned previously (extract jpeg previews from the NEFs in Lr so NxToo transfers metadata to the jpegs, then sync the jpegs back to the nefs using RawPlusJpeg or Syncomatic) will not work, since Lr metadata will take priority over NX2 metadata. (one could easily modify the code to change this behavior, but that would take lua coding know-how).
    If you need help with the my plugin(s), please contact me outside the forum. help with exiftool can be done in-forum since people don't get so irked when I help other people with software that wasn't written by me personally .
    Rob

  • Looking for pure Java API to read metadata from an MP4 file.

    Hi, I am looking for a pure Java api that can read MP4 metadata. I have been trying to look online for one but have not found anything
    suitable. If there are no good api's, can someone point me to resources on how to parse metadata from an MP4, tutorials would be great
    as well. I have looked online for that as well but have not found much. Any help would be greatly appreciated.

    Cross posted
    http://www.java-forums.org/new-java/59652-looking-pure-java-api-read-metadata-mp4-file.html
    http://www.coderanch.com/t/580833/Streams/java/Looking-pure-Java-API-read
    http://stackoverflow.com/questions/10568588/looking-for-pure-java-api-to-read-metadata-from-an-mp4-file
    db

  • How to add metadata to split tracks

    I know how to do it to a single track but when i click on the next track it still show the name from the previous track. How to add metadata to split tracks for like a mixtape?

    Thanks for the screenshots, very helpful.
    Once you split them into different tracks, and each track is a different file on disk (as shown in your Windows Explorer / Finder screenshot), you'll want to:
    Go through each file
    Enter the desired metadata via the Metadata Panel (see below)
    Save each file
    If you're working with MP3 files, the relevant fields are the ID3 tags shown in this dialog:
    If you're saving as WAVE files, the relevant RIFF metadata fields are shown in this dialog
    Once you enter the info you want into those fields and the save the file, then it should show up in Windows Explorer which is what I think you're going for.

  • How to add metadata to .xdp form

    Hi,
    I am currently investigating how to add metadata to an xdp form in LifeCycle Designer. I have read the help contents that Adobe provide however I am unclear as to how exactly the metadata is included with the form. Are there specific elements that are included in the xml? Also is the metadata that is included specific to a field, area, etc within the form?
    The metadata I wish to include with the xdp form will contain information regarding the manner in which the form can be used at a later stage, for example whether a form can be printed. In this case I would envisage the following: <printable>true</printable> as part of many different elements within the metadata.
    If anyone can offer any insight into this it would be greatly appreciated.
    Thanks in advance.

    Thanks for the reply,
    The way you have described seems to be for individual fields. Is it possible to include metadata that applies to the whole form rather than just an individual field. I have been looking at manipulating the xml. I am not familiar with LiveCycle Designer and as such I was thinking that you could possibly add elements to the xml in the following section:
    <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 4.2.1-c041 52.337767, 2008/04/13-15:41:00        ">
       <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
          <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
             <xmp:MetadataDate>2009-05-15T08:01:47Z</xmp:MetadataDate>
             <xmp:CreatorTool>Adobe LiveCycle Designer ES 8.2</xmp:CreatorTool>
             <xmp:Name>Test1</xmp:Name>
             <xmp:Editable>True</xmp:Editable>
            <xmp:Printable>True</xmp:Printable>
          </rdf:Description>
          <rdf:Description xmlns:pdf="http://ns.adobe.com/pdf/1.3/" rdf:about="">
             <pdf:Producer>Adobe LiveCycle Designer ES 8.2</pdf:Producer>
          </rdf:Description>
          <rdf:Description xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" rdf:about="">
             <xmpMM:DocumentID>uuid:59354ca2-6c12-4c0a-aefa-649133cd4486</xmpMM:DocumentID>
          </rdf:Description>
          <rdf:Description xmlns:desc="http://ns.adobe.com/xfa/promoted-desc/" rdf:about="">
             <desc:version rdf:parseType="Resource">
                <rdf:value>8.2.1.3158.1.475346.466429</rdf:value>
                <desc:ref>/template/subform[1]</desc:ref>
             </desc:version>
          </rdf:Description>
       </rdf:RDF>
    </x:xmpmeta></xdp:xdp>
    As you may see from the code snippet above I have added three elements: name, editable and printable. The information within these elements would be extracted at a later stage and used by another application to make decisions such as is the form printable, it the form editable etc. Do you know is this the correct place to be adding these elements? The addition of these elements does not cause an error within Designer so I am assuming that there should be no problem accessing / modifying these fields later? 
    Thanks

Maybe you are looking for

  • If You Can Solve This One, Then You Seriously Win

    Here's the deal. I have a 3G 15gig iPod that I refuse to let die. It has a new battery that I recently installed. It will not charge through firewire to the wall or to my macbook pro, nor will it charge through usb (which goes without saying on 3G's)

  • Automatic creation of Notification using T-code IK11

    Hi Gurus,   i got stuck in a requirement, where they want Automatic creation of notification using T-code IK11. I am using EXIT IMRC0001.     Please guide me that with what logic i should go. Thanks Regards VICKY Moderator Message: Vague Question. Ex

  • Skewed display issues

    We currently own a PB G4 15" TI 667Mhz., OSX 10.4.11 ver. as our second laptop. We are experiencing display issues were the screen seems to skew & distort. Is this something that can be fixed with perhaps a software update or, are we looking at a maj

  • BT PRIVATE USAGE

    hey, we have BT infinity 40gb usage and after two weeks we have used up 32gb already. I may be the main culprit for that downloading and veiwing a lot of vids and that, but my family don't know about it and i REALLY DO NOT WANT THEM TO FIND OUT. they

  • How to Export photos and videos from Mac to iPhone?

    Hi everyone, I was trying to export a video from my Macbook Pro (Mid 2014) running latest version of OS X to my iPhone 5 (running iOS 8). I have tried everything in iTunes and iPhotos to be able to export Photos and videos to 'Photos' icon in my iPho