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. Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

For those interested...

Using the emulators:

   - Android 1.5 (Cupcake): 3.5.9
   - Android 1.6 (Donut): 3.5.9
   - Android 2.1 (Eclair): 3.5.9
   - Android 2.2 (Froyo): 3.6.22
   - Android 2.3 (Gingerbread): 3.6.22
   - Android 3.0 (Honeycomb): 3.7.4

-- 

2. Virus Malware di Android Smartphone

Ancaman virus pada mobile phone mulai meningkat sekarang ini, dan
sistem Android adalah yang paling sering menjadi target favorit.
Google membuat platform Android 'Open Source' dan merilis dokumentasi
pengembangan aplikasi, source kode, dan SDK lengkap. Menjadikan
pengembangan Android cukup mudah bagi siapa saja, cukup membayar biaya
pendaftaran sebesar US $25 sudah kita sudah bisa meng-upload aplikasi
ke Android Market.

Google mempercayakan kepada komunitas pengembang selanjutnya baca
disini >> 
http://service-komputer-laptop.blogspot.com/2011/03/virus-trojan-malware-di-android.html

-- 
===============

3. Kok Android semakin tidak eksklusif ya?

4. Foreign currencies now showing.

5. need help in java

6. OOT: Tsunami

7. dispatching key events from dialog to other acivities