Skip to content

Commit

Permalink
seekbutton bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rimthekid committed Feb 14, 2022
1 parent 843721e commit fca1048
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/com/github/libretube/PlayerFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ class PlayerFragment : Fragment() {
.setSubtitleConfigurations(subtitle)
.build()
exoPlayer = ExoPlayer.Builder(view.context)
.setSeekBackIncrementMs(5000)
.setSeekForwardIncrementMs(5000)
.build()
exoPlayerView.setShowSubtitleButton(true)
exoPlayerView.setShowNextButton(false)
Expand Down
8 changes: 3 additions & 5 deletions app/src/main/res/layout/fragment_player.xml
Original file line number Diff line number Diff line change
Expand Up @@ -206,20 +206,18 @@
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:background="?attr/colorSurface"
/>
android:background="?attr/colorSurface" />

<com.github.libretube.CustomExoPlayerView
android:id="@+id/player"
android:layout_width="match_parent"
android:layout_height="0dp"
android:background="#000000"
android:scaleType="centerCrop"
app:layout_constraintBottom_toBottomOf="@id/main_container"
app:layout_constraintStart_toStartOf="@id/main_container"
app:layout_constraintTop_toTopOf="@id/main_container"
app:show_buffering="always"
android:background="?attr/colorSurface"
/>
app:show_buffering="always" />

<ImageView
android:id="@+id/close_imageView"
Expand Down

0 comments on commit fca1048

Please sign in to comment.