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. Build Path Errors

When I try and run the canonical HelloWorld app, I get the following
error right after trying to create the project: "The project cannot be
built until build path errors are resolved". I tried Project/Clean and
the Window/Other Perspective/DDMS route, but to no avail. Closing and
restarting Eclipse did not solve the problem.

The SDK location is set as the folder that contains the "platforms"
sub-folder. I am running on XP, and have set the Target Name as
Android 2.0.1. I have tried deleting and redoing the entire procedure
a few times, but get this above error all the time. Any thoughts?

Thanks in advance.

--

2. Error in helloandroid tutorial

Hi all,
I met the following error message appared on the emulator screen.
 "There's a big error message saying that 'Application Android Keyboard (in
process com.android.inputmethod.latin) is not responding.' and asking
whether i want to force close it or wait."
Anybody knows why? Thanks.

-- 

3. Video From Youtube in Emulator Android 2.1 Eclipse Gallileo/ Unable to play video

4. Writing an app using android.speech.srec ... how to get to that code?

5. MediaPlayer error (1, -1)

6. Can not build LatinIME code

7. RelativeLayout doesn't work as expected in a ListView container.