Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to add a controller in android to search in a video
    primarykey
    data
    text
    <p>I am pretty new in developing apps for Android so I need your experienced help.</p> <p>How can I add a video controller, a bar to search in the video lenght? I tried to add some code lines from android guide but I get blank screen</p> <p>Here's a link 2 screen shots</p> <p><a href="http://www.wocmultimedia.com/screenshot1.jpg" rel="nofollow">http://www.wocmultimedia.com/screenshot1.jpg</a></p> <p><a href="http://www.wocmultimedia.com/screenshot2xml.jpg" rel="nofollow">http://www.wocmultimedia.com/screenshot2xml.jpg</a></p> <p>the activity is named controlbar.java the layout clip2.xml the videoclip corsolex_1.mp4 and is set in res/raw folder</p> <p>Thank you very much. Have a good day. Angelo</p> <pre><code>public class controlbar extends Activity { @Override protected void onCreate (Bundle savedInstanceState){ //TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.clip2); VideoView videoView = (VideoView) findViewById(R.id.videoView1); Uri videoPath = Uri.parse("android.resource://" + getPackageName() + "/" + R.raw.corsolex_1); videoView.setVideoURI(videoPath); videoView.setMediaController(new MediaController(this)); videoView.requestFocus(); videoView.start(); } } </code></pre> <p>layout clip2.xml </p> <pre><code>&lt;FrameLayout android:id="@+id/frameLayout1" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="schemas.android.com/apk/res/android" &gt; &lt;VideoView android:id="@+id/videoView1" android:layout_width="wrap_content" android:layout_height="wrap_content" &gt; &lt;/VideoView&gt; &lt;/FrameLayout&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload