locked
Radio Streaming in Windows Mobile RRS feed

  • Question

  • Hello,

    I want to play the streaming radio on my windows mobile 6. I will listen for the data from the Url provided by client.

    I have try to search it on the net but was not able to found any solution for it.

     

    Can someone help me out here

     

    Thank,

    Thursday, June 16, 2011 8:24 AM

Answers

  • The PHP code is for the PC. The relevant part of the article was the open source projects for decoding SHOUTCast streams for the Windows Mobile platform: TCPMP, GSPlayer, MortPlayer.

    I was mistaken about using DirectSound. If you still want to develop your own, For Windows Mobile you can use:

    • DirectShow filters: http://blogs.msdn.com/b/medmedia/archive/2007/01/16/multichannel-audio-in-windows-ce.aspx
    • waveOut: http://windowsmobiledn.com/playing-audio-on-the-pocket-pc/
    • PlaySound: http://windowsmobiledn.com/play-wav-sound-on-pocket-pc

    These APIs are for C/C++. Your last post mentioned .net, and I don't know if the C# API has equivalents or if you will have to P/Invoke the native APIs directly.

    -PaulH

    • Proposed as answer by Jesse Jiang Tuesday, June 21, 2011 9:19 AM
    • Marked as answer by Jesse Jiang Friday, June 24, 2011 8:56 AM
    Friday, June 17, 2011 2:18 PM

All replies

  • A quick search found this blog post that might be useful. http://blog.motiwala.com/2007/07/02/streaming-audio-for-windows-mobile

    Really, it depends on what protocol you want to stream. For something like SHOUTCast, you might try something like Kinoma.

    If you want to write your own, then you need to write a client that listens for streams, decodes them to a wav format and then pipes it to the audio device (probably using something like DirectSound). The implementation will depend on the streaming protocol.

    -PaulH

    Thursday, June 16, 2011 1:42 PM
  • Hello,

    Thanks for your reply.

    I have to listen the stream from HTTP protocol, sample radio url will be http://shoutmedia.abc.net.au:10326

    When you open this URL in windows media player, you can heat the music.

     

    Now i have to use this URL in my mobile application and here the music there.. I have seen your blog link, the code is in PHP :(

    I have try to search for DirectSound, but found couple of links that its not supported in Windows Mobile

    http://objectmix.com/dotnet/98552-using-directx-directsound-windows-mobile.html

     

     

    Friday, June 17, 2011 5:02 AM
  • The PHP code is for the PC. The relevant part of the article was the open source projects for decoding SHOUTCast streams for the Windows Mobile platform: TCPMP, GSPlayer, MortPlayer.

    I was mistaken about using DirectSound. If you still want to develop your own, For Windows Mobile you can use:

    • DirectShow filters: http://blogs.msdn.com/b/medmedia/archive/2007/01/16/multichannel-audio-in-windows-ce.aspx
    • waveOut: http://windowsmobiledn.com/playing-audio-on-the-pocket-pc/
    • PlaySound: http://windowsmobiledn.com/play-wav-sound-on-pocket-pc

    These APIs are for C/C++. Your last post mentioned .net, and I don't know if the C# API has equivalents or if you will have to P/Invoke the native APIs directly.

    -PaulH

    • Proposed as answer by Jesse Jiang Tuesday, June 21, 2011 9:19 AM
    • Marked as answer by Jesse Jiang Friday, June 24, 2011 8:56 AM
    Friday, June 17, 2011 2:18 PM