1

제목이 있습니다. 조금 조사한 후에 IE의 경우는 TimeRangers의 오브젝트가 비어 있기 때문에, Chrome/FF/etc으로 채워지는 것으로 판단했습니다.jPlayer는 IE에서 작동하지 않습니다.

Firsly, FF/Chrome은 IE가 Range 요청을 보내지 않는다는 것을 발견했습니다.

둘째, IE가 Content-Disposition 헤더없이 파일을 허용하지 않는다는 사실을 발견했습니다.

두 가지 문제가 수정되었지만 (콘텐츠 추가를 추가하고 항상 클라이언트가 IE 인 Accept-Range 헤더를 포함) 오디오가 여전히 작동하지 않습니다.

$('#jquery_jplayer') 
    .jPlayer({ 
     cssSelectorAncestor: "#jp_container", 
     supplied: 'mp3', 
     solution: 'html', 
     useStateClassSkin: true, 
     autoBlur: false, 
     smoothPlayBar: true, 
     keyEnabled: true, 
     remainingDuration: true, 
     toggleDuration: true, 
     wmode: "window" 
    }); 

크롬 요청/응답 :

Host: localhost:8080 
Connection: keep-alive 
Pragma: no-cache 
Cache-Control: no-cache 
Accept-Encoding: identity;q=1, *;q=0 
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.59 Safari/537.36 
Accept: */* 
Referer: http://localhost:8080/Object?objectId=299a1dee-8d2a-4225-8c19-0d8ff73920e2 
Accept-Language: ru,en-US;q=0.8,en;q=0.6 
Range: bytes=0- 

HTTP/1.1 206 Partial Content 
Date: Thu, 20 Oct 2016 15:09:02 GMT 
Content-Length: 322450 
Content-Type: application/octet-stream 
Content-Range: bytes 0-322449/322450 
Server: Kestrel 
Content-Disposition: attachment; filename=file.mp3; filename*=UTF-8''file.mp3 

IE : 여기

는 JS이다

Accept: */* 
Accept-Encoding: gzip, deflate 
Accept-Language: en-US, en; q=0.7, ru; q=0.3 
Cache-Control: no-cache 
Connection: Keep-Alive 
GetContentFeatures.DLNA.ORG: 1 
Host: localhost:8080 
Referer: http://localhost:8080/Object?objectId=299a1dee-8d2a-4225-8c19-0d8ff73920e2 
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko 

Content-Disposition: attachment; filename="file.mp3"; filename*=UTF-8''file.mp3 
Content-Length: 322450 
Content-Range: bytes 0-322449/322450 
Content-Type: application/octet-stream 
Date: Thu, 20 Oct 2016 14:56:08 GMT 
Server: Kestrel 

응답은 두 경우 모두 동일하지만, 크롬 작동/FF 용이며 IE 용은 아닙니다.

이 나는 ​​뭔가를 놓치고 있습니까? jPlayer, 서버, 헤더, 모든 것을 구성했습니다 ... 그러나 여전히 IE에서 오디오를 재생할 수 없습니다.

는 윈도우 10 IE11에서 크롬 54

을 테스트

테스트 - 다음 MP3 작업 : http://jplayer.org/audio/mp3/Miaow-07-Bubble.mp3

그러나 다음과 같은 MP3에 하지 수행합니다 http://www.filedropper.com/file_259

+1

서버의 파일에만 해당합니까? 이 파일을 사용하여 검색 (재생 바를 클릭)하는 방법은 무엇입니까? http://jplayer.org/audio/mp3/Miaow-07-Bubble.mp3 –

+0

좋습니다. 네,이 파일은 IE에서 잘 작동합니다. 유일한 차이 - 다른 파일. 내 파일은 작동하지 않습니다. 나머지는 같습니다. –

+0

IE 용 헤더에 뭔가 빠져 있어야합니다. –

답변

0

대답하는 파일입니다 부패했다. 다른 브라우저들은이 파일을 덮어 씌우고 있었지만 IE는 파일을 포기하고 파일을 전혀 재생하지 않는 유일한 사람입니다. 따라서 동일한 문제가 발생하면 먼저 파일이 유효한지 확인하십시오.

관련 문제