Skip to content

Commit 7e6dffd

Browse files
authored
Merge pull request #34051 from nextcloud/fix/34027/play-audio
fix: play single audio shares with the viewer
2 parents 9104028 + d8ff712 commit 7e6dffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files_sharing/js/public.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ OCA.Sharing.PublicApp = {
153153
});
154154

155155
if (OCA.Viewer && OCA.Viewer.mimetypes.includes(mimetype)
156-
&& (mimetype.startsWith('image/') || mimetype.startsWith('video/'))) {
156+
&& (mimetype.startsWith('image/') || mimetype.startsWith('video/') || mimetype.startsWith('audio'))) {
157157
OCA.Viewer.setRootElement('#imgframe')
158158
OCA.Viewer.open({ path: '/' })
159159
} else if (mimetype.substr(0, mimetype.indexOf('/')) === 'text' && window.btoa) {

0 commit comments

Comments
 (0)