Working OGG and MP4
This commit is contained in:
parent
4ad866cc61
commit
62f1e25e8b
5 changed files with 21 additions and 6 deletions
|
@ -98,7 +98,7 @@ namespace Connector_HTTP {
|
|||
HTTP_S.SetHeader("Content-Type", "video/MP4"); //Send the correct content-type for FLV files
|
||||
HTTP_S.protocol = "HTTP/1.0";
|
||||
conn.SendNow(HTTP_S.BuildResponse("200", "OK")); //no SetBody = unknown length - this is intentional, we will stream the entire file
|
||||
conn.SendNow(Conv.DTSCMeta2MP4Header(Strm.metadata.toJSON()));//SENDING MP4HEADER
|
||||
conn.SendNow(Conv.DTSCMeta2MP4Header(Strm.metadata));//SENDING MP4HEADER
|
||||
keyPartIt = Conv.keyParts.begin();
|
||||
{//using scope to have cmd not declared after action
|
||||
std::stringstream cmd;
|
||||
|
|
|
@ -163,7 +163,7 @@ namespace Connector_HTTP {
|
|||
HTTP_S.protocol = "HTTP/1.0";
|
||||
conn.SendNow(HTTP_S.BuildResponse("200", "OK")); //no SetBody = unknown length - this is intentional, we will stream the entire file
|
||||
//Fill in ogg header here
|
||||
oggMeta.readDTSCHeader(Strm.metadata.toJSON());
|
||||
oggMeta.readDTSCHeader(Strm.metadata);
|
||||
conn.SendNow((char*)oggMeta.parsedPages.c_str(), oggMeta.parsedPages.size());
|
||||
progressive_has_sent_header = true;
|
||||
//setting sendReady to not ready
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue