#include <recplayer.h>
Public Member Functions | |
virtual void | open (UpnpOpenFileMode mode) |
virtual int | read (char *buf, size_t buflen) |
virtual int | write (char *buf, size_t buflen) |
virtual int | seek (off_t offset, int origin) |
virtual void | close () |
Static Public Member Functions | |
static cRecordingPlayer * | newInstance (cRecording *Recording) |
This class provides the ability to play VDR records. The difference between usual files and VDR recording files is, that recordings are possibly splitted into multiple files. The class will scan those files and tries to dynamically navigate in them like it would do, if it is a single file.
void cRecordingPlayer::close | ( | ) | [virtual] |
Closes the open file
This will close open file handles and frees the memory obtained by it.
Implements cFileHandle.
cRecordingPlayer * cRecordingPlayer::newInstance | ( | cRecording * | Recording | ) | [static] |
Get a new instance of a recording player
This returns a new instance of a recording player which plays the specified VDR recording.
Recording | the recording to play |
void cRecordingPlayer::open | ( | UpnpOpenFileMode | mode | ) | [virtual] |
Opens the file
Opens the file at the given mode. These can be:
mode | The file mode, i.e. one of the following
|
Implements cFileHandle.
int cRecordingPlayer::read | ( | char * | buf, | |
size_t | buflen | |||
) | [virtual] |
Reads from the file
Reads from the file a certain amount of bytes and stores them in a buffer
buf | The char buffer | |
buflen | The size of the buffer |
Implements cFileHandle.
int cRecordingPlayer::seek | ( | off_t | offset, | |
int | whence | |||
) | [virtual] |
Seeks in the file
Seeks in the file where the offset is the relativ position depending on the second parameter. This means, in case of
offset | The byte offset in the file | |
whence | one of the following
|
Implements cFileHandle.
int cRecordingPlayer::write | ( | char * | buf, | |
size_t | buflen | |||
) | [virtual] |
Writes to the file
Writes to the file a certain amount of bytes which are stored in a buffer
buf | The char buffer | |
buflen | The size of the buffer |
Implements cFileHandle.