Single error using media player playing mp4

All your problems with Audio, Video and Images.

Single error using media player playing mp4

Postby Peter_N » Tue Oct 18, 2011 4:02 pm

Hello,

I made a program for a live backround.
But i'm stuck with one error.
The error contains:

Description Resource Path Location Type
error: Error parsing XML: not well-formed (invalid token) mov003.mp4 /liveWallpaper1/res/layout line 1 Android AAPT Problem

The error indicator is only in the package explorer and not in the code.
Why would there be an invalid token?
The mp4 file i'm using is obviously in the "res" folder.

The path is as follows:

Code:
mediaPlayer.setDataSource("/res/layout/mov003.mp4");

Could it have something to do with the "R" file?

Can anyone please help me?

Thanks a lot!
Peter_N
Freshman
Freshman
 
Posts: 2
Joined: Mon Sep 26, 2011 9:07 pm

Top

Re: Single error using media player playing mp4

Postby ramesh.kec.85 » Mon Oct 24, 2011 5:05 am

Make a raw folder and setDatasource..

MediaPlayer mp=MediaPlayer.create(this,R.raw.song);
Thanks

Regards
--R@mesh
ramesh.kec.85
Developer
Developer
 
Posts: 27
Joined: Sat Jul 30, 2011 10:05 am
Location: Ahmedabad

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 17 guests