Skip to content

Instantly share code, notes, and snippets.

@halilozel1903
Created August 30, 2022 19:56
Show Gist options
  • Save halilozel1903/51a5fb269aeb316d35e9fe2301650fe9 to your computer and use it in GitHub Desktop.
Save halilozel1903/51a5fb269aeb316d35e9fe2301650fe9 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:argType="http://schemas.android.com/tools"
android:id="@+id/flRoot"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusable="true"
android:keepScreenOn="true">
<com.google.android.exoplayer2.ui.StyledPlayerView
android:id="@+id/playerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:show_subtitle_button="true"
argType:fastforward_increment="15000"
argType:resize_mode="fixed_width"
argType:rewind_increment="15000"
argType:show_buffering="when_playing"
argType:show_fastforward_button="true"
argType:show_next_button="false"
argType:show_previous_button="false"
argType:show_rewind_button="true"
argType:show_subtitle_button="true"
argType:use_artwork="true"
argType:use_controller="true"
argType:use_sensor_rotation="true">
</com.google.android.exoplayer2.ui.StyledPlayerView>
</FrameLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment