<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="250dp"
    android:id="@+id/videoview_root"
    android:background="@color/transparent"
    xmlns:app="http://schemas.android.com/apk/res-auto">
    <androidx.media3.ui.PlayerView
        android:id="@+id/video_player"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:default_artwork="@drawable/placeholder_video_thumbnail"
        app:use_artwork="true"
        app:use_controller="false"
        app:show_buffering="always"
        android:layout_marginBottom="6dp" />
    <!--
    <androidx.media3.ui.PlayerControlView
        android:id="@+id/video_player_bar"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginLeft="-6dp"
        android:layout_marginRight="-6dp"
        app:show_timeout="-1"
        app:controller_layout_id="@layout/video_player_ui_bar" />-->
    <FrameLayout
        android:id="@+id/layout_controls_background"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="#55000000"
        android:layout_marginBottom="6dp">
    </FrameLayout>

    <FrameLayout
        android:id="@+id/overlay_brightness"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="gone" />

    <com.futo.platformplayer.views.behavior.GestureControlView
        android:id="@+id/gesture_control"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

    <FrameLayout
        android:id="@+id/layout_controls"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <androidx.media3.ui.PlayerControlView
            android:id="@+id/video_player_controller"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginLeft="-6dp"
            android:layout_marginRight="-6dp"
            app:show_timeout="-1"
            app:controller_layout_id="@layout/video_player_ui" />
        <androidx.media3.ui.PlayerControlView
            android:id="@+id/video_player_controller_fullscreen"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:show_timeout="-1"
            app:controller_layout_id="@layout/video_player_ui_fullscreen"
            android:visibility="gone" />
    </FrameLayout>

    <com.futo.platformplayer.views.TargetTapLoaderView
        android:id="@+id/loader_overlay"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="gone" />

</androidx.constraintlayout.widget.ConstraintLayout>