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. How to increase...?

Hi,
       How can we increase the height of title bar.




Regards,
abhilash.b

-- 

2. OOT: Perkenalan Diri + WTA: What Should I Do with My HD2?

As subject, nama saya Julius domisili di Malang, newbie di dunia Android, 
hehee..

Baru beli HTc HD2 bekasnya suhu disini, hehee..
Uda ada Androidnya, kalo ngga salah pake MIUI, dari semalem pegang, ngga tau 
kudu diapain, hehee..
Nyobain download di Market juga ngga pernah berhasil, padahal uda dapet sinyal 
bagus,,
Mohon pencerahan dari suhu2 disini donk..

Atau kalau ada mantan ownernya niy Gadget, mohon newbie ini dibantu donk, 
hehee..

thanks! :D 


@ItsJuliusSin
pm: juliusc...@yahoo.com
pm: jcz....@gmail.com
stay foolish, stay Hungry -SJ-

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

3. Detect Codec of local media File

4. Market Comments, Top 3, Faking Of, Benefits Of

5. GPS MapView: animate to current position

6. Robin Talwar wants to chat

7. sqlite illeagal state exception unable to close due unfinallised statements.