mirror of
https://github.com/videolan/vlc-android
synced 2024-11-27 03:43:32 +08:00
parent
10ef1b084b
commit
14b00506de
@ -193,14 +193,15 @@
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:importantForAccessibility="no"
|
||||
android:gravity="left"
|
||||
android:nextFocusUp="@+id/ab_repeat_add_marker"
|
||||
android:onClick="@{(v) -> player.toggleTimeDisplay()}"
|
||||
android:text="@{Tools.millisToString(progress.time)}"
|
||||
tools:text="0:32"
|
||||
vlc:layout_constraintBottom_toTopOf="@+id/player_overlay_seekbar"
|
||||
vlc:layout_constraintEnd_toStartOf="@+id/player_overlay_length"
|
||||
vlc:layout_constraintRight_toLeftOf="@+id/player_overlay_length"
|
||||
vlc:layout_constraintHorizontal_chainStyle="spread"
|
||||
vlc:layout_constraintStart_toStartOf="parent" />
|
||||
vlc:layout_constraintLeft_toLeftOf="parent" />
|
||||
|
||||
|
||||
<org.videolan.vlc.gui.view.FocusableTextView
|
||||
@ -217,8 +218,8 @@
|
||||
android:onClick="@{(v) -> player.toggleTimeDisplay()}"
|
||||
tools:text="56:37"
|
||||
vlc:layout_constraintBottom_toTopOf="@+id/player_overlay_seekbar"
|
||||
vlc:layout_constraintEnd_toEndOf="parent"
|
||||
vlc:layout_constraintStart_toEndOf="@+id/player_overlay_time"
|
||||
vlc:layout_constraintRight_toRightOf="parent"
|
||||
vlc:layout_constraintLeft_toRightOf="@+id/player_overlay_time"
|
||||
vlc:length="@{progress.length}"
|
||||
vlc:time="@{progress.time}" />
|
||||
|
||||
|
@ -1937,8 +1937,8 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
|
||||
when (v.id) {
|
||||
R.id.orientation_toggle -> toggleOrientationLock()
|
||||
R.id.playlist_toggle -> overlayDelegate.togglePlaylist()
|
||||
R.id.player_overlay_forward -> touchDelegate.seekDelta(Settings.videoJumpDelay * 1000)
|
||||
R.id.player_overlay_rewind -> touchDelegate.seekDelta(-Settings.videoJumpDelay * 1000)
|
||||
R.id.player_overlay_forward -> touchDelegate.seekDelta(if (LocaleUtil.isRtl()) -Settings.videoJumpDelay * 1000 else Settings.videoJumpDelay * 1000)
|
||||
R.id.player_overlay_rewind -> touchDelegate.seekDelta(if (LocaleUtil.isRtl()) Settings.videoJumpDelay * 1000 else -Settings.videoJumpDelay * 1000)
|
||||
R.id.ab_repeat_add_marker -> service?.playlistManager?.setABRepeatValue(
|
||||
service?.playlistManager?.getCurrentMedia(), overlayDelegate.hudBinding.playerOverlaySeekbar.progress.toLong())
|
||||
R.id.ab_repeat_reset -> service?.playlistManager?.resetABRepeatValues(service?.playlistManager?.getCurrentMedia())
|
||||
@ -1988,11 +1988,11 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
|
||||
return true
|
||||
}
|
||||
R.id.player_overlay_forward -> {
|
||||
touchDelegate.seekDelta(Settings.videoLongJumpDelay * 1000)
|
||||
touchDelegate.seekDelta(if (LocaleUtil.isRtl()) -Settings.videoLongJumpDelay * 1000 else Settings.videoLongJumpDelay * 1000)
|
||||
return true
|
||||
}
|
||||
R.id.player_overlay_rewind -> {
|
||||
touchDelegate.seekDelta(-Settings.videoLongJumpDelay * 1000)
|
||||
touchDelegate.seekDelta(if (LocaleUtil.isRtl()) Settings.videoLongJumpDelay * 1000 else -Settings.videoLongJumpDelay * 1000)
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user