I'm trying to get rounded corners for this VideoView. But I can't, I tried wrapping it in a FrameLayout, but no luck. Video overflow from the outline and does not respect the parent outline.
Here's the image.
Layout code:
        <FrameLayout
            android:id="@+id/media_video"
            android:layout_width="match_parent"
            android:layout_height="300dp"
            android:background="@drawable/video_view_bg"
            android:clipToChildren="false"
            app:layout_constraintHeight_default="percent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent">
            <VideoView
                android:id="@+id/media_video_item"
                android:layout_width="match_parent"
                android:layout_height="match_parent"/>
        </FrameLayout>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="@color/white" />
    <corners android:topRightRadius="24dp"
        android:topLeftRadius="24dp"/>
</shape>