Timestamps added
This commit is contained in:
parent
9efb557a0a
commit
ca090e160b
2 changed files with 17 additions and 2 deletions
|
@ -178,6 +178,14 @@ int mainHandler(int CONN_fd){
|
||||||
temp = HTTP_R.url.find("Frag") + 4;
|
temp = HTTP_R.url.find("Frag") + 4;
|
||||||
ReqFragment = atoi( HTTP_R.url.substr(temp).c_str() );
|
ReqFragment = atoi( HTTP_R.url.substr(temp).c_str() );
|
||||||
#if DEBUG >= 4
|
#if DEBUG >= 4
|
||||||
|
/* strftime example */
|
||||||
|
time_t rawtime;
|
||||||
|
struct tm * timeinfo;
|
||||||
|
char timebuffer [80];
|
||||||
|
time ( &rawtime );
|
||||||
|
timeinfo = localtime ( &rawtime );
|
||||||
|
strftime (timebuffer,80,"%H:%M.%S.",timeinfo);
|
||||||
|
fprintf(stderr, "< %s >\t", timebuffer );
|
||||||
printf( "URL: %s\n", HTTP_R.url.c_str());
|
printf( "URL: %s\n", HTTP_R.url.c_str());
|
||||||
printf( "Movie: %s, Quality: %s, Seg %d Frag %d\n", Movie.c_str(), Quality.c_str(), Segment, ReqFragment);
|
printf( "Movie: %s, Quality: %s, Seg %d Frag %d\n", Movie.c_str(), Quality.c_str(), Segment, ReqFragment);
|
||||||
#endif
|
#endif
|
||||||
|
@ -238,6 +246,14 @@ int mainHandler(int CONN_fd){
|
||||||
HTTP_S.SendResponse(CONN_fd, "200", "OK");//schrijf de HTTP response header
|
HTTP_S.SendResponse(CONN_fd, "200", "OK");//schrijf de HTTP response header
|
||||||
Flash_RequestPending--;
|
Flash_RequestPending--;
|
||||||
#if DEBUG >= 3
|
#if DEBUG >= 3
|
||||||
|
/* strftime example */
|
||||||
|
time_t rawtime;
|
||||||
|
struct tm * timeinfo;
|
||||||
|
char timebuffer [80];
|
||||||
|
time ( &rawtime );
|
||||||
|
timeinfo = localtime ( &rawtime );
|
||||||
|
strftime (timebuffer,80,"%H:%M.%S.",timeinfo);
|
||||||
|
fprintf(stderr, "< %s >\t", timebuffer );
|
||||||
fprintf(stderr, "Sending a video fragment. %i left in buffer, %i requested\n", (int)Flash_FragBuffer.size(), Flash_RequestPending);
|
fprintf(stderr, "Sending a video fragment. %i left in buffer, %i requested\n", (int)Flash_FragBuffer.size(), Flash_RequestPending);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -258,7 +274,6 @@ int mainHandler(int CONN_fd){
|
||||||
if (FlashBuf != ""){
|
if (FlashBuf != ""){
|
||||||
Flash_FragBuffer.push(FlashBuf);
|
Flash_FragBuffer.push(FlashBuf);
|
||||||
#if DEBUG >= 4
|
#if DEBUG >= 4
|
||||||
/* strftime example */
|
|
||||||
time_t rawtime;
|
time_t rawtime;
|
||||||
struct tm * timeinfo;
|
struct tm * timeinfo;
|
||||||
char timebuffer [80];
|
char timebuffer [80];
|
||||||
|
|
|
@ -547,7 +547,7 @@ std::string Interface::GenerateLiveBootstrap( uint32_t CurMediaTime ) {
|
||||||
afrt->SetUpdate(false);
|
afrt->SetUpdate(false);
|
||||||
afrt->SetTimeScale( 1000 );
|
afrt->SetTimeScale( 1000 );
|
||||||
afrt->AddQualityEntry( "" );
|
afrt->AddQualityEntry( "" );
|
||||||
afrt->AddFragmentRunEntry( 1, 4000 , 4000 );
|
afrt->AddFragmentRunEntry( 1, 1 , 4000 );
|
||||||
afrt->WriteContent( );
|
afrt->WriteContent( );
|
||||||
|
|
||||||
//SetUpASRT
|
//SetUpASRT
|
||||||
|
|
Loading…
Add table
Reference in a new issue