Video From Youtube in Emulator Android 2.1 Eclipse Gallileo/ Unable to play video

by Valentino XM » Mon, 14 Dec 2009 06:08:32 GMT


Sponsored Links
 Hi!

having no luck with playback of video from source file, i thought id
try video from youtube... Emulator says it cannot play video.. So now
what?.. can anyone tell me aoubt this code below.

TIA.

cheers

package info.shouraig.com;

import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.widget.MediaController;
import android.widget.VideoView;

public class XSO5 extends Activity {
        private static final String RTSP = " http://www.youtube.com/watch? 
v=8bmWwxixT0Y";
        VideoView videoXSO5;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

      //***VideoView to video element inside Multimedia.xml file

       VideoView videoView  = (VideoView)findViewById(R.id.videoXSO5);
       Log.v("videoXSO5", "***Video to Play:: " + RTSP);
       MediaController mc = new MediaController(this);
       mc.setAnchorView(videoView);
       Uri video = Uri.parse(RTSP);
       videoView.setMediaController(mc);
       videoView.setVideoURI(video);
       videoView.start();

--



Other Threads

1. Can set constant rate into wifi driver of Dev 1?

Dear all,

Autorate is used in TI wifi driver.
How can i set the rate to constant value, say 11Mbps?

Best Regards,
Tony

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. How to pass album art while using native media player

Hello,

I am using android's native media player from within the application
to playback mp3 files. Is there a way to pass album art or an image to
appear above player's seek bar (similar to the native player). Any
help would be great.

Thanks,
gM

-- 

3. Any way to get some equivalent to the adb log while the device is not plugged into computer?

4. Resuming View with about 200KB of drawable resources: android.view.InflateException and java.lang.OutOfMemoryError

5. Kejadian tadi malam

6. Mod: Siapa mau mewakili id-android PULSA SummerCamp 2010

7. Problem with Intent.