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:
@@ -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\"
|
||||
|
||||
Reference in New Issue
Block a user