mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-18 22:37:59 +01:00
implementing the video brightness and volume controllers
This commit is contained in:
parent
08cf0a9005
commit
67c3339d7d
1 changed files with 13 additions and 0 deletions
|
@ -135,6 +135,19 @@ open class VideoPlayerActivity : SimpleActivity(), SeekBar.OnSeekBarChangeListen
|
|||
video_surface.setOnClickListener {
|
||||
fullscreenToggled(!mIsFullscreen)
|
||||
}
|
||||
|
||||
if (config.allowVideoGestures) {
|
||||
video_brightness_controller.initialize(this, slide_info, true, video_player_holder) { x, y ->
|
||||
video_player_holder.performClick()
|
||||
}
|
||||
|
||||
video_volume_controller.initialize(this, slide_info, false, video_player_holder) { x, y ->
|
||||
video_player_holder.performClick()
|
||||
}
|
||||
} else {
|
||||
video_brightness_controller.beGone()
|
||||
video_volume_controller.beGone()
|
||||
}
|
||||
}
|
||||
|
||||
private fun initExoPlayer() {
|
||||
|
|
Loading…
Reference in a new issue