Added CORS headers to SRT and MP4 outputs
This commit is contained in:
parent
d5fee4d656
commit
7c60f31c09
2 changed files with 2 additions and 0 deletions
|
@ -476,6 +476,7 @@ namespace Mist {
|
||||||
rangeType = H.GetHeader("Range")[0];
|
rangeType = H.GetHeader("Range")[0];
|
||||||
}
|
}
|
||||||
H.Clean(); //make sure no parts of old requests are left in any buffers
|
H.Clean(); //make sure no parts of old requests are left in any buffers
|
||||||
|
H.setCORSHeaders();
|
||||||
H.SetHeader("Content-Type", "video/MP4"); //Send the correct content-type for MP4 files
|
H.SetHeader("Content-Type", "video/MP4"); //Send the correct content-type for MP4 files
|
||||||
H.SetHeader("Accept-Ranges", "bytes, parsec");
|
H.SetHeader("Accept-Ranges", "bytes, parsec");
|
||||||
if (rangeType != ' '){
|
if (rangeType != ' '){
|
||||||
|
|
|
@ -58,6 +58,7 @@ namespace Mist {
|
||||||
}
|
}
|
||||||
|
|
||||||
void OutProgressiveSRT::sendHeader(){
|
void OutProgressiveSRT::sendHeader(){
|
||||||
|
H.setCORSHeaders();
|
||||||
if (webVTT){
|
if (webVTT){
|
||||||
H.SetHeader("Content-Type", "text/vtt; charset=utf-8");
|
H.SetHeader("Content-Type", "text/vtt; charset=utf-8");
|
||||||
}else{
|
}else{
|
||||||
|
|
Loading…
Add table
Reference in a new issue