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];
|
||||
}
|
||||
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("Accept-Ranges", "bytes, parsec");
|
||||
if (rangeType != ' '){
|
||||
|
|
|
@ -58,6 +58,7 @@ namespace Mist {
|
|||
}
|
||||
|
||||
void OutProgressiveSRT::sendHeader(){
|
||||
H.setCORSHeaders();
|
||||
if (webVTT){
|
||||
H.SetHeader("Content-Type", "text/vtt; charset=utf-8");
|
||||
}else{
|
||||
|
|
Loading…
Add table
Reference in a new issue