libmms: patch to enable seeking support on mms protocol
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libmms (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Originally reported using reportbug. Filing by proxy.
Original report follows:
From: Anon Sricharoenchai <email address hidden>
To: Debian Bug Tracking System <email address hidden>, Ubuntu Bug Tracking System <email address hidden>
Cc: Anon Sricharoenchai <email address hidden>, <email address hidden>, <email address hidden>, <email address hidden>, "Soren Hansen \(shawarma\)" <email address hidden>
Subject: libmms: patch to enable seeking support on mms protocol
Date: Wed, 13 Sep 2006 02:53:48 -0700 (PDT)
Package: libmms
Version: 0.2-7
Severity: wishlist
Tags: patch
The patch will add support for byte offset seeking and time offset
seeking, and some other APIs as follows,
(Note: This patch is licensed under LGPL)
int mms_request_
int mms_time_seek (mms_io_t *io, mms_t *instance, double time_sec);
int mms_request_
/*
* mms_seek() will try to seek using mms_request_
* ignore the packet seek command, it will return unchanged current_pos, rather
* than trying to mms_read() until the destination pos is reached. This is to
* let the caller, by itself, to decide to choose the alternate method, such
* as, mms_time_seek() and/or mms_read() until the destination pos is reached.
* One can do binary search using time offset (mms_time_seek()) as a search
* index, to approach the desired byte offset. It is to systematically guess
* the time offset to reach for the byte offset.
*
* Known BUG: Application must be compiled with 64-bit file offset
* (-D_FILE_
*/
off_t mms_seek (mms_io_t *io, mms_t *instance, off_t offset, int origin);
/* return total playback time in seconds */
double mms_get_time_length (mms_t *instance);
/* return raw total playback time in 100 nanosecs (10^-7) */
uint64_t mms_get_
marking as wishlist