1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 13:25:54 +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

@@ -248,11 +248,15 @@ function init() {
loading_set_progress(20);
var hasAudio = !!((myAudioTag = document.createElement('audio')).canPlayType);
var a = document.createElement('audio');
var hasAudio = !!a.canPlayType;
var hasSandbox = "sandbox" in document.createElement("iframe");
var hasMp3 = !!(a.canPlayType && a.canPlayType('audio/mpeg;').replace(/no/, ''));
new Ajax.Request("backend.php", {
parameters: {op: "rpc", method: "sanityCheck", hasAudio: hasAudio,
hasMp3: hasMp3,
hasSandbox: hasSandbox},
onComplete: function(transport) {
backend_sanity_check_callback(transport);