![]() |
Media Controller
A GStreamer implementation using the VideoXpert SDK
|
Represents an RTSP stream. More...
#include <RtspStream.h>
Public Member Functions | |
Stream (MediaRequest &request, bool isVideo) | |
Constructor. More... | |
virtual | ~Stream () |
Virtual destructor. More... | |
bool | Play (float speed=0, unsigned int unixTime=0) override |
Call Play on the stream. More... | |
void | PlayStream (float speed, unsigned int unixTime) override |
void | Pause () override |
Call Pause on the stream. More... | |
void | Stop () override |
Call TearDown on the stream. More... | |
bool | GoToLive () override |
Set the stream to Live and call Play. More... | |
void | NewRequest (MediaRequest &request) override |
Set the stream to a new source. More... | |
bool | Resume (float speed=0, unsigned int unixTime=0) override |
Send PLAY on an existing stream. More... | |
![]() | |
virtual | ~StreamBase () |
Virtual destructor. More... | |
bool | Play (float speed=0, unsigned int unixTime=0) override |
Call Play on the stream. More... | |
void | Pause () override |
Call Pause on the stream. More... | |
void | Stop () override |
Call TearDown on the stream. More... | |
void | NewRequest (MediaRequest &request) override |
Set the stream to a new source. More... | |
GstWrapper * | GetGstreamer () const |
Get the current GStreamer wrapper instance. More... | |
unsigned int | GetLastTimestamp () const |
Gets the current time of the stream. More... | |
Mode | GetMode () override |
Get the current playback mode. More... | |
![]() | |
virtual | ~IStream () |
Virtual destructor. More... | |
Private Attributes | |
Commands * | _rtspCommands |
std::unique_ptr< KeepAlive > | _rtspKeepAlive |
Additional Inherited Members | |
![]() | |
enum | Mode { kStopped, kLive, kPlayback } |
Values that represent the different playback modes. More... | |
![]() | |
StreamState * | state |
The current state of the stream. More... | |
VxSdk::VxStreamProtocol::Value | protocol |
The protocol of the stream. More... | |
![]() | |
StreamBase (MediaRequest &request) | |
Constructor. More... | |
![]() | |
MediaRequest | _mediaRequest |
GstWrapper * | _gst |
Represents an RTSP stream.
Definition at line 18 of file RtspStream.h.
Inherits MediaController::StreamBase.
Rtsp::Stream::Stream | ( | MediaRequest & | request, |
bool | isVideo | ||
) |
Constructor.
request | The requested media. |
isVideo | Specifies wheather this Stream handles audio or video. |
Definition at line 14 of file RtspStream.cpp.
|
virtual |
Virtual destructor.
Definition at line 20 of file RtspStream.cpp.
|
overridevirtual |
Set the stream to Live and call Play.
Implements MediaController::IStream.
Definition at line 78 of file RtspStream.cpp.
|
overridevirtual |
Set the stream to a new source.
request | The new MediaRequest to reset the stream to. |
Implements MediaController::IStream.
Definition at line 90 of file RtspStream.cpp.
|
overridevirtual |
Call Pause on the stream.
Implements MediaController::IStream.
Definition at line 62 of file RtspStream.cpp.
|
overridevirtual |
Call Play on the stream.
speed | The playback speed. Negative values can be used for reverse playback. A value of 0 will resume a paused stream. |
unixTime | The start time for playback. A value of 0 will start a live stream. |
Implements MediaController::IStream.
Definition at line 26 of file RtspStream.cpp.
|
overridevirtual |
Implements MediaController::IStream.
Definition at line 51 of file RtspStream.cpp.
|
overridevirtual |
Send PLAY on an existing stream.
speed | The playback speed. Negative values can be used for reverse playback. A value of 0 will resume a paused stream. |
unixTime | The start time for playback. A value of 0 will start a live stream. |
Reimplemented from MediaController::StreamBase.
Definition at line 80 of file RtspStream.cpp.
|
overridevirtual |
Call TearDown on the stream.
Implements MediaController::IStream.
Definition at line 69 of file RtspStream.cpp.
|
private |
Definition at line 41 of file RtspStream.h.
|
private |
Definition at line 42 of file RtspStream.h.