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. Storing app-specific synced data with a contact

I would like to store some app-specific data in the contacts db. Is it
safe to stuff random things into the Contacts.Settings table? Will it
affect the GUI? Does anybody have an example of doing that? It's not
really clear to me if there's a proper mechanism for this, or if the
settings table is reserved for the systems own use.

BTW my first attempt was to use an app specific database, but then
users would uninstall the app, reinstall it later and wonder why it
didn't work. My second attempt was to stuff the data into the JPEG
headers but the sync process deletes them, presumably for security
reasons. So if there's no way to store my things in the contacts db
directly, I think I'm out of luck - I'll have to look at
steganographically encoding the data into the raw pixels themselves!
--~--~---------~--~----~------------~-------~--~----~

2. How to test omx encoder in opencore 2.0?(on emulator)

Hi al,
    Is any simple way to test omx encoder(audio) component in opencore
2.0?
    Is anybody has try to test new omx encoder component ?
    Thx!

--~--~---------~--~----~------------~-------~--~----~

3. AudioFlinger - many "write blocked for" log WARN messages

4. how many items on a map are "usable"?

5. How do I return a value from an Activity

6. How can I notify my application when Item is Selected in List Activity

7. Regarding APN settings for 3G network.