아이팟에서 HTML 오디오 코드를 재생하려하지만 작동하지 않습니다. http://www.avault.com/news/podcast-news/john-romero-podcast-episode-80/iPad/iPhone에서 PHP 스크립트 HTML5 오디오가 작동하지 않습니다.
:나는 N = mp3file.mp3
이 플레이어는 여기에있는 HTML5 오디오 코드
mp3_file_player.php에 MP3 요청에 보낼 하나의 PHP 스크립트를 생성
내 iPod Touch에서도 모든 HTML5 지원 브라우저에서 작동하는 것을 확인할 수 있습니다. 의 MP3가있다
header("X-Powered-By: "); header("Accept-Ranges: bytes"); header("Content-Length: ". (string)(filesize($episode_filename)) .""); header("Content-type: audio/mpeg"); readfile($episode_filename); exit();
모든 것이 잘 작동 : 그러나
이 내 PHP 코드 (나는, 사파리/Windows에서 시도 괜찮 았는데)도 맥 OSX의 사파리, 아이 패드/아이폰에서 작동하지 않습니다 동일한 머리말은 mp3를 직접 읽는 것을 좋아합니다.
HTTP 헤더 직접 파일 액세스에서 :
이(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
는 콘텐츠 범위의 다른, 나는 시도조차 유일한 것은 추가하기 : 내 PHP 스크립트에서
(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 헤더 ,하지만 그것을 사용하면 플레이어가 내 iPod Touch에서 작동하지 않습니다. 그래서 나는 제거했다.
대단히 감사합니다.
작품. – zneak
라이브 방송은 나를 위해 사파리에서 정말 엉망이되었습니다. – thouliha