1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-06 11:59:56 +02:00

Handle opus audio files like ogg audio files

This commit is contained in:
root 2015-06-18 19:40:58 +02:00
parent 41e837b38e
commit 4e2b24f877

View file

@ -114,7 +114,7 @@ class WebPlayer
}
if ($urlinfo['type'] == 'song') {
if ($types['real'] == "ogg") $types['player'] = "oga";
if ($types['real'] == "ogg" || $types['real'] == "opus") $types['player'] = "oga";
else if ($types['real'] == "mp4") $types['player'] = "m4a";
} else if ($urlinfo['type'] == 'video') {
if ($types['real'] == "ogg") $types['player'] = "ogv";
@ -123,7 +123,7 @@ class WebPlayer
}
} else if ($item->type == 'live_stream') {
$types['real'] = $item->codec;
if ($types['real'] == "ogg") $types['player'] = "oga";
if ($types['real'] == "ogg" || $types['real'] == "opus") $types['player'] = "oga";
} else {
$ext = pathinfo($item->url, PATHINFO_EXTENSION);
if (!empty($ext)) $types['real'] = $ext;