Skip to content
Snippets Groups Projects
Commit e54bdc7a authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

TV: Fix channel preview position

Fix #648
parent 41597e1f
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ class PreviewVideoInputService : TvInputService(), CoroutineScope {
return PreviewSession(this)
}
private inner class PreviewSession(private val context: Context
private inner class PreviewSession(context: Context
) : TvInputService.Session(context), MediaPlayerEventListener {
val player by lazy(LazyThreadSafetyMode.NONE) { PlayerController(applicationContext) }
......@@ -81,7 +81,7 @@ class PreviewVideoInputService : TvInputService(), CoroutineScope {
return true
}
override fun onOverlayViewSizeChanged(width: Int, height: Int) {
override fun onSurfaceChanged(format: Int, width: Int, height: Int) {
this.width = width
this.height = height
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment