toggle fullscreen on end

This commit is contained in:
Cezar Carneiro
2017-10-30 14:42:35 -02:00
committed by Feross Aboukhadijeh
parent 08cb82e255
commit 01971e2a46

View File

@@ -160,6 +160,7 @@ function renderMedia (state) {
} else {
// When the last video completes, pause the video instead of looping
state.playing.isPaused = true
if (state.window.isFullScreen) dispatch('toggleFullScreen')
}
}