update dependencies
* exoplayer 2.17.1 -> 2.18.2 * security-crypto 1.1.0-alpha03 -> 1.1.0-alpha04 * androidx:junit 1.1.3 -> 1.1.4 * androidx:espresso-core 3.4.0 -> 3.5.0
This commit is contained in:
@ -46,6 +46,7 @@ import androidx.lifecycle.lifecycleScope
|
||||
import com.google.android.exoplayer2.ExoPlayer
|
||||
import com.google.android.exoplayer2.Player
|
||||
import com.google.android.exoplayer2.ui.StyledPlayerControlView
|
||||
import com.google.android.exoplayer2.ui.StyledPlayerView
|
||||
import com.google.android.exoplayer2.util.Util
|
||||
import kotlinx.coroutines.launch
|
||||
import org.mosad.teapod.R
|
||||
@ -251,7 +252,7 @@ class PlayerActivity : AppCompatActivity() {
|
||||
playerBinding.videoView.player = model.player
|
||||
|
||||
// when the player controls get hidden, hide the bars too
|
||||
playerBinding.videoView.setControllerVisibilityListener {
|
||||
playerBinding.videoView.setControllerVisibilityListener(StyledPlayerView.ControllerVisibilityListener {
|
||||
when (it) {
|
||||
View.GONE -> {
|
||||
hideBars()
|
||||
@ -259,7 +260,7 @@ class PlayerActivity : AppCompatActivity() {
|
||||
}
|
||||
View.VISIBLE -> updateControls()
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
playerBinding.videoView.setOnTouchListener { _, event ->
|
||||
gestureDetector.onTouchEvent(event)
|
||||
|
Reference in New Issue
Block a user