diff options
author | Piotr Filiciak <piotr@filiciak.pl> | 2016-05-24 12:34:37 +0200 |
---|---|---|
committer | Piotr Filiciak <piotr@filiciak.pl> | 2016-05-24 12:34:37 +0200 |
commit | 11b2e98a30da1cc97d82739600da53fcef765c3f (patch) | |
tree | d8a7c412f3c0368c93a7728e2fbbaa86054f0e6c /apps/files_sharing/js | |
parent | 53437ecced06c5dcff0c2b62b915b6bbf716bccb (diff) | |
download | nextcloud-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.js | 3 |
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) |