MP4 does not work yet, but code has been cleaned up a little.

This commit is contained in:
Oswald Auguste de Bruin 2013-09-20 14:02:13 +02:00 committed by Thulinma
parent 0379825a7d
commit aa67e09b71

View file

@ -166,21 +166,16 @@ namespace Connector_HTTP {
if (Strm.lastType() == DTSC::PAUSEMARK){ if (Strm.lastType() == DTSC::PAUSEMARK){
keyPartIt++; keyPartIt++;
if (keyPartIt != Conv.keyParts.end()){ if (keyPartIt != Conv.keyParts.end()){
//Schop player //Instruct player
//t trackID
//s (*keyPartIt).time
//p time+len
std::stringstream cmd; std::stringstream cmd;
cmd << "t "<< (*keyPartIt).trackID; cmd << "t "<< (*keyPartIt).trackID;
cmd << "\ns " << (*keyPartIt).time; cmd << "\ns " << (*keyPartIt).time;
cmd << "\no\n"; cmd << "\no\n";
//std::cerr << cmd.str() << std::endl;
ss.SendNow(cmd.str()); ss.SendNow(cmd.str());
} }
}else if(Strm.lastType() == DTSC::AUDIO || Strm.lastType() == DTSC::VIDEO){ }else if(Strm.lastType() == DTSC::AUDIO || Strm.lastType() == DTSC::VIDEO){
//std::cerr << "send data" << std::endl;
//parse DTSC to MP4 here //parse DTSC to MP4 here
conn.SendNow(Strm.lastData());//send out and clear Convverter buffer conn.SendNow(Strm.lastData());//send out and clear Converter buffer
} }
if (Strm.lastType() == DTSC::INVALID){ if (Strm.lastType() == DTSC::INVALID){
#if DEBUG >= 3 #if DEBUG >= 3