Handles TV playback.
More...
#include <mmstv.h>
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.
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.
Continues playing the stream.
If recording is on, it will be continued, too.
Reimplemented from MMSAV.
Definition at line 161 of file mmstv.cpp.
Pauses the stream.
If recording is on, it will be paused, too.
Reimplemented from MMSAV.
Definition at line 186 of file mmstv.cpp.
Start/Stop recording.
Definition at line 234 of file mmstv.cpp.
void MMSTV::recordStart |
( |
|
) |
|
void MMSTV::recordStop |
( |
|
) |
|
void MMSTV::recordPause |
( |
|
) |
|
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 |
( |
|
) |
|
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
currently played channel name
Definition at line 55 of file mmstv.h.
filename for saved stream
Definition at line 56 of file mmstv.h.
tuning timeout in seconds
Definition at line 57 of file mmstv.h.
if true recording is on
Definition at line 58 of file mmstv.h.
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: