I am trying to inflate
<com.google.android.youtube.player.YouTubePlayerView
android:id="@+id/youtubeplayerview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="5dp" />
in List adapter so that I can play video in the listview it self but I am getting error
Error inflating class com.google.android.youtube.player.YouTubePlayerView
while if I am using
<com.google.android.youtube.player.YouTubeThumbnailView
android:id="@+id/youtubeplayerview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="5dp" />
It is getting inflated without any error and I am able to display thumbnail in list view
My requirement is when user click on this thumbnail video should play in list view
Please suggest how can I achieve this ?