際際滷
Submit Search
La vista video view
Download as DOCX, PDF
0 likes
159 views
David Maga単a Mart鱈nez
Follow
m
Read less
Read more
1 of 3
Download now
Download to read offline
More Related Content
La vista video view
1.
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
2.
<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(); } }
Download