summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js
diff options
context:
space:
mode:
authorPiotr Filiciak <piotr@filiciak.pl>2016-05-24 12:34:37 +0200
committerPiotr Filiciak <piotr@filiciak.pl>2016-05-24 12:34:37 +0200
commit11b2e98a30da1cc97d82739600da53fcef765c3f (patch)
treed8a7c412f3c0368c93a7728e2fbbaa86054f0e6c /apps/files_sharing/js
parent53437ecced06c5dcff0c2b62b915b6bbf716bccb (diff)
downloadnextcloud-server-11b2e98a30da1cc97d82739600da53fcef765c3f.tar.gz
nextcloud-server-11b2e98a30da1cc97d82739600da53fcef765c3f.zip
video poster
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r--apps/files_sharing/js/public.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index 6df19621be6..46d4ee2d594 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -149,6 +149,9 @@ OCA.Sharing.PublicApp = {
img.attr('width', 128);
img.appendTo('#imgframe');
}
+ else {
+ $('#imgframe > video').attr('poster', OC.filePath('files_sharing', 'ajax', 'publicpreview.php') + '?' + OC.buildQueryString(params));
+ }
if (this.fileList) {
// TODO: move this to a separate PublicFileList class that extends OCA.Files.FileList (+ unit tests)