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

Similar Messages

  • How to download 'all photos at a time' from shared stream?

    I have a photo stream shared album (with 120 pictures) on icloud.  This is shared from iPhone.  I opened the link on my mac/windows in the browser.  Now, how to download 'all photos at a time' from shared stream?  I don't want to download each photo at a time.  There are 100s of photos to download.  I can't open one photo at a time and keep downloading them separately.  There should be a way to download all photos from a shared stream.  Please let me know how you are dealing with this?

    1.you need create a dba user in your database
    2.you can run the script as command
    eg. use PL/sql developer ->new command window->open script-> run.

  • 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 a continuous temperatur​e signal from a Pyrometer via RS-232

    I'm trying to read and graph a continuous signal from a Pyrofiber Lab pyrometer which is coming in through an RS-232 cable. As far as I can tell there are no device drivers for this instrument (or any other pyrometers). 
    If I have the pyrometer take single measurements I can get those into LabView using the Instrument I/O Assistant, but only as an ABC string reading " 'emmisivity value' 'temperature' 'corrected temperature'" and not as individual numbers or data that I can use/graph. If I have the pyrometer in High Speed Transmit mode (which is the mode I need it in), I can't read the signal at all. How can I get LabView to continuously read (and record or graph) the incoming signal? And is there some way to parse the signal when it comes in as a string with " 'time' 'emissivity' 'temperature' 'corrected temperature'"?
    I'm very new to LabView (and programming in general), so any hints on a good starting point would be appreciated. 
    Solved!
    Go to Solution.

    progers - There is not a specific solution, as there is not a device driver for this device (assuming you are also using a pyrometer).
    There are serial communication examples in LabVIEW, by going to Help >> Find Examples >> Hardware Input and Output >> Serial. 
    You will need the programmer's manual for the device to know what serial commands to use to talk to the device (see Dennis's post above).
    Best Regards,
    K. Anderson
    Applications Engineer
    National Instruments

  • How to read avi file created in labview from matlab?

    in labview, i created an avi file using 'microsoft video 1' compression codec and with each frame i have a string data attached to it.
    i tried to load the avi file in matlab for further processing, but 'aviread.m' doesn't seem to work.
    also does anyone know in matlab how can i play/read an avi file (created by labview) frame by frame and also have access to the data string attached to each frame?
    thanks!

    Maybe you can use Java.
    http://stackoverflow.com/questions/9155642/how-to-read-an-excel-file-in-c-sharp-without-using-microsoft-office-interop-exce
    Or, get excel Viewer.
    http://www.microsoft.com/en-us/download/details.aspx?id=10
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • How to display metadata such as data load date in answers report title?

    We have a requirement to display the last load date of the data relevant to the report the user is viewing. We have such information stored in a metadata table listed by the fact table the report is referencing. Our proposed solution is to create new answers reports off of this metadata table and put each report (with the appropriate filter on the fact table) on each dashboard section where the corresponding report is placed. One problem with this approach is the load date information will not be reflected in the print form of the report as the date is dashboard content - not report content. Is there any way to overcome this situation (other than create a ton of variables specifically created for this purpose)? I'm open to entertaining javascript ideas, if necessary. I would love to know how to push this OBIEE envelope further. Thanks in advance.

    Hi,
    I discuss with some people who are familiar with SharePoint, we both thought Windows Explorer may
    not accept the custom metadata.
    if we want to do some customization, it is recommended to ask for help in development forum.
    http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?category=windowsdesktopdev
    If you have any feedback on our support, please click
    here
    Alex Zhao
    TechNet Community Support

  • 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.

  • How to read the contents of XML file from my java code

    All,
    I created an rtf report for one of my EBS reports. Now I want to email this report to several people. Using Tim's blog I implemented the email part. I am sending emails to myself based on the USERID logic.
    However I want to email to different people other then me. My email addresses are in the XML file.
    From the java program which sends the email, how can I read the fields from XML file. If any one has done this, Please point me to the right examples.
    Please let me know if there are any exmaples/BLOG's which explain how to do this(basically read the contents of XML file in the Java program).
    Thank You,
    Padma

    Ike,
    Do you have a sample. I am searched so much in this forum for samples. I looked on SAX Parser. I did not find any samples.
    Please help me.
    Thank you for your posting.
    Padma.

  • How to read a alv grid row data from standard program

    Hi All,
    I am working on transaction LBK1. Actually when you will open this transaction in the left hand side it will show you the data in tree. When you click on a notification node it will show the relevant data in right side. In which there is a operation tab . In this tab the data comes in alv grid. If user selects a row then I have to get that selected row value. There is also a toolbar above on the tree side. There are some buttons which execute our implementation class where I can put the code.  
    Can anyone please help me out? How I can read that selected row in our class/method?
    Thanks in advance.
    Best Regards
    Ritu

    Setting and getting selected rows (Columns) and read line contents
    You can read which rows of the grid that has been selected, and dynamic select rows of the grid using methods get_selected_rows and set_selected_rows. There are similiar methods for columns.
    Note that the grid table always has the rows in the same sequence as displayed in the grid, thus you can use the index of the selected row(s) to read the information in the rows fronm the table. In the examples below the grid table is named gi_sflight.
    Data declaratrion:
    DATA:
    Internal table for indexes of selected rows
    gi_index_rows TYPE lvc_t_row,
    Information about 1 row
    g_selected_row LIKE lvc_s_row.
    Example 1: Reading index of selected row(s) and using it to read the grid table
      CALL METHOD go_grid->get_selected_rows
        IMPORTING
          et_index_rows = gi_index_rows.
      DESCRIBE TABLE gi_index_rows LINES l_lines.
      IF l_lines = 0.
        CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
             EXPORTING
                  textline1 = 'You must choose a valid line'.
        EXIT.
      ENDIF.
      LOOP AT gi_index_rows INTO g_selected_row.
         READ TABLE gi_sflight INDEX g_selected_row-index INTO g_wa_sflight.
        ENDIF.
      ENDLOOP.
    Example 2: Set selected row(s).
      DESCRIBE TABLE gi_index_rows LINES l_lines.
      IF l_lines > 0.
        CALL METHOD go_grid->set_selected_rows
            exporting
              it_index_rows = gi_index_rows.
      ENDIF.

  • How to read the configuration of tree table from the variant of Personalization of the Tree UIBB?

    Hi Experts !
    I have created an application using  Tree UIBB to display the list output along with personalization property. The user can save the settings of the output table such as shuffling of column position and hiding / display of columns in the variant.
    The export to excel button gives the output as per the current variant but I need to develop a custom export to excel button, on action of which I need to read the currently selected variant and the visble columns from the variant.
    I found that CL_FPM_TREE_ASSISTANCE gets the variant and columns from the personalization object, however, I am unable utilize it in my custom code.
    Please help or suggest any class which I can utilize.
    Thanks !

    Aristos Queue wrote:
    Alias name here wrote:
    ..second post telling me the 'propertys' of a control have nothing to do with the value is bizzare - via 'properties' for a LV control is the ONLY way to configure the specific type of a numeric...so via the numeric 'property nodes' should\would be able to query it's configuration.
    I do not see any way to set these things through the properties...
    I think he means by right clicking the control on the front panel and configuring with the properties dialog. The properties are exposed there, but not within the property nodes.
    Edit: You beat me.
    CLA, LabVIEW Versions 2010-2013

  • How to read 'clicked header' AND selected row from multicolumn listbox?

    I have a multicolumn listbox filled with 6 columns and about 500 rows.
    I want the user to be able to click on a column header, and sort the listbox alphabetically on that column. I've written the code for that, and that works. (using the 'itemnames' en 'get clicked col hdr' properties.)
    However, I also want to include the option, that when a user highlights a row, and then clicks on the header, that after the listbox gets sorted it scrolls down to the selected row.
    (So that the user doesn't have to search for it)
    And that's where things go wrong, because the value of the listbox changes to zero when you click on a column header. No I idea why it does that, but it's rather
    annoying. Can I change that behaviour somehow?
    Or any ideas how to get around it?

    My thanks to you and Jared.
    Seems I got a working solution now.
    Did take a while to figure out why your solution worked. Basicly, you're reading the row from a few iterations before.
    As soon as I understood that, I simplified it a little. Look at the attached file... I think it does the same. :-)
    Jared asked for the sorting routine. As I don't seem to be able to attach files when replying to comments, I took the liberty to include it here also.
    Basicly, I just use the 'sort 1D array' that comes with Labview 6. To be able to sort a 2D array, I convert every row to a cluster. That's something the 'sort 1D array' VI can handle nicely.
    To sort on the correct column, I just cut all columns in front, and paste them behind again. A
    fter sorting, I reverse the process.
    Anthony.
    Attachments:
    copy2_of_multicolumn.vi ‏26 KB
    sort_2d_string_array.vi ‏34 KB

  • How to read and write(a file .txt) from a URLConnection

    I try to read and write on one URLConnection. Is it possible ? How can i make it ?
    The reading part of my application work's but not the writting part
    That's a part of rhe code that i use to write :
    String Line = "Hi";
    MyUrl = new URL(this.getCodeBase(), FichierEvenement) ;
    Con = MyUrl.openConnection() ;
    Con.setDoOutput(true);
    Con.setDoInput(true);
    Con.setUseCaches(false);
    Dos = new DataOutputStream(new BufferedOutputStream(Con.getOutputStream( )));
    Dos.writeUTF(Line);
    Please help me :)

    What are you doing with the bytes written to the OutputStream? This info would help, but i do have a suggestion. I ran into this problem when trying to write strings using writeUTF. The output was all screwed up. So, maybe change your string to a character array. That way Unicode is displayed properly. This in conjunction with writing to an .html file instead of to the connection itself might work.

  • How to read and display table data entries from ERP in CRM

    Hello experts,
    I am new to CRM. I need to read data base entries from ERP in CRM system. What would be the best way to do . The table is a standard SAP table with a custom include (several customer fields). Calling a web service would be the best way..? or is there any other way that I can do it too.
    Also, to display these entries what would be the best tool? Should I built my own transaction/report to do it?
    Any advise or guidance would be a great kick start to learn the CRM development environment.
    Regards,
    jaffery

    Hi,
    Check the below wiki link if it helps.
    http://wiki.sdn.sap.com/wiki/display/CRM/Howtodisplayaz-tableinanassignmentblock
    Also, you can try an option of transaction launcher.
    Hope this helps.
    Regards,
    Chandrakant

  • How to read the name of .csv file from a particular folder using Oracle.

    Gurus,
    I have a folder called 'data_dir' in Oracle Server and it contains 10 different .csv files and the name of the each file is being suffixed by date and time(24 hrs format).
    First i need to read all the file names then i have to process those files by UTL_FILE to load the data into a relational table.
    Is there any mechanism is available in Oracle to read the file names?
    (In this case all the 10 different csv file names)
    If so, then please help me accomplish this.
    Thanks in advance.
    Regards,
    Venugopal.K

    Is there any mechanism is available in Oracle to read the file names?Sounds to me like you need to use External Tables (*not* utl_file).
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/et_concepts.htm

  • How to read 16 bits at a time from a file.

    Hi everyone:
    I have a homework problem that requires me to read from a file 16 bits at a time, which is a signed value. I have tried using the code below:
    try     {
         FileInputStream fis = new FileInputStream(fileName);
         DataInputStream dis = new DataInputStream(fis);
         System.out.println("Reading "+fileName+"...");
         int x,y;
         bytes = new int [];
         for(y=0;y<height;y++)      {
              bytes[y] = dis.readByte();
              dis.close();
              fis.close();
              System.out.println("Read "+fileName+" Successfully.");
         } // try
         catch(Exception e)      {
              System.err.println(e.getMessage());
              System.exit(1);
    But this code only reads a byte at a time, I need to read 16 bits at a time. Does anyone have any ideas?
    Any help is greatly appreciated.
    Celia

    DataInputStream has another method that does what you want.

Maybe you are looking for

  • Date format not working in XML Publisher

    Hi, We have applied a date format while formatting the report layout using the Template. The same is not getting reflected. The output is as follows : 5/1/2006 0:0:0 i.e date with time stamp. We require DD-Mon-RRRR format. The same has been tried usi

  • 16:9 Export trick from Final Cut Pro to iDVD

    If this is posted, I have not seen it. I have spent years trying to get a decent photo quality video on my widescreen tv without peoples faces looking like 4 pixel blocks. I think I have found a pretty decent result. This is for Photo Slide shows onl

  • "System cannot find the path specified" error message !HELP !

    Hi In doing a program to read a string from the buffer, I am getting an error message that says "cannot find the file specified" The file was created in a previous program and I verified it does exist at the specified location on my hard disk. Below

  • XBOX 360 on iMac?

    Sorry if other people have asked this, but can you play XBOX 360 on an iMac using EyeTV Hybrid? If so, will be able to output HD graphics?

  • Macbook Pro Retina Fan Speed with 3 vs 2 external displays

    Hello, When I'm in my home office, I often use my MacBook Pro Retina in Clamshell Mode (in a BookArc) with external displays. Originally, I used 2 external displays (2x 1920x1800), and the fan speed and temperature remained stable at the lowest end o