#include "OnDemandServerMediaSubsession.hh"#include <GroupsockHelper.hh>Include dependency graph for OnDemandServerMediaSubsession.cpp:

Go to the source code of this file.
Functions | |
| static void | afterPlayingStreamState (void *clientData) |
| static void afterPlayingStreamState | ( | void * | clientData | ) | [static] |
Definition at line 347 of file OnDemandServerMediaSubsession.cpp.
References StreamState::reclaim(), and StreamState::streamDuration().
Referenced by StreamState::startPlaying().
00347 { 00348 StreamState* streamState = (StreamState*)clientData; 00349 if (streamState->streamDuration() == 0.0) { 00350 // When the input stream ends, tear it down. This will cause a RTCP "BYE" 00351 // to be sent to each client, teling it that the stream has ended. 00352 // (Because the stream didn't have a known duration, there was no other 00353 // way for clients to know when the stream ended.) 00354 streamState->reclaim(); 00355 } 00356 // Otherwise, keep the stream alive, in case a client wants to 00357 // subsequently re-play the stream starting from somewhere other than the end. 00358 // (This can be done only on streams that have a known duration.) 00359 }
1.5.2