From: Andrew Dolgov Date: Tue, 16 Apr 2013 11:44:38 +0000 (+0400) Subject: remove js-based player, better mp3 support detection for html5 audio X-Git-Tag: 1.7.9~25^2~206 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=40fe2d73821788e7c202191dc7b94b025585d338;p=tt-rss.git remove js-based player, better mp3 support detection for html5 audio --- diff --git a/classes/rpc.php b/classes/rpc.php index 1569a9a3..b6d55286 100644 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -334,6 +334,7 @@ class RPC extends Handler_Protected { function sanityCheck() { $_SESSION["hasAudio"] = $_REQUEST["hasAudio"] === "true"; $_SESSION["hasSandbox"] = $_REQUEST["hasSandbox"] === "true"; + $_SESSION["hasMp3"] = $_REQUEST["hasMp3"] === "true"; $reply = array(); diff --git a/include/functions.php b/include/functions.php index 01852064..87eb3d6a 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2990,19 +2990,12 @@ if (strpos($ctype, "audio/") === 0) { if ($_SESSION["hasAudio"] && (strpos($ctype, "ogg") !== false || - strpos($_SERVER['HTTP_USER_AGENT'], "Chrome") !== false || - strpos($_SERVER['HTTP_USER_AGENT'], "Safari") !== false )) { + $_SESSION["hasMp3"])) { - $id = 'AUDIO-' . uniqid(); - - $entry .= "