際際滷

際際滷Share a Scribd company logo
CETis 109
JUAN ANTONIO RAMIREZ HERNANDEZ
DAVID EMANUEL MAGAA MARTINEZ
4属 AM
DESARROLLA APLICACIONES MVIL
MCA/MES MARGARITA ROMERO ALVARADO
Como insertar un video en eclipse
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<VideoView
android:id="@+id/surface_view"
android:layout_width="320px"
android:layout_height="240px"/>
</LinearLayout>
public classvideoViewextends Activity {
privateVideoView mVideoView;
@Overridepublic void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mVideoView =(VideoView)findViewById(R.id.surface_view);
//de forma alternativa si queremos un streamingusar
//mVideoView.setVideoURI(Uri.parse(URLstring));
mVideoView.setVideoPath("/mnt/sdcard/video.mp4");
mVideoView.start();
mVideoView.requestFocus();
}
}
La vista video view

More Related Content

La vista video view