Not able to play video from the network URL

by Amit Panwar » Tue, 28 Apr 2009 10:53:16 GMT


Sponsored Links
 i,

I am trying to play a 3gp video from the network URL but it doesn't
play and throws the following exception:

04-28 16:17:13.973: ERROR/VideoPlayer(821): error: Prepare failed.:
status=0xFFFFFFF6
04-28 16:17:13.973: ERROR/VideoPlayer(821): java.io.IOException:
Prepare failed.: status=0xFFFFFFF6
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
android.media.MediaPlayer.prepare(Native Method)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
com.sape.android.activities.VideoStreaming.playVideo
(VideoStreaming.java:232)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
com.sape.android.activities.VideoStreaming.access$0
(VideoStreaming.java:197)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
com.sape.android.activities.VideoStreaming$1.onClick
(VideoStreaming.java:117)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
android.view.View.performClick(View.java:2129)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
android.view.View.onTouchEvent(View.java:3543)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
android.view.View.dispatchTouchEvent(View.java:3198)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1593)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent
(PhoneWindow.java:1089)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
android.app.Activity.dispatchTouchEvent(Activity.java:1871)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1577)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1140)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
android.os.Handler.dispatchMessage(Handler.java:88)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
android.os.Looper.loop(Looper.java:123)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
android.app.ActivityThread.main(ActivityThread.java:3739)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
java.lang.reflect.Method.invokeNative(Native Method)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
java.lang.reflect.Method.invoke(Method.java:515)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:739)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
04-28 16:17:13.973: ERROR/VideoPlayer(821): at
dalvik.system.NativeStart.main(Native Method)
04-28 16:17:14.003: ERROR/MediaPlayer(821): stop called in state 0

The code I am trying is :

path = "http://d.peperonity.com/c/d/4E76D7/12563/
ssc3/home/062/akram.ak47/albums/dog_smoke.3gp";
//path = setNewFile(path );
//path = "/data/data/com.example.android.apis/
files/mediaplayertmp.dat";
if (path == "") {
// Tell the user to provide a media file U



Not able to play video from the network URL

by Amit Panwar » Tue, 28 Apr 2009 18:58:44 GMT


 Hi,

I am not able to play the video streaming example from the samples
provided in Android SDK for any video URL:

ex: 
 http://d.peperonity.com/c/d/4E76D7/12563/ssc3/home/062/akram.ak47/albums/dog_smoke.3gp 

The issue comes at the time of executing the prepare() method:

and throws the following exeption:


04-28 16:17:13.973: ERROR/VideoPlayer(821): error: Prepare failed.:
status=0xFFFFFFF6
04-28 16:17:13.973: ERROR/VideoPlayer(821): java.io.IOException:
Prepare failed.: status=0xFFFFFFF6
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
android.media.MediaPlayer.prepare(Native Method)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
com.sape.android.activities.VideoStreaming.playVideo
(VideoStreaming.java:232)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
com.sape.android.activities.VideoStreaming.access$0
(VideoStreaming.java:197)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
com.sape.android.activities.VideoStreaming$1.onClick
(VideoStreaming.java:117)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
android.view.View.performClick(View.java:2129)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
android.view.View.onTouchEvent(View.java:3543)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
android.view.View.dispatchTouchEvent(View.java:3198)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1593)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent
(PhoneWindow.java:1089)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
android.app.Activity.dispatchTouchEvent(Activity.java:1871)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1577)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
android.view.ViewRoot.handleMessage(ViewRoot.java:1140)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
android.os.Handler.dispatchMessage(Handler.java:88)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
android.os.Looper.loop(Looper.java:123)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
android.app.ActivityThread.main(ActivityThread.java:3739)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
java.lang.reflect.Method.invokeNative(Native Method)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
java.lang.reflect.Method.invoke(Method.java:515)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:739)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
04-28 16:17:13.973: ERROR/VideoPlayer(821):     at
dalvik.system.NativeStart.main(Native Method)


Please help me to resolve the issue. If someone else has the same with
it.

Thanks,
Amit
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Live Wallpaper Error

Para Suhu n Master Android, saya butuh masukkannya dong, saya coba
install live wallapaper tapi muncul pesan seperti yg ada saya
lampirkan, samsung saya sudah di upgrade ke DXJC4 dan helixlauncher
juga sudah diinstall tapi tetap gak bisa, tolong para suhu diberikan
langkah-langkahnya.

terima kasih

salam,
deddy

-- 
"Indonesian Android Community [id-android]" 

2. Android Appending Values Received From Server

Hi,

I am trying to receive some data from a servlet on to android. It
works fine for the first run but if in case I happen to use the same
activity again, the previous data is  getting appended to the new
data.
Could some one please tell me what is wrong. Why dont the variables
get re initialized in the activity on the second usage of the same....

Thanks,
Raqeeb

-- 

3. How to get wifi account and password in code?

4. A problem about -rpath-link

5. Audio mixing

6. spinner question: how to detect the selection of an already selected item?

7. eclair-porting problem