videoview - Video playing using Video View in android -


i have implemented video player using video view. default seek bar , buttons control showing @ bottom of screen. want should in video view itself. how can achieve this. adding code also.

code activity is:

 @override    public void oncreate(bundle icicle) {      super.oncreate(icicle);      setcontentview(r.layout.main);      mvideoview = (videoview) findviewbyid(r.id.surface_view);      system.out.println(uri.parse("android.resource://" + getpackagename() +"/"+r.raw.scotch_cppk));      mvideoview.setvideouri(uri.parse("android.resource://" + getpackagename() +"/"+r.raw.scotch_cppk));      mvideoview.setmediacontroller(new mediacontroller(this));      mvideoview.start();     } 

main.xml:

<?xml version="1.0" encoding="utf-8"?>  <linearlayout xmlns:android="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_gravity="center"        android:layout_width="600dp"        android:layout_height="800dp"/>  </linearlayout>  


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -