#include <mmsvideo.h>
Public Member Functions | |
MMSVideo (MMSWindow *window, const bool verbose=false) | |
Initializes everything that is needed by MMSVideo. | |
~MMSVideo () | |
Destructor of MMSVideo class. | |
void | startPlaying (const string file, const bool cont=true) |
Starts playing. | |
void | add2Playlist (const string file) |
Adds a file to the internal playlist. | |
void | playNext () |
Starts playing the next file from the playlist. | |
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 | |
std::queue< string > | playlist |
internal playlist |
This class is derived from MMSAV and specialized in handling the playback of video files.
Definition at line 54 of file mmsvideo.h.
Initializes everything that is needed by MMSVideo.
window | [in] main window for video playback | |
verbose | [in] if true the xine engine writes debug messages to stdout |
Definition at line 92 of file mmsvideo.cpp.
MMSVideo::~MMSVideo | ( | ) |
void MMSVideo::xineOpen | ( | ) | [private] |
void MMSVideo::startPlaying | ( | const string | file, | |
const bool | cont = true | |||
) |
Starts playing.
If the continue flag is set it tries to continue at the position where it was stopped before.
file | file to play | |
cont | if true it tries to continue at a position stopped before |
MMSAVError | stream could not be opened |
Reimplemented from MMSAV.
Definition at line 124 of file mmsvideo.cpp.
void MMSVideo::add2Playlist | ( | const string | file | ) |
Adds a file to the internal playlist.
file | file to add |
Definition at line 147 of file mmsvideo.cpp.
void MMSVideo::playNext | ( | ) |
Starts playing the next file from the playlist.
MMSAVError | stream could not be opened |
Definition at line 156 of file mmsvideo.cpp.
std::queue<string> MMSVideo::playlist [private] |
sigc::signal<void, const unsigned short> MMSVideo::onProgressChange |
Callback that is used to receive buffering progress changes.
Definition at line 75 of file mmsvideo.h.