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. Closed: WTA: username pasar malem

Huahahahaaa...
Betewe gapapa koq, ntar request lg aja pake gmail lain.
Makasiy yaaa semuanyaaa...
Maap merepotkan :p

Rgds,
Enya
~sent from ma GoogleMobile PC~




Aduuuuhh...jadi gak enak nih ma.....
Maaf yah klo lagi koleksi di pbalk kermat....

*melesat nabrak bencong gak taunya Ntil kembaran marcel.

2010/5/12 Jefri P <kaa...@gmail.com>





-- 
Narendra Kameshwara

YM : kosto...@yahoo.com
http://blogroll.dailywhatnot.com/nareen/



-- 
"Indonesian Android Community [id-android]"

2. Widget like MapView

Hi,
    I read some tutorial about loading a MapView in your own activity.
The Google maps is a beautiful application that scrolls in any
direction the user moves around. I want to develop a similar
application, that could scroll in any direction, but the difference
being it has to display it's own UI.

Is this possible? If yes, then how?

Thank you,
Ajay

-- 

3. APK not installing, permission request loop at install

4. Single App Across Platforms.

5. Readind the APN setting data

6. How to differenciate two tables

7. Location Device and Information Usage