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

Go to the source code of this file.
Data Structures | |
| class | Destinations |
| class | StreamState |
Functions | |
| static void | afterPlayingStreamState (void *clientData) |
| static void afterPlayingStreamState | ( | void * | clientData | ) | [static] |
Definition at line 395 of file OnDemandServerMediaSubsession.cpp.
References StreamState::reclaim(), and StreamState::streamDuration().
Referenced by StreamState::startPlaying().
00395 { 00396 StreamState* streamState = (StreamState*)clientData; 00397 if (streamState->streamDuration() == 0.0) { 00398 // When the input stream ends, tear it down. This will cause a RTCP "BYE" 00399 // to be sent to each client, teling it that the stream has ended. 00400 // (Because the stream didn't have a known duration, there was no other 00401 // way for clients to know when the stream ended.) 00402 streamState->reclaim(); 00403 } 00404 // Otherwise, keep the stream alive, in case a client wants to 00405 // subsequently re-play the stream starting from somewhere other than the end. 00406 // (This can be done only on streams that have a known duration.) 00407 }
1.5.2