Hi,
I want to implement a record player for my UPnP plugin and was wondering how the record files are played by the VDR. I found out that cFileName und cUnbufferedFile may be my friends, but I don't know how to seek a given file offset, if the recording is regarded as a single file.
Here an example: I want to seek offset 20. But the first file has its end offset at 15, so the file offset is at position 5 in the second file. Is it possible to do that with the existing functions of VDR?
Thanks!
Denis ______________________________________________________________________ Haiti-Nothilfe! Helfen Sie per SMS: Sende UIHAITI an die Nummer 81190. Von 5 Euro je SMS (zzgl. SMS-Gebühr) gehen 4,83 Euro an UNICEF.
Am 22.01.2010 19:01, schrieb Denis Loh:
I want to implement a record player for my UPnP plugin and was wondering how the record files are played by the VDR. I found out that cFileName und cUnbufferedFile may be my friends, but I don't know how to seek a given file offset, if the recording is regarded as a single file.
You need the cIndexFile object too. The file represents the index.vdr (or now just index) files contents, and has a translation function Get() that translates an ongoing frame number into a file number and a byte offset. Optionally, it tells you the frame type and length (if known).
Hint: The main playback loop of VDR is in cDvbPlayer::Action.
Cheers,
Udo