Hi All,
I  am trying to code Audio/Video into my existiing project for the
first time. Following the directive from the "Android Devlopers page,

Playing from a File or Stream

You can play back media files from the filesystem or a web URL:

   1. Create an instance of the MediaPlayer using new
   2. Call setDataSource() with a String containing the path (local
filesystem or URL) to the file you want to play
   3. First prepare() then start() on the instance:

    MediaPlayer mp = new MediaPlayer();
    mp.setDataSource(PATH_TO_FILE);
    mp.prepare();
    mp.start();

looking for coding examples that will give me a more precise picture
of how the "MediaPlayer"  code should be worked into my existing
project.

Do I create a "VideoView" window in the Main.xml of the existing
project, and then reference that window in the in the Java window of
my exsiting project, directly under

  MediaPlayer mp = new MediaPlayer();
    mp.setDataSource(PATH_TO_FILE);
    mp.prepare();
    mp.start();

f.eks.

MediaPlayer = (VideoView)findViewById(R.id.VideoEMS);

also (PATH_TO_FILE);

is that going to be written using the song or video title

feks. D:/Music/XSC2.wmv.mp4

thank you



-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to