Support and General Use > Audio Playback, Database and Playlists

Updating the bookmark file via PC

(1/1)

quindel:
I'd like to write a Java jar that updates the bookmark for an mp3 file. Updating the time is not a problem, but how do I get the bookmark in bytes correct? Is there a good java way for this?

I listen to the mp3 via the PC a lot, but before I swap to the car, I want to update the bookmark where I left off. I got the time figured out, but the bookmark by bytes is sometimes wrong.

If not, Can we have a function setup in rockbox, that I can click on a mp3 file, and create a bookmark at a certain time, and either keep it in the bookmark file or recent bookmark file?

Any tips would be great. Thanks.

I use IRiver IHP-140.
Thank you
Peter

bluebrother:

--- Quote from: quindel on January 14, 2013, 02:38:29 PM ---I'd like to write a Java jar that updates the bookmark for an mp3 file. Updating the time is not a problem, but how do I get the bookmark in bytes correct? Is there a good java way for this?
--- End quote ---

The bookmark files are simple text files. If Java can handle text files there shouldn't be a problem with this ...

See apps/bookmark.c. You're likely looking after parse_bookmark()


--- Quote ---If not, Can we have a function setup in rockbox, that I can click on a mp3 file, and create a bookmark at a certain time, and either keep it in the bookmark file or recent bookmark file?

--- End quote ---

No. Long answer: something like that would be only useful for a rather limited number of users, while adding complexity (and code size) to Rockbox. Such things are usually not wanted. What would be acceptable is a viewer plugin that converts a file to the bookmark format. Though I don't see much point in that, the bookmark format isn't  too complicated (no, I'm not familiar with it).

quindel:
Thanks for the response.

I dont have access to apps/bookmark.c..

Thanks.
Peter

saratoga:

--- Quote from: quindel on January 14, 2013, 04:20:37 PM ---Thanks for the response.

I dont have access to apps/bookmark.c..

Thanks.
Peter

--- End quote ---

This is an open source project.  Everyone has access to th3 entire source code via this website.

bluebrother:

--- Quote from: quindel on January 14, 2013, 04:20:37 PM ---I dont have access to apps/bookmark.c..

--- End quote ---

Is finding the source repository for Rockbox really that complicated?
http://git.rockbox.org/?p=rockbox.git;a=blob;f=apps/bookmark.c;hb=HEAD#l1013

Navigation

[0] Message Index

Go to full version