Youtube video pausing in every 2 or 3 seconds
<p>I am developing an application which will play video from youtube using YouTubePlayerView. But video is going to pause mode in every two or 3 seconds.This is the layout i am using</p>

<pre><code> &lt;com.google.android.youtube.player.YouTubePlayerView
    android:id="@+id/youtube_view"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" /&gt;
</code></pre>

<p>and my activity code where loading video is</p>

<pre><code> @Override
public void onInitializationSuccess(YouTubePlayer.Provider provider, YouTubePlayer player,
                                    boolean wasRestored) {
    if (!wasRestored) {
        player.cueVideo("My video id");
    }
}
</code></pre>