Loading spinner for videos

Only worked for audio before
This commit is contained in:
DC
2016-03-29 00:26:16 -07:00
parent dfbc3daa4c
commit 6557be108e
4 changed files with 64 additions and 37 deletions

View File

@@ -258,6 +258,7 @@ function dispatch (action, ...args) {
playPause()
}
if (action === 'play') {
if (state.location.pending()) return
state.location.go({
url: 'player',
onbeforeload: function (cb) {