
Configuring IIS for captions. They work from apache.
I'm having trouble with my captions being on a different machine for mobile devices. I moved them to my IIS server so that I could see if it was an issue with the cross domain. But they won't load in the player from IIS. Here's what I've done.
<mimeMap fileExtension=".srt" mimeType="text/plain" />
<mimeMap fileExtension=".vtt" mimeType="text/plain" />
Here's the IIS file info where it doesn't load:
curl -I http://www.intelecomonline.net/INT_MCB1_01_003.srt
HTTP/1.1 200 OK
Content-Length: 1910
Content-Type: text/plain
Last-Modified: Mon, 07 Mar 2016 19:36:30 GMT
Accept-Ranges: bytes
ETag: "0f3aea5a878d11:0"
Server: Microsoft-IIS/8.0
X-Powered-By: ASP.NET
Access-Control-Allow-Origin: *
Date: Mon, 07 Mar 2016 20:38:22 GMT
Here's the Apache info where it is loading:
curl -I http://dma.iriseducation.org/intelecom_vl_captions/INT_MCB1_01_003.srt
HTTP/1.1 200 OK
Date: Mon, 07 Mar 2016 20:40:47 GMT
Server: Apache
X-Distributor: AHC
Last-Modified: Thu, 11 Feb 2016 00:08:55 GMT
ETag: "16000000bc4812-706-52b735b3a00c3"
Accept-Ranges: bytes
Content-Length: 1798
Content-Type: application/x-subrip
I did change my MIME Type on IIS to application/x-subrip but it didn't make a difference.
It's has to be something with my IIS configuration because I just change the caption URL and it works.
jwplayer("player").setup({
playlist: [
{
sources: [{
file: "http://media3.scctv.net:1935/intelecomreleases/_definst_/Mobile/smil:INT_MCB1_01_003_aligned_keyframes.smil/manifest.m3u8"
},{
file: "http://media3.scctv.net:1935/intelecomReleases/_definst_/Mobile/smil:INT_MCB1_01_003_aligned_keyframes.smil/jwplayer.smil"
}],
tracks: [{
file: "http://www.intelecomonline.net/INT_MCB1_01_003.srt",
kind: "captions",
default: "true"
}]
}
],
primary: 'flash',
fallback: true,
androidhls: true,
width: '50%',
aspectratio: "16:9"
});
Test player link:
http://www.intelecomonline.net/test_encodes_aligned_keyframes.aspx
Caption file link
http://www.intelecomonline.net/INT_MCB1_01_003.srt
Please let me know if you see something not right or if you have any suggestions on what to check on IIS.
Thanks,
Joel