Valkka
1.6.1
OpenSource Video Management
|
A negotiated RTSP connection. More...
#include <livethread.h>
Public Member Functions | |
RTSPConnection (UsageEnvironment &env, LiveConnectionContext &ctx) | |
Default constructor. More... | |
void | playStream () |
Uses ValkkaRTSPClient instance to initiate the RTSP negotiation. | |
void | stopStream (bool cut=true) |
Uses ValkkaRTSPClient instance to shut down the stream. | |
void | reStartStreamIf () |
Restarts the stream if no frames have been received for a while. | |
bool | isClosed () |
Have the streams resources been reclaimed? | |
void | forceClose () |
Normally, stopStream reclaims the resources. This one forces the delete. | |
Public Member Functions inherited from Connection | |
Connection (UsageEnvironment &env, LiveConnectionContext &ctx) | |
Default constructor. More... | |
virtual | ~Connection () |
Default destructor. | |
virtual void | reStartStream () |
Called from within the live555 event loop. | |
SlotNumber | getSlot () |
Return the slot number. | |
Private Attributes | |
ValkkaRTSPClient * | client |
ValkkaRTSPClient defines the behaviour (i.e. event registration and callbacks) of the RTSP client (see live555 bridge) | |
LiveStatus | livestatus |
Reference of this variable is passed to ValkkaRTSPClient. We can see outside of the live555 callback chains if RTSPConnection::client has deallocated itself. | |
bool | termplease |
Ref of this var is passed to ValkkaRTSPClient. When set to true, ValkkaRTSPClient should terminate itself if not yet playing. | |
Additional Inherited Members | |
Public Attributes inherited from Connection | |
UsageEnvironment & | env |
UsageEnvironment identifying the Live555 event loop (see Live555 primer) | |
bool | is_playing |
Protected Attributes inherited from Connection | |
LiveConnectionContext & | ctx |
LiveConnectionContext identifying the stream source (address), it's destination (slot and target framefilter), etc. | |
FrameFilter * | timestampfilter |
FrameFilter * | inputfilter |
FrameFilter * | repeat_sps_filter |
Repeat sps & pps packets before i-frame (if they were not there before the i-frame) | |
long int | frametimer |
Measures time when the last frame was received. | |
long int | pendingtimer |
Measures how long stream has been pending. | |
A negotiated RTSP connection.
Uses the internal ValkkaRTSPClient instance which defines the RTSP client behaviour, i. e. the events and callbacks that are registered into the Live555 event loop (see live555 bridge)
RTSPConnection::RTSPConnection | ( | UsageEnvironment & | env, |
LiveConnectionContext & | ctx | ||
) |
Default constructor.
env | See Connection::env |
ctx | See Connection::ctx |