Problem with playing Youtube video?

All your problems with Audio, Video and Images.

Problem with playing Youtube video?

Postby singalashok » Thu May 27, 2010 5:55 pm

Hi Friends,

I wrote a basic piece of code to stream the youtube video onto an Android device. Code is :

vv.setVideoPath("rtsp://qtvevdo.mobitv.com:554/39f28/jbvod/encoding-1/2548/618696-3.3gp");
vv.setMediaController(new MediaController(mainActivity.this));
vv.requestFocus();

Where vv is a VideoView.

When i run this code on the device, its giving me the following error:
Command PLAYER_INIT completed with an error or info PVMFFailure

An somebody please help me in fixing this issue? I am using SDK 1.6. Is it a problem with SDK version?

Please guide. PLusminus. can you please help?

Thanks.
Ashok
singalashok
Freshman
Freshman
 
Posts: 4
Joined: Wed May 26, 2010 11:00 pm

Top

Re: Problem with playing Youtube video?

Postby singalashok » Fri May 28, 2010 7:11 pm

I finally made it to work.

For friends, who might face the similar problem. Problem was with the wrong url being used. When i extracted the correct mobile URL from the video feed of Youtube video, it worked. Correct url is:

rtsp://v1.cache6.c.youtube.com/CiILENy7 ... /video.3gp

So the piece of code that works at my end is :

vv.setVideoPath("rtsp://v1.cache6.c.youtube.com/CiILENy73wIaGQkQEhHdgbAWZhMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp");
vv.setMediaController(new MediaController(mainActivity.this));
vv.requestFocus();

If anybody gets a problem regarding this issue, please let me know.

Thanks.
Ashok
singalashok
Freshman
Freshman
 
Posts: 4
Joined: Wed May 26, 2010 11:00 pm

Re: Problem with playing Youtube video?

Postby shubh » Fri Dec 03, 2010 8:11 am

Hi frinds,
Anybody got solution for playing flv video file(flesh) in Android device.
Thank in Advance
User avatar
shubh
Experienced Developer
Experienced Developer
 
Posts: 83
Joined: Tue May 18, 2010 7:17 am
Location: India

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Google [Bot] and 8 guests