![]() |
Media Controller
A GStreamer implementation using the VideoXpert SDK
|
Represents an MJPEG pull stream. More...
#include <MjpegPullStream.h>
Public Member Functions | |
Stream (MediaRequest &request) | |
Constructor. More... | |
virtual | ~Stream () |
Virtual destructor. More... | |
bool | Play (float speed, unsigned int unixTime) 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 | Resume (float speed, unsigned int unixTime) override |
Send PLAY on an existing 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... | |
![]() | |
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 | |
VxSdk::IVxDataSession * | _dataSession |
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 MJPEG pull stream.
Definition at line 16 of file MjpegPullStream.h.
Inherits MediaController::StreamBase.
MjpegPull::Stream::Stream | ( | MediaRequest & | request | ) |
Constructor.
request | The requested media. |
controller | A media controller object. |
Definition at line 12 of file MjpegPullStream.cpp.
|
virtual |
|
overridevirtual |
Set the stream to Live and call Play.
Implements MediaController::IStream.
Definition at line 82 of file MjpegPullStream.cpp.
|
overridevirtual |
Set the stream to a new source.
request | The new MediaRequest to reset the stream to. |
Implements MediaController::IStream.
Definition at line 115 of file MjpegPullStream.cpp.
|
overridevirtual |
Call Pause on the stream.
Implements MediaController::IStream.
Definition at line 58 of file MjpegPullStream.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 18 of file MjpegPullStream.cpp.
|
overridevirtual |
|
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 84 of file MjpegPullStream.cpp.
|
overridevirtual |
Call TearDown on the stream.
Implements MediaController::IStream.
Definition at line 71 of file MjpegPullStream.cpp.
|
private |
Definition at line 39 of file MjpegPullStream.h.