MMSTV Class Reference
[Media playback (mmsmedia)]

Handles TV playback. More...

#include <mmstv.h>

Inheritance diagram for MMSTV:

List of all members.


Public Member Functions

 MMSTV (MMSWindow *window, const string channel="", const bool verbose=false)
 Initializes everything that is needed by MMSTV.
 ~MMSTV ()
 Destructor of MMSTV class.
void startPlaying (const string channel="")
 Starts playing.
void play ()
 Continues playing the stream.
void pause ()
 Pauses the stream.
void previous ()
 Switch to previous channel.
void next ()
 Switch to next channel.
void record ()
 Start/Stop recording.
void recordStart ()
 Start recording.
void recordStop ()
 Stop recording.
void recordPause ()
 Pause recording.
string getCurrentChannelName (void)
 Retrieve the current channel name.
void setTuningTimeout (const unsigned int timeout)
 Sets the maximum time for tuning to a channel.
const unsigned int getTuningTimeout ()
 Returns the setting for the tuning timeout.
void setRecordDir (const string dir)
 Sets the directory where tv recordings will be stored.
const string getRecordDir ()
 Retrieves the directory where tv recordings will be stored.
const string getRecordFilename ()
 Retrieves the filename of the current recording if recording is on.

Public Attributes

sigc::signal< void, const
unsigned short > 
onProgressChange
 Callback that is used to receive buffering progress changes.

Private Member Functions

void xineOpen ()
 Calls MMSAV::open() with the queue_cb callback.

Private Attributes

string channel
 currently played channel name
string captureFilename
 filename for saved stream
unsigned int timeout
 tuning timeout in seconds
bool recording
 if true recording is on

Detailed Description

Handles TV playback.

Author:
Stefan Schwarzer (stefan.schwarzer@diskohq.org)

Matthias Hardt (matthias.hardt@diskohq.org)

Jens Schneider (pupeider@gmx.de)

Guido Madaus (guido.madaus@diskohq.org)

Patrick Helterhoff (patrick.helterhoff@diskohq.org)

René Bählkow (rene.baehlkow@diskohq.org)

This class is derived from MMSAV and specialized in handling TV playback. It only works for DVB-T/C/S streams.

Definition at line 53 of file mmstv.h.


Constructor & Destructor Documentation

MMSTV::MMSTV ( MMSWindow window,
const string  _channel = "",
const bool  verbose = false 
)

Initializes everything that is needed by MMSTV.

The timeout attribute is set to 10 seconds.

Parameters:
window [in] main window for dvd playing
_channel [in] channel to open
verbose [in] if true the xine engine writes debug messages to stdout
See also:
MMSAV::MMSAV()

MMSAV::initialize()

Definition at line 90 of file mmstv.cpp.

MMSTV::~MMSTV (  ) 

Destructor of MMSTV class.

Definition at line 106 of file mmstv.cpp.


Member Function Documentation

void MMSTV::xineOpen (  )  [private]

Calls MMSAV::open() with the queue_cb callback.

Definition at line 113 of file mmstv.cpp.

void MMSTV::startPlaying ( const string  channel = ""  ) 

Starts playing.

If usingInputDVBMorphine is set, it tries to use our own input plugin for playback.

Parameters:
channel [in] channel name to be played

Definition at line 126 of file mmstv.cpp.

void MMSTV::play (  ) 

Continues playing the stream.

If recording is on, it will be continued, too.

Reimplemented from MMSAV.

Definition at line 161 of file mmstv.cpp.

void MMSTV::pause (  ) 

Pauses the stream.

If recording is on, it will be paused, too.

Reimplemented from MMSAV.

Definition at line 186 of file mmstv.cpp.

void MMSTV::previous (  ) 

Switch to previous channel.

See also:
MMSTV::next()

Definition at line 196 of file mmstv.cpp.

void MMSTV::next (  ) 

Switch to next channel.

See also:
MMSTV::previous()

Definition at line 216 of file mmstv.cpp.

void MMSTV::record (  ) 

Start/Stop recording.

Definition at line 234 of file mmstv.cpp.

void MMSTV::recordStart (  ) 

Start recording.

Definition at line 256 of file mmstv.cpp.

void MMSTV::recordStop (  ) 

Stop recording.

Definition at line 277 of file mmstv.cpp.

void MMSTV::recordPause (  ) 

Pause recording.

Definition at line 298 of file mmstv.cpp.

string MMSTV::getCurrentChannelName ( void   ) 

Retrieve the current channel name.

Returns:
current channel name

Definition at line 319 of file mmstv.cpp.

void MMSTV::setTuningTimeout ( const unsigned int  timeout  ) 

Sets the maximum time for tuning to a channel.

Parameters:
timeout [in] timeout in seconds
Note:
A value of 0 means infinite. Otherwise a minimum of 5 seconds is required.
See also:
MMSTV::getTuningTimeout()

Definition at line 333 of file mmstv.cpp.

const unsigned int MMSTV::getTuningTimeout (  ) 

Returns the setting for the tuning timeout.

Returns:
timeout in seconds
See also:
MMSTV::setTuningTimeout()

Definition at line 366 of file mmstv.cpp.

void MMSTV::setRecordDir ( const string  dir  ) 

Sets the directory where tv recordings will be stored.

It actually changes the value of the xine config option "media.capture.save_dir".

Parameters:
dir [in] directory to save recordings into

Definition at line 378 of file mmstv.cpp.

const string MMSTV::getRecordDir (  ) 

Retrieves the directory where tv recordings will be stored.

Returns:
current recordings dir

Definition at line 418 of file mmstv.cpp.

const string MMSTV::getRecordFilename (  ) 

Retrieves the filename of the current recording if recording is on.

Returns:
current recording filename or "" if nothing is recorded

Definition at line 443 of file mmstv.cpp.


Member Data Documentation

string MMSTV::channel [private]

currently played channel name

Definition at line 55 of file mmstv.h.

string MMSTV::captureFilename [private]

filename for saved stream

Definition at line 56 of file mmstv.h.

unsigned int MMSTV::timeout [private]

tuning timeout in seconds

Definition at line 57 of file mmstv.h.

bool MMSTV::recording [private]

if true recording is on

Definition at line 58 of file mmstv.h.

sigc::signal<void, const unsigned short> MMSTV::onProgressChange

Callback that is used to receive buffering progress changes.

Definition at line 100 of file mmstv.h.


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