Skip to content

Commit

Permalink
Fix fullscreen causing webview to become invisible issue in shaka-player
Browse files Browse the repository at this point in the history
  • Loading branch information
MarmadileManteater committed Sep 4, 2024
1 parent a028fe1 commit f5486b8
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,19 @@ export default defineComponent({
})
})

window.addEventListener('app-pause', () => {
ui.configure({
enableFullscreenOnRotation: false
})
document.exitFullscreen()
})

window.addEventListener('app-resume', () => {
ui.configure({
enableFullscreenOnRotation: enterFullscreenOnDisplayRotate.value
})
})

const maxVideoPlaybackRate = computed(() => {
return parseInt(store.getters.getMaxVideoPlaybackRate)
})
Expand Down

0 comments on commit f5486b8

Please sign in to comment.