Ok, estoy intentando reproducir un código de audio HTML en el iPad pero no funciona.El audio HTML5 con script PHP no funciona en iPad/Iphone
creé un script PHP para enviar a la solicitud de MP3 para el código de audio HTML5
mp3_file_player.php n = mp3file.mp3
el jugador está aquí:? http://www.avault.com/news/podcast-news/john-romero-podcast-episode-80/
Verás que funciona en todos los navegadores compatibles con HTML5 incluso en mi iPod Touch. Pero no funciona en iPad/iPhone, incluso en Safari en Mac OS X (He intentado en Safari/Windows, trabajó muy bien)
Este es mi código 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();
Todo funciona bien, el MP3 tiene los mismos encabezados como leer el mp3 directamente.
encabezados HTTP de acceso directo a archivos: Cabecera
(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 desde mi 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
Lo único diferente es la Content-Range, que incluso trató de agregarlo , pero si lo uso, el reproductor no funcionará en mi Ipod Touch. Entonces lo eliminé.
Muchas gracias.
Funciona bien desde la última versión de Webkit en Mac OS X (aunque se dice "transmisión en vivo" en su lugar). – zneak
La transmisión en vivo realmente está estropeando las cosas en safari para mí. – thouliha