Video Problem

All your problems with Audio, Video and Images.

Video Problem

Postby dewitrydan » Mon Sep 06, 2010 12:20 pm

Hello, I am starting out with android
I am following a tutorial on playing a video in an app

But I get the following error message:
Image

Here is the directory of the video:
Image

And here is the directory of the project:
Image

I have also uploaded the code

Can you please help me?
Thanks
Attachments
Video.rar
(505.71 KiB) Downloaded 30 times
dewitrydan
Junior Developer
Junior Developer
 
Posts: 14
Joined: Mon Sep 06, 2010 12:03 pm

Top

Re: Video Problem

Postby raito_yagami » Mon Sep 06, 2010 6:32 pm

i cannot see the pics
raito_yagami
Junior Developer
Junior Developer
 
Posts: 14
Joined: Mon Sep 06, 2010 5:48 pm

Re: Video Problem

Postby jonbonazza » Tue Sep 07, 2010 3:26 am

Why do you have it in a data folder? you need to put it in your res/raw folder and then access it with:
Code: Select all
MediaPlayer mp = MeadiaPlayer.create(this, R.raw.samplevideo);
mp.start();
jonbonazza
Master Developer
Master Developer
 
Posts: 665
Joined: Thu Jul 15, 2010 2:58 pm
Location: WV USA

Re: Video Problem

Postby raito_yagami » Tue Sep 07, 2010 8:33 pm

you can try to move your 3gp file into /assets directory and use setVideoPath("file:///android_asset/xxx.3gp")

i m sorry this method above is not correct , i tried. i will try other.
raito_yagami
Junior Developer
Junior Developer
 
Posts: 14
Joined: Mon Sep 06, 2010 5:48 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 26 guests