06-01-2009 03:57 PM
I am trying to write an applcation to stream audio from our Windows Media Server. Several questions to start:
1. Do I have to implement a buffered stream like in link: http://www.blackberry.com/knowledgecenterpublic/li
2. I tried to use
_player = javax.microedition.media.Manager.createPlayer("htt
but got error like "javax.microedition.media.MediaException: unsupported content type - audio/x-ms-wax". Why's mp3 mapped to "audio/x-ms-wax"?
3. How about live streaming? Can I use the syntax like in 2 to live stream an audio?
Thanks a lot!
Solved! Go to Solution.
06-02-2009 04:22 PM
1- The main advantage for using the buffered stream as in the sample is that you get to save the file locally for future play. If you play it in the future it can be played from a local file.
2- It should work fine. Make sure that the server is returning the right mime type.
I remember using something like that and it worked fine. The only difference that I had ( which may not matter) is to split the start :
_player = Manager.createPlayer(uri);
I needed to do things after the prefetch.
3- It depends on the network performance. If you are on a 3g, it works perfect. On an EDGE ( 2g) it can be sluggish.
06-02-2009 05:52 PM
how did you set the returning mime types on the Windows Media Server 2003? I googled around but they were about the MIME types on IIS, not Windows Media Server where I want to stream the audio. Thanks a lot!