locked
Get stream title RRS feed

  • Question

  • Hello,

    please help me to find s solution of the small problem,

    I need to get title of radio stream, for example I have radio stream url, classic players show title (artist and song) of the stream, how can get it using MediaElement?

    I found similar topic http://stackoverflow.com/questions/1351853/silverlight-mediaelement-source-title for SilverLight, but MediaElement in the Windows Store App doesn't have Atrributes.

    I checked that TuneIn for Win8 shows title of that stream, I think there is can be simple method to get it.

    Thanks in advance.

    Thursday, October 10, 2013 6:32 AM

All replies

  • Hi Andev,

    I think there are markers inside. Did you try the MarkerReached-Event of MediaElement? It's fired when a Marker in the file is reached. Via the TimelineMarkerRoutedEventArgs you get the TimelineMarker that has the Properties Text, Time and Type.

    I'm not sure if this works for a radio stream url, but you should give it a try. :)


    Thomas Claudius Huber

    "If you can´t make your app run faster, make it at least look & feel extremly fast"

    twitter: @thomasclaudiush
    homepage: www.thomasclaudiushuber.com
    author of: ultimate Windows Store Apps handbook | ultimate WPF handbook | ultimate Silverlight handbook

    Thursday, October 10, 2013 8:48 AM
  • Hi Andev,

    I think there are markers inside. Did you try the MarkerReached-Event of MediaElement? It's fired when a Marker in the file is reached. Via the TimelineMarkerRoutedEventArgs you get the TimelineMarker that has the Properties Text, Time and Type.

    I'm not sure if this works for a radio stream url, but you should give it a try. :)


    Thomas Claudius Huber

    "If you can´t make your app run faster, make it at least look & feel extremly fast"

    twitter: @thomasclaudiush
    homepage: www.thomasclaudiushuber.com
    author of: ultimate Windows Store Apps handbook | ultimate WPF handbook | ultimate Silverlight handbook

    Hello, I tried it, but no results, sample here http://stackoverflow.com/questions/2775634/read-song-title-artist-from-a-live-audio-stream-with-silverlight-4
    Thursday, October 10, 2013 10:07 AM
  • Hello,

    There is no simple answer to your question. The answer depends on the protocol of the stream source that you are trying to support and the actual metadata that is being generated by the source. If you can provide this additional information maybe we can help.

    Thanks,

    James  


    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Friday, October 11, 2013 12:10 AM
    Moderator
  • Hi James,

    for example stream http://mega.imgradio.pro/MegaRadio

    If I open it in the iTunes or another player (Winamp, AIMP, VLC), it shows a title, I asked admin of the stream server, he said that I need to get "title" from the stream. Could you please suggest a solution?

    Friday, October 11, 2013 4:33 PM