Video view in sketchware                                                        DOWNLOAD App  Lets go start: Main.xml code: MainAcitvity.jav...

Video view in sketchware

09:22 0 Comments

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: