Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Updating the bookmark file via PC
« previous next »
  • Print
Pages: [1]

Author Topic: Updating the bookmark file via PC  (Read 994 times)

Offline quindel

  • Member
  • *
  • Posts: 14
Updating the bookmark file via PC
« 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?

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

Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Updating the bookmark file via PC
« Reply #1 on: January 14, 2013, 03:17:43 PM »
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?

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?

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).
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline quindel

  • Member
  • *
  • Posts: 14
Re: Updating the bookmark file via PC
« Reply #2 on: January 14, 2013, 04:20:37 PM »
Thanks for the response.

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

Thanks.
Peter
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Updating the bookmark file via PC
« Reply #3 on: January 14, 2013, 04:34:59 PM »
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

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

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Updating the bookmark file via PC
« Reply #4 on: January 15, 2013, 03:53:01 PM »
Quote from: quindel on January 14, 2013, 04:20:37 PM
I dont have access to apps/bookmark.c..

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
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Updating the bookmark file via PC
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.073 seconds with 15 queries.