diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-01-18 15:11:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-18 15:11:38 +0300 |
commit | f5340044af05eca7c5db00949d2399b3242d7269 (patch) | |
tree | ed8498a3de9c5de710e0c1e6edbf4039c71a1250 /src | |
parent | 1fa89d15ef664cee84107feba1449f9e843635eb (diff) | |
parent | 9161a908d8bc0d02ab20f609eec90a30c79ac149 (diff) |
Merge pull request #86 from nextcloud/bugfix/59/autoplay
Do not try to autoplay on public pages
Diffstat (limited to 'src')
-rwxr-xr-x | src/viewer.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/viewer.js b/src/viewer.js index d1e7d4c..038dcc1 100755 --- a/src/viewer.js +++ b/src/viewer.js @@ -68,7 +68,9 @@ var videoViewer = { $("#my_video_1").append(closeButton); } // autoplay - videoViewer.player.play(); + if ($('#body-public').length === 0) { + videoViewer.player.play(); + } }); }, |