Valkka  1.6.1
OpenSource Video Management
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Stream Class Reference

An outbound Stream. More...

#include <liveserver.h>

Inheritance diagram for Stream:
Inheritance graph
[legend]
Collaboration diagram for Stream:
Collaboration graph
[legend]

Public Member Functions

 Stream (UsageEnvironment &env, FrameFifo &fifo, const std::string adr, unsigned short int portnum, const unsigned char ttl=255)
 Default constructor. More...
 
virtual ~Stream ()
 Default destructor.
 
void handleFrame (Frame *f)
 
void startPlaying ()
 

Static Public Member Functions

static void afterPlaying (void *cdata)
 

Protected Attributes

UsageEnvironment & env
 Identifies the live555 event loop.
 
FrameFifofifo
 Frames are read from here. This reference leads all the way down to LiveThread::fifo.
 
RTPSink * sink
 Live555 class: queries frames from terminal.
 
RTCPInstance * rtcp
 
Groupsock * rtpGroupsock
 
Groupsock * rtcpGroupsock
 
unsigned char cname [101]
 
BufferSourcebuffer_source
 Reserved in the child classes (depends on the payload type)
 
FramedSource * terminal
 The final sink in the live555 filterchain.
 
Boolean source_alive
 A canary variable that tells us if live555 event loop has closed the buffer_source.
 

Detailed Description

An outbound Stream.

In the live555 API, there are filterchains as well. These end to a sink, while the sink queries frames from the source.

Here the source is Stream::buffer_source (BufferSource) and the final sink is Stream::terminal. Frames are fed with FrameFifo s into BufferSource. If BufferSource has frames in it's BufferSource::internal_fifo, it will pass a frame down the live555 filterchain.

Constructor & Destructor Documentation

◆ Stream()

Stream::Stream ( UsageEnvironment &  env,
FrameFifo fifo,
const std::string  adr,
unsigned short int  portnum,
const unsigned char  ttl = 255 
)

Default constructor.

Parameters
envIdentifies the live555 event loop
fifoSee Stream::fifo
adrTarget address for sending the stream
portnumStart port number for sending the stream
ttlPacket time-to-live

The documentation for this class was generated from the following files: