1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 20:55:56 +00:00

remove js-based player, better mp3 support detection for html5 audio

This commit is contained in:
Andrew Dolgov
2013-04-16 15:44:38 +04:00
parent 82d77f24a5
commit 40fe2d7382
4 changed files with 8 additions and 38 deletions

View File

@@ -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 .= "<audio id=\"$id\"\" controls style='display : none'>
$entry .= "<audio controls>
<source type=\"$ctype\" src=\"$url\"></source>
</audio>";
$entry .= "<span onclick=\"player(this)\"
title=\"".__("Click to play")."\" status=\"0\"
class=\"player\" audio-id=\"$id\">".__("Play")."</span>";
} else {
$entry .= "<object type=\"application/x-shockwave-flash\"