How to play videos from youtube sources in videoview android
<p>I am working on android app and users in my app can upload videos from youtube, vimeo or any other sources.
Now I have a list of videos which I need to load in recyclerview. In recyclerview's list I have used            </p>

<pre><code> &lt;VideoView
    android:id="@+id/video_view"
    android:minHeight="1dp"
    android:visibility="gone"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center"/&gt;
</code></pre>

<p>When I am loading videos from youtube or vimeo, it do not play these videos in videoview.</p>

<p>How can I play these videos in videoview and how can I give support to all type of videos to play in my android app.</p>

<p>Thank you much for all your help in advanced.</p>