Android Development Forum

by Sushrut Bidwai » Sun, 01 Feb 2009 08:09:40 GMT


Sponsored Links
 Hey Androiders,

  Buzz is happening around Android already. Off course there are
developer groups, where we can find out answers to questions. But we
(www.androidcompetencycenter.com/) have decided to provide support to
all developers through newly launched forums. Do check out the blog,
discuss, bounce each other off with questions. Looking forward for
great discussions on the blog.

Best Regards,
Sushrut
PS - I hope this discussion was not spammy, I thought it was relevant
enough.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Confusion over MediaPlayer Framework on GingerBread and Apple's HTTP Live Streaming Support

According to the release notes, StageFright replaces the OpenCore
framework in the GingerBread release. It seems that there have been
numerous discussion that says: Apple's HTTP Live streaming is
supported by default since Android 2.3.

Even the Wikipedia page: 
http://en.wikipedia.org/wiki/Android_(operating_system)#Features
mentions this.

However, when I try to run the test stream provided by Apple i.e:
"http://devimages.apple.com/iphone/samples/bipbop/gear1/
prog_index.m3u8"
using the MediaPlayerDemo_Video.java bundled with API Demos I get the
following exceptions:

setDataSource('http://devimages.apple.com/iphone/samples/bipbop/gear1/
prog_index.m3u8')
connect to devimages.apple.com:80/iphone/samples/bipbop/gear1/
prog_index.m3u8 @0
INFO/NuCachedSource2(34): ERROR_END_OF_STREAM
error (1, -2147483648)
ERROR/MediaPlayerDemo(667): error: Prepare failed.: status=0x1
java.io.IOException: Prepare failed.: status=0x1
at android.media.MediaPlayer.prepare(Native Method)
at
com.video.stream.MediaPlayerDemo_Video.playVideo(MediaPlayerDemo_Video.java:
125)
at
com.video.stream.MediaPlayerDemo_Video.surfaceCreated(MediaPlayerDemo_Video.java:
181)
at android.view.SurfaceView.updateWindow(SurfaceView.java:543)
at android.view.SurfaceView.dispatchDraw(SurfaceView.java:348)
at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
at android.view.View.draw(View.java:6883)
at android.widget.FrameLayout.draw(FrameLayout.java:357)
at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
at android.view.View.draw(View.java:6883)
at android.widget.FrameLayout.draw(FrameLayout.java:357)
at com.android.internal.policy.impl.PhoneWindow
$DecorView.draw(PhoneWindow.java:1862)
at android.view.ViewRoot.draw(ViewRoot.java:1522)
at android.view.ViewRoot.performTraversals(ViewRoot.java:1258)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1859)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3647)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
surfaceChanged called
Displayed com.video.stream/.MediaPlayerDemo_Video: +1s652ms (total
+7s427ms)
GC_EXPLICIT freed 2K, 55% free 2514K/5511K, external 716K/1038K,
paused 183ms
GC_EXPLICIT freed 17K, 52% free 2782K/5767K, external 716K/1038K,
paused 87ms
GC_EXPLICIT freed 68K, 50% free 2972K/5895K, external 2544K/3109K,
paused 104ms
request time failed: java.net.SocketException: Address family not
supported by protocol

---relevant code(MediaPlayerDemo_Video.java):
path = "http://devimages.apple.com/iphone/samples/bipbop/gear1/
prog_index.m3u8";
mMediaPlayer = new MediaPlayer();
mMediaPlayer.setDataSource(path);
mMediaPlayer.setDisplay(holder);
mMediaPlayer.prepare();
mMediaPlayer.setOnBufferingUpdateListener(this);
mMediaPlayer.setOnCompletionListener(this);
mMediaPlayer.setOnPreparedListener(this);
mMediaPlayer.setOnVideoSizeChangedListener(this);
mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);

Questions:
1. Does GingerBread build really support Apple's HTTP Live Streaming
protocol?
2. What went wrong above?

Please help.

-- 

2. Considered SOLDFw: Wts droid 2 mind condition

aih saya dibilang ramah.. moga2 bukan ramah (rajin menjamah) #apasih
#becanda :p

buat temen ane nih... maniak winmo, tp gak mau ganti ke winmo 7. Milihnya
akhrnya malah ke d2. Makasih jg pak joni buat keramahannya dalam pelayanan
jual beli.

-- 
===============
"

3. Waiting for debugger force close (when USB is not attached)

4. Waiting for Debugger

5. High sensor usage in stand by

6. PAGING BOS ARYA

7. Partisi Micro SD