mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
updated audio canPlay to match generated streams
This commit is contained in:
parent
e456813f91
commit
81dab5d906
1 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,8 @@
|
||||||
var media = MediaPlayer.testableAudioElement;
|
var media = MediaPlayer.testableAudioElement;
|
||||||
|
|
||||||
if (media.canPlayType) {
|
if (media.canPlayType) {
|
||||||
return media.canPlayType('audio/mpeg').replace(/no/, '') || media.canPlayType('audio/aac').replace(/no/, '');
|
|
||||||
|
return media.canPlayType('audio/mpeg').replace(/no/, '') || media.canPlayType('audio/webm').replace(/no/, '') || media.canPlayType('audio/aac').replace(/no/, '') || media.canPlayType('audio/ogg').replace(/no/, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue