Changed HLS playlist content type
This commit is contained in:
parent
a51f0d1039
commit
2dbdd855cd
1 changed files with 2 additions and 10 deletions
|
@ -379,11 +379,7 @@ namespace Mist {
|
||||||
H.Clean();
|
H.Clean();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (relPushUrl.find(".m3u8") != std::string::npos) {
|
H.SetHeader("Content-Type", "application/vnd.apple.mpegurl");
|
||||||
H.SetHeader("Content-Type", "audio/x-mpegurl");
|
|
||||||
} else {
|
|
||||||
H.SetHeader("Content-Type", "audio/mpegurl");
|
|
||||||
}
|
|
||||||
if (relPushUrl == "/index.m3u8"){
|
if (relPushUrl == "/index.m3u8"){
|
||||||
H.SetHeader("Cache-Control", "no-cache");
|
H.SetHeader("Cache-Control", "no-cache");
|
||||||
H.setCORSHeaders();
|
H.setCORSHeaders();
|
||||||
|
@ -478,11 +474,7 @@ namespace Mist {
|
||||||
initialize();
|
initialize();
|
||||||
std::string request = H.url.substr(H.url.find("/", 5) + 1);
|
std::string request = H.url.substr(H.url.find("/", 5) + 1);
|
||||||
H.Clean();
|
H.Clean();
|
||||||
if (H.url.find(".m3u8") != std::string::npos) {
|
H.SetHeader("Content-Type", "application/vnd.apple.mpegurl");
|
||||||
H.SetHeader("Content-Type", "audio/x-mpegurl");
|
|
||||||
} else {
|
|
||||||
H.SetHeader("Content-Type", "audio/mpegurl");
|
|
||||||
}
|
|
||||||
H.SetHeader("Cache-Control", "no-cache");
|
H.SetHeader("Cache-Control", "no-cache");
|
||||||
H.setCORSHeaders();
|
H.setCORSHeaders();
|
||||||
if (!myMeta.tracks.size()){
|
if (!myMeta.tracks.size()){
|
||||||
|
|
Loading…
Add table
Reference in a new issue