implementing the video brightness and volume controllers

This commit is contained in:
tibbi 2019-01-02 17:53:49 +01:00
parent 08cf0a9005
commit 67c3339d7d

View file

@ -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() {