I want to crop youtube video in a circular view while playing. How can I achieve this? I have tried it by embedding it in a linear layout and then making the background of the layout as a circle but the youtube player view remains in the rectangular shape in this case.
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/circle"
android:gravity="center"
>
<com.google.android.youtube.player.YouTubePlayerView
android:id="@+id/youtube_view"
android:layout_width="150dp"
android:layout_height="150dp"
/>
</LinearLayout>
and background file
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid
android:color="#666666"/>
<size
android:width="200dp"
android:height="200dp"/>
</shape>