New way of playing MP4
This commit is contained in:
parent
d8042eed78
commit
77c5aa0687
1 changed files with 6 additions and 6 deletions
|
@ -77,9 +77,9 @@ namespace Connector_HTTP {
|
||||||
keyPartIt = Conv.keyParts.begin();
|
keyPartIt = Conv.keyParts.begin();
|
||||||
{//using scope to have cmd not declared after action
|
{//using scope to have cmd not declared after action
|
||||||
std::stringstream cmd;
|
std::stringstream cmd;
|
||||||
cmd << "t "<< (*keyPartIt).trackID;
|
cmd << "t 1 2";//<< (*keyPartIt).trackID;
|
||||||
cmd << "\ns " << (*keyPartIt).time;
|
cmd << "\ns 0";
|
||||||
cmd << "\no\n";
|
cmd << "\np\n";
|
||||||
ss.SendNow(cmd.str());
|
ss.SendNow(cmd.str());
|
||||||
}
|
}
|
||||||
if ( !ss.connected()){
|
if ( !ss.connected()){
|
||||||
|
@ -128,7 +128,7 @@ namespace Connector_HTTP {
|
||||||
if (ss.spool()){
|
if (ss.spool()){
|
||||||
while (Strm.parsePacket(ss.Received())){
|
while (Strm.parsePacket(ss.Received())){
|
||||||
if (Strm.lastType() == DTSC::PAUSEMARK){
|
if (Strm.lastType() == DTSC::PAUSEMARK){
|
||||||
keyPartIt++;
|
/*keyPartIt++;
|
||||||
if (keyPartIt != Conv.keyParts.end()){
|
if (keyPartIt != Conv.keyParts.end()){
|
||||||
//Instruct player
|
//Instruct player
|
||||||
std::stringstream cmd;
|
std::stringstream cmd;
|
||||||
|
@ -136,9 +136,9 @@ namespace Connector_HTTP {
|
||||||
cmd << "\ns " << (*keyPartIt).time;
|
cmd << "\ns " << (*keyPartIt).time;
|
||||||
cmd << "\no\n";
|
cmd << "\no\n";
|
||||||
ss.SendNow(cmd.str());
|
ss.SendNow(cmd.str());
|
||||||
}else{//if keyparts.end, then we reached the end of the file
|
}else{//if keyparts.end, then we reached the end of the file*/
|
||||||
conn.close();
|
conn.close();
|
||||||
}
|
//}
|
||||||
}else if(Strm.lastType() == DTSC::AUDIO || Strm.lastType() == DTSC::VIDEO){
|
}else if(Strm.lastType() == DTSC::AUDIO || Strm.lastType() == DTSC::VIDEO){
|
||||||
//parse DTSC to MP4 here
|
//parse DTSC to MP4 here
|
||||||
conn.SendNow(Strm.lastData());//send out and clear Converter buffer
|
conn.SendNow(Strm.lastData());//send out and clear Converter buffer
|
||||||
|
|
Loading…
Add table
Reference in a new issue