Valkka  1.6.1
OpenSource Video Management
Public Member Functions | Private Attributes | List of all members
RTSPConnection Class Reference

A negotiated RTSP connection. More...

#include <livethread.h>

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

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

ValkkaRTSPClientclient
 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
LiveConnectionContextctx
 LiveConnectionContext identifying the stream source (address), it's destination (slot and target framefilter), etc.
 
FrameFiltertimestampfilter
 
FrameFilterinputfilter
 
FrameFilterrepeat_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.
 

Detailed Description

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)

Constructor & Destructor Documentation

◆ RTSPConnection()

RTSPConnection::RTSPConnection ( UsageEnvironment &  env,
LiveConnectionContext ctx 
)

Default constructor.

Parameters
envSee Connection::env
ctxSee Connection::ctx

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