Valkka
1.6.1
OpenSource Video Management
|
#include <liveserver.h>
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. | |
FrameFifo & | fifo |
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] |
BufferSource * | buffer_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. | |
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.
Stream::Stream | ( | UsageEnvironment & | env, |
FrameFifo & | fifo, | ||
const std::string | adr, | ||
unsigned short int | portnum, | ||
const unsigned char | ttl = 255 |
||
) |
Default constructor.
env | Identifies the live555 event loop |
fifo | See Stream::fifo |
adr | Target address for sending the stream |
portnum | Start port number for sending the stream |
ttl | Packet time-to-live |