]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: play single audio shares with the viewer 34051/head
authorMax <max@nextcloud.com>
Tue, 13 Sep 2022 12:42:40 +0000 (14:42 +0200)
committerMax <max@nextcloud.com>
Tue, 13 Sep 2022 12:53:51 +0000 (14:53 +0200)
Signed-off-by: Max <max@nextcloud.com>
apps/files_sharing/js/public.js

index a0a57c41e9d39b080be96408ac27c5ae5d3e2300..6c68490aef58cea876c2037d21842b9901f16bb3 100644 (file)
@@ -153,7 +153,7 @@ OCA.Sharing.PublicApp = {
                });
 
                if (OCA.Viewer && OCA.Viewer.mimetypes.includes(mimetype)
-                       && (mimetype.startsWith('image/') || mimetype.startsWith('video/'))) {
+                       && (mimetype.startsWith('image/') || mimetype.startsWith('video/') || mimetype.startsWith('audio'))) {
                        OCA.Viewer.setRootElement('#imgframe')
                        OCA.Viewer.open({ path: '/' })
                } else if (mimetype.substr(0, mimetype.indexOf('/')) === 'text' && window.btoa) {