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. Problem making my custom class into a Parcelable

Greetings,

I'm getting this error when running "ant aidl".

[apply] /data/projects2008/android/iteration1/lib/src/org/android/
common/IAdUnitAvailability.aidl:5 parameter 1: 'Advert ad' can be an
out parameter, so you must declare it as in, out or inout.

In the package, I have:

a) Advert.aidl

The file contains:

package org.android.common

parcelable Advert;


b) Advert.java

I have followed http://code.google.com/android/reference/aidl.html to
make Advert.java into a Parcelable.

c) IAdUnitAvailability.aidl

I have an interface method with signature:

void gimmeAds( Advert ad );


What am I missing ?

Thanks

Gavin
--~--~---------~--~----~------------~-------~--~----~

2. How do I get my GPS coordinates are now coming from?

sir

How do I get my GPS coordinates are now coming from?

Map display and there, and I want to show my position.

Thank you.

 ---
 My Blog:
 http://handfeel.blogspot.com/
--~--~---------~--~----~------------~-------~--~----~

3. LocationManager, addProximityAlert Method

4. Storage: sorry about the subject

5. Need help on supporting IGMP protocolonandroid

6. Android sniffing application.

7. Need help on supporting IGMP protocol on android