Exemplo n.º 1
0
static void afterPlaying(void* clientData) {
  //*env << "...done reading from file\n";
	PLAY_CLIENT_DATA_T *pclientData = (PLAY_CLIENT_DATA_T *)clientData;
	if(pclientData == NULL){
		*env << "afterPlaying: pclientData == NULL";
		return;
	}
	RTPSink *videoSink = pclientData->videoSink;
	H264VideoStreamFramer* videoSource = pclientData->videoSource;
	char inputFileName[64] = {0};
	memcpy(inputFileName, pclientData->inputFileName, 64);
	videoSink->stopPlaying();
  // Note that this also closes the input file that this source read from.
	Medium::close(videoSource);
	delete pclientData;
  // Start playing once again:
	play(videoSink, inputFileName);
}
void StreamState::pause() {
	if (fRTPSink != NULL) fRTPSink->stopPlaying();
	if (fUDPSink != NULL) fUDPSink->stopPlaying();
	fAreCurrentlyPlaying = False;
}
void StreamState::pause() {
  DEBUG_LOG(INF, "StreamState::pause");
  if (fRTPSink != NULL) fRTPSink->stopPlaying();
  if (fUDPSink != NULL) fUDPSink->stopPlaying();
  fAreCurrentlyPlaying = False;
}