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. Using Android on "old" palm and dell handhelds

Hi!

I've been studying options to replace Windows Mobile 5 in dell axim
handhelds and palm OS Garnet on palm devices. After some thinking,
I've become very enthusiast with the idea of building android in such
a way to support these devices.

However, I'm pretty lost on where I could begin this (probably big and
time-consuming) task. Ive already acquired the android source using
the instructions from the "get source" page, and compiled them, but
thats as far as I've got.

There was a project called axdroid (http://axdroid.blogspot.com/) that
has seemed to suffer a soon death due to the fact that the only
contributor to the project bought himself an HTC Magic, and he hasn't
released his code anywhere. I'm really, very interested in making this
thing work, and I'm willing to invest a lot of time on supporting
these devices. The only problem, is that I dont know how to start...

At my disposition, I have a palm lifedrive and a dell axim x51, and my
first goal, would be to manage to make android load properly up to its
user interface in both devices, without replacing the current OS (I
believe there is a tool called cocoboot for palm, and a similar called
Haret for windows mobile, that allow to load a linux kernel into the
device). Once there, I would then patiently solve any compatibility
issue (up to where my skill would allow it) and after everything, if I
get to a satisfactory result, Id study how to get Android to load
directly from these devices without depending neither on windows
mobile or Garnet.

Can anyone here advice me on how I could get this thing going on???

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

2. standart c library

Hi folks,
i dont understand why the speaker in the video "anatomy & physiology
of an Android " is saying that the standard libc library stands under
the GPL license and not LGPL.

The Video
<a href="http://sites.google.com/site/io/anatomy--physiology-of-an-
android"> The Video look at 17:40 until 19:00 </a>
Thanks in advance
--~--~---------~--~----~------------~-------~--~----~

3. Help win ADC-2

4. One picture, ACTION_VIEW, and no navigation

5. clear sms notifications

6. Launching a Service at the startup

7. Cache the event of soft-keyboard pop up