Create custom play button for Vitamio player
<p>I use Vitamio library to make a RTSP streaming app for Android phone. Now I need to create a play/pause button for the player. Normally I can just use <code>mVideoView.setMediaController(new MediaController(getActivity()))</code> to create it, but it will mess up my layout, so I opted to create a custom button instead. I created a button with help from <a href="https://github.com/yixia/VitamioBundle/blob/master/vitamio/res/layout/mediacontroller.xml" rel="nofollow">github source</a> :</p>

<pre><code>&lt;ImageButton
        android:id="@+id/mediacontroller_play_pause"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerVertical="true"
        android:layout_marginLeft="5dp"
        android:background="@drawable/mediacontroller_button"
        android:contentDescription="@string/mediacontroller_play_pause"
        android:src="@drawable/mediacontroller_pause" /&gt;
</code></pre>

<p>now, the hard part is write code to make this button functional. There is code for that function in Vitamio's MediaControlller.java but I can't make it work at all. Help is much appreciated, thanks for reading. Here is a <a href="http://pastebin.com/6B5kTCxN" rel="nofollow">link</a> to the java file for reference.</p>