Media Controller
A GStreamer implementation using the VideoXpert SDK
MediaController::StreamState Class Reference

Provides an interface for managing calls to the stream based on its current state. More...

#include <StreamState.h>

Public Member Functions

virtual ~StreamState ()
 Virtual destructor. More...
 
virtual bool Play (StreamBase &stream, float speed, unsigned int unixTime)
 Perform the Play action based on the stream state. More...
 
virtual void Pause (StreamBase &stream)
 Perform the Pause action based on the stream state. More...
 
virtual void Stop (StreamBase &stream)
 Perform the Stop action based on the stream state. More...
 
virtual bool GoToLive (StreamBase &stream)
 Perform the GoToLive action based on the stream state. More...
 

Protected Member Functions

 StreamState ()
 Constructor. More...
 

Detailed Description

Provides an interface for managing calls to the stream based on its current state.

Definition at line 11 of file StreamState.h.

Inherited by MediaController::PausedState, MediaController::PlayingState, and MediaController::StoppedState.

Constructor & Destructor Documentation

virtual MediaController::StreamState::~StreamState ( )
inlinevirtual

Virtual destructor.

Definition at line 17 of file StreamState.h.

17 {}
MediaController::StreamState::StreamState ( )
inlineprotected

Constructor.

Definition at line 49 of file StreamState.h.

49 {}

Member Function Documentation

virtual bool MediaController::StreamState::GoToLive ( StreamBase stream)
inlinevirtual

Perform the GoToLive action based on the stream state.

Parameters
streamThe stream instance.

Reimplemented in MediaController::StoppedState, MediaController::PausedState, and MediaController::PlayingState.

Definition at line 43 of file StreamState.h.

43 { return false; }
virtual void MediaController::StreamState::Pause ( StreamBase stream)
inlinevirtual

Perform the Pause action based on the stream state.

Parameters
streamThe stream instance.

Reimplemented in MediaController::PlayingState.

Definition at line 31 of file StreamState.h.

31 {}
virtual bool MediaController::StreamState::Play ( StreamBase stream,
float  speed,
unsigned int  unixTime 
)
inlinevirtual

Perform the Play action based on the stream state.

Parameters
streamThe stream instance.
speedThe playback speed.
unixTimeThe start time for playback.

Reimplemented in MediaController::StoppedState, MediaController::PausedState, and MediaController::PlayingState.

Definition at line 25 of file StreamState.h.

25 { return false; }
virtual void MediaController::StreamState::Stop ( StreamBase stream)
inlinevirtual

Perform the Stop action based on the stream state.

Parameters
streamThe stream instance.

Reimplemented in MediaController::PausedState, and MediaController::PlayingState.

Definition at line 37 of file StreamState.h.

37 {}

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