Skip to content

Commit

Permalink
Merge pull request #34051 from nextcloud/fix/34027/play-audio
Browse files Browse the repository at this point in the history
fix: play single audio shares with the viewer
  • Loading branch information
szaimen authored Sep 13, 2022
2 parents 9104028 + d8ff712 commit 7e6dffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_sharing/js/public.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7e6dffd

Please sign in to comment.