Re: [android-developers] Re: MediaPlayer and 1.5 vs 1.6
Arijasoft developed android online radio SDK using this AOR SDK you can play shoutcast/icecast ( mp3/aac) radio streams on android for more details look in to http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.php http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.phpThanks On Wed, Oct 21, 2009 at 8:14 PM, Marco Nelissen marc...@android.com wrote: I meant: implement your own http server to run on the phone. This server would also be a shoutcast client, and connect to the remote shoutcast server. It would process the data, and then pass it to its own clients as if it were serving up regular mp3 files. Your MediaPlayer would then connect to localhost to get the mp3. But again, that seems like a lot of trouble when the majority of devices are already running Donut. On Wed, Oct 21, 2009 at 4:58 AM, coolbanana johanst...@gmx.de wrote: Hi Marco, how kann i the datestream from Inputstream = connection.getInputStream (), over one local http server to MediaPlay at SetDataSource()? Is it that u mean. i had try it with SetDataSource(FileDiscriptor), aber the only way that i found to set the FD with Socket-ParcelFileDescriptor-FD does work never! can u tell me, how should it be,pleas? Thanks C.B --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~--- -- Thank you, Dilli Rao. M www.arijasoft.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: MediaPlayer and 1.5 vs 1.6
Hi Marco, how kann i the datestream from Inputstream = connection.getInputStream (), over one local http server to MediaPlay at SetDataSource()? Is it that u mean. i had try it with SetDataSource(FileDiscriptor), aber the only way that i found to set the FD with Socket-ParcelFileDescriptor-FD does work never! can u tell me, how should it be,pleas? Thanks C.B --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: MediaPlayer and 1.5 vs 1.6
Right, I agree that 1.6 is a better minimum version to support at this point. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: MediaPlayer and 1.5 vs 1.6
I meant: implement your own http server to run on the phone. This server would also be a shoutcast client, and connect to the remote shoutcast server. It would process the data, and then pass it to its own clients as if it were serving up regular mp3 files. Your MediaPlayer would then connect to localhost to get the mp3. But again, that seems like a lot of trouble when the majority of devices are already running Donut. On Wed, Oct 21, 2009 at 4:58 AM, coolbanana johanst...@gmx.de wrote: Hi Marco, how kann i the datestream from Inputstream = connection.getInputStream (), over one local http server to MediaPlay at SetDataSource()? Is it that u mean. i had try it with SetDataSource(FileDiscriptor), aber the only way that i found to set the FD with Socket-ParcelFileDescriptor-FD does work never! can u tell me, how should it be,pleas? Thanks C.B --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: MediaPlayer and 1.5 vs 1.6
On Tue, Oct 20, 2009 at 12:08 PM, sirdan sirda...@gmail.com wrote: In 1.6 I do the following to stream an mp3 shoutcast stream: MediaPlayer mp = new MediaPlayer(); try { mp.setDataSource(http://xxx.net/my.mp3;); mp.prepare(); } catch(Exception ex) { alert(ex.getMessage()); } This works great. However, I have to support phones running 1.5 as well. When I build against the 1.5 libraries and run in a level 3 emulator, I get an exception on the prepare() call with the message: What is a level 3 emulator ? Prepare failed.: status=0x1. Is this supported in 1.5. Is there some other mechanism I have to use that will work in both? 1.5 does not support shoutcast streaming --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: MediaPlayer and 1.5 vs 1.6
Wait with android 1.6 now you can stream progressively? If yes than can we also stream AAC+ content? On Oct 20, 6:58 pm, Marco Nelissen marc...@android.com wrote: On Tue, Oct 20, 2009 at 12:08 PM, sirdan sirda...@gmail.com wrote: In 1.6 I do the following to stream an mp3 shoutcast stream: MediaPlayer mp = new MediaPlayer(); try { mp.setDataSource(http://xxx.net/my.mp3;); mp.prepare(); } catch(Exception ex) { alert(ex.getMessage()); } This works great. However, I have to support phones running 1.5 as well. When I build against the 1.5 libraries and run in a level 3 emulator, I get an exception on the prepare() call with the message: What is a level 3 emulator ? Prepare failed.: status=0x1. Is this supported in 1.5. Is there some other mechanism I have to use that will work in both? 1.5 does not support shoutcast streaming --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: MediaPlayer and 1.5 vs 1.6
I'm not sure how you jumped to that conclusion. progressive streaming has worked since 1.0, for some specific media formats. progressive streaming is not the same as shoutcast streaming though. On Tue, Oct 20, 2009 at 4:13 PM, Moto medicalsou...@gmail.com wrote: Wait with android 1.6 now you can stream progressively? If yes than can we also stream AAC+ content? On Oct 20, 6:58 pm, Marco Nelissen marc...@android.com wrote: On Tue, Oct 20, 2009 at 12:08 PM, sirdan sirda...@gmail.com wrote: In 1.6 I do the following to stream an mp3 shoutcast stream: MediaPlayer mp = new MediaPlayer(); try { mp.setDataSource(http://xxx.net/my.mp3;); mp.prepare(); } catch(Exception ex) { alert(ex.getMessage()); } This works great. However, I have to support phones running 1.5 as well. When I build against the 1.5 libraries and run in a level 3 emulator, I get an exception on the prepare() call with the message: What is a level 3 emulator ? Prepare failed.: status=0x1. Is this supported in 1.5. Is there some other mechanism I have to use that will work in both? 1.5 does not support shoutcast streaming --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: MediaPlayer and 1.5 vs 1.6
lol well I guess the first person that posted maid me believe such was possible.. grgrgr! lol.. Well I'll stick to my old methods... Chears! On Oct 20, 7:43 pm, Marco Nelissen marc...@android.com wrote: I'm not sure how you jumped to that conclusion. progressive streaming has worked since 1.0, for some specific media formats. progressive streaming is not the same as shoutcast streaming though. On Tue, Oct 20, 2009 at 4:13 PM, Moto medicalsou...@gmail.com wrote: Wait with android 1.6 now you can stream progressively? If yes than can we also stream AAC+ content? On Oct 20, 6:58 pm, Marco Nelissen marc...@android.com wrote: On Tue, Oct 20, 2009 at 12:08 PM, sirdan sirda...@gmail.com wrote: In 1.6 I do the following to stream an mp3 shoutcast stream: MediaPlayer mp = new MediaPlayer(); try { mp.setDataSource(http://xxx.net/my.mp3;); mp.prepare(); } catch(Exception ex) { alert(ex.getMessage()); } This works great. However, I have to support phones running 1.5 as well. When I build against the 1.5 libraries and run in a level 3 emulator, I get an exception on the prepare() call with the message: What is a level 3 emulator ? Prepare failed.: status=0x1. Is this supported in 1.5. Is there some other mechanism I have to use that will work in both? 1.5 does not support shoutcast streaming --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: MediaPlayer and 1.5 vs 1.6
Marco, thanks for the info. By level 3, I meant API Level 3. If android doesn't support it natively in 1.5, does anyone know if there is code available to do it? On Oct 20, 6:58 pm, Marco Nelissen marc...@android.com wrote: On Tue, Oct 20, 2009 at 12:08 PM, sirdan sirda...@gmail.com wrote: In 1.6 I do the following to stream an mp3 shoutcast stream: MediaPlayer mp = new MediaPlayer(); try { mp.setDataSource(http://xxx.net/my.mp3;); mp.prepare(); } catch(Exception ex) { alert(ex.getMessage()); } This works great. However, I have to support phones running 1.5 as well. When I build against the 1.5 libraries and run in a level 3 emulator, I get an exception on the prepare() call with the message: What is a level 3 emulator ? Prepare failed.: status=0x1. Is this supported in 1.5. Is there some other mechanism I have to use that will work in both? 1.5 does not support shoutcast streaming --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: MediaPlayer and 1.5 vs 1.6
You could rig something up with your local http server that runs on the phone and processes the incoming data before passing it on the player, but why bother? The vast majority of devices runs 1.6 now. On Tue, Oct 20, 2009 at 6:16 PM, sirdan sirda...@gmail.com wrote: Marco, thanks for the info. By level 3, I meant API Level 3. If android doesn't support it natively in 1.5, does anyone know if there is code available to do it? On Oct 20, 6:58 pm, Marco Nelissen marc...@android.com wrote: On Tue, Oct 20, 2009 at 12:08 PM, sirdan sirda...@gmail.com wrote: In 1.6 I do the following to stream an mp3 shoutcast stream: MediaPlayer mp = new MediaPlayer(); try { mp.setDataSource(http://xxx.net/my.mp3;); mp.prepare(); } catch(Exception ex) { alert(ex.getMessage()); } This works great. However, I have to support phones running 1.5 as well. When I build against the 1.5 libraries and run in a level 3 emulator, I get an exception on the prepare() call with the message: What is a level 3 emulator ? Prepare failed.: status=0x1. Is this supported in 1.5. Is there some other mechanism I have to use that will work in both? 1.5 does not support shoutcast streaming --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---