 VideoView audio only, no video?
<p>I have a Video view in my activity used to display a video stored in my res.raw folder like this:</p>

<pre><code>MediaController controller=new MediaController(this);
video.setMediaController(controller);
String filePath="android.resource://" + getPackageName() + "/" + R.raw.video3;
video.setVideoURI(Uri.parse(filePath));
video.requestFocus();
video.start();
</code></pre>

<p>The problem is that I can hear the audio only, but the video is not shown.</p>

<p>What can be the reason for this?</p>

<p><strong>Edit:</strong> here's my layout:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent" android:layout_height="match_parent"
    android:orientation="vertical"
    &gt;

    &lt;Button 
    android:id="@+id/btnPlayAudio"
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content"
        android:text="Play Audio"
        &gt;
        &lt;/Button&gt;
        &lt;Button 
        android:id="@+id/btnPlayVideo"
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content"
        android:text="Play Video"
        &gt;
        &lt;/Button&gt;

        &lt;VideoView android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:id="@+id/videoView"

        /&gt;
&lt;/LinearLayout&gt;
</code></pre>
