Ok, sto provando a riprodurre un codice audio HTML su iPad ma non funziona.L'audio HTML5 con script PHP non funziona su iPad/Iphone
ho creato uno script PHP per inviare alla richiesta MP3 al codice HTML5 audio
mp3_file_player.php n = mp3file.mp3
il giocatore è qui:? http://www.avault.com/news/podcast-news/john-romero-podcast-episode-80/
Vedrai che funziona su tutti i browser HTML5 supportati anche sul mio iPod Touch. Ma non funziona su iPad/iPhone, anche su Safari su Mac OSX (ho provato su Safari/Windows, ha funzionato bene)
Questo è il mio codice PHP:
header("X-Powered-By: ");
header("Accept-Ranges: bytes");
header("Content-Length: ". (string)(filesize($episode_filename)) ."");
header("Content-type: audio/mpeg");
readfile($episode_filename);
exit();
Tutto funziona bene, l'MP3 ha le stesse intestazioni come leggere direttamente l'mp3.
intestazioni HTTP da accesso diretto ai file: Intestazione
(Status-Line) HTTP/1.1 200 OK
Date Mon, 31 May 2010 20:27:31 GMT
Server Apache/2.2.9
Last-Modified Wed, 26 May 2010 13:39:19 GMT
Etag "dac0039-41d91f8-4877f669cefc0"
Accept-Ranges bytes
Content-Length 50656162
Content-Range bytes 18390614-69046775/69046776
Keep-Alive timeout=15, max=100
Connection Keep-Alive
Content-Type audio/mpeg
HTTP dal mio script PHP:
(Status-Line) HTTP/1.1 200 OK
Date Mon, 31 May 2010 20:27:08 GMT
Server Apache/2.2.9
Accept-Ranges bytes
Content-Length 69046776
Keep-Alive timeout=15, max=100
Connection Keep-Alive
Content-Type audio/mpeg
L'unica cosa diversa è il Content-Range, ho anche provato ad aggiungere che , ma se lo uso il lettore non funzionerà sul mio Ipod Touch. Così ho rimosso.
Grazie mille.
Opere bene dalla ultima build Webkit su Mac OS X (se si dice "Live Broadcast", invece). – zneak
La trasmissione dal vivo è davvero un casino per me. – thouliha