Alternatively, you can use Exoplayer to play your videos.
dependencies { [...] implementation 'com.google.android.exoplayer:exoplayer-core:2.7.3' implementation 'com.google.android.exoplayer:exoplayer-dash:2.7.3' implementation 'com.google.android.exoplayer:exoplayer-ui:2.7.3' }
use PlayerView instead of watching the video and specify the path to custom_playback_control in the application: controller_layout_id attr
<com.google.android.exoplayer2.ui.PlayerView android:id="@+id/video_view" android:layout_width="match_parent" android:layout_height="match_parent" app:controller_layout_id="@layout/custom_playback_control"/>
https://codelabs.developers.google.com/codelabs/exoplayer-intro/#6
source share