Video view in sketchware
Video view in sketchware
DOWNLOAD App
Lets go start:
Main.xml code:
MainAcitvity.java
Codeing:-
final VideoView vd = new VideoView(MainActivity.this);vd.setLayoutParams(new LinearLayout.LayoutParams(android.widget.LinearLayout.LayoutParams.MATCH_PARENT, android.widget.LinearLayout.LayoutParams.MATCH_PARENT));
linear1.addView(vd);
vd.setVideoURI(Uri.parse("android.resource://"+getPackageName()+"/"+R.raw.vid));
vd.setMediaController(new MediaController(this));
vd.requestFocus();
vd.start();
0 Comments: