mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-16 23:12:12 +00:00
fix: libass positioning
This commit is contained in:
parent
6e903d4b6e
commit
a316bd31db
1 changed files with 6 additions and 1 deletions
|
|
@ -479,7 +479,12 @@ private fun PlayerView.syncLibassOverlay(
|
|||
enabled: Boolean,
|
||||
renderType: LibassRenderType,
|
||||
) {
|
||||
val overlayContainer = findViewById<android.widget.FrameLayout>(R.id.libass_overlay_container) ?: return
|
||||
val containerId = if (renderType == LibassRenderType.OVERLAY_OPEN_GL) {
|
||||
R.id.libass_overlay_container_gl
|
||||
} else {
|
||||
R.id.libass_overlay_container
|
||||
}
|
||||
val overlayContainer = findViewById<android.widget.FrameLayout>(containerId) ?: return
|
||||
val needsOverlay = enabled && renderType.usesOverlaySubtitleView()
|
||||
val boundPlayer = getTag(R.id.libass_overlay_bound_player) as? ExoPlayer
|
||||
val hasOverlayChild = overlayContainer.hasAssOverlayChild()
|
||||
|
|
|
|||
Loading…
Reference in a new issue