The video has not been published to the public. If it's published by you, change the settings. If not, try another link.
On Wed, Dec 16, 2009 at 9:03 AM, Valentino XM <[email protected]> wrote: > package info.shouraig.com; > > > > import java.io.IOException; > > import android.app.Activity; > import android.media.MediaPlayer; > import android.os.Bundle; > import android.util.Log; > import android.widget.VideoView; > > public class XSO9 extends Activity{ > private static final String HTTP = "http://www.youtube.com/watch? > v=6ej-imJWuno"; > VideoView VideoXSO9; > > /** Called when the activity is first created. */ > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > setContentView(R.layout.main); > > //Fill viewView from resource > VideoView videoView =(VideoView)findViewById(R.id.VideoXSO9); > Log.v("videoXSO9", "***Video to Play::" + HTTP); > MediaPlayer mp = new MediaPlayer(); > try { > mp.setDataSource(HTTP); > } catch (IllegalArgumentException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } catch (IllegalStateException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } catch (IOException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } try { > mp.prepare(); > } catch (IllegalStateException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } catch (IOException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > mp.start(); > > > > > > //Start Video > > > > > } > } > > -- > You received this message because you are subscribed to the Google > Groups "Android Beginners" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-beginners%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

