> Yep. Me, for example! A big thumbs up to you, sternenjaeger!
Thank you! Getting feedback from two of the senior developers in the
squeezebox environment is something i hadn't expected.
> One thing I wonder about.... Did you register CLI commands for the
> plugin? Would there be a way to determine whether there's a bookmark for
> a certain album? I think I might like to try to play from a bookmark
> instead of from the first track whenever you play a whole album in iPeng
> and a bookmark is present.
No, this plugin is just a basic utility: It stores the bookmark
information (tracknumber and position in track) in a hash array in it's
preferences file.
The way it works is quite simpel:
- The plugin menu lists the stored bookmarks. If the user clicks on a
bookmark it issues a "playlistcontrol cmd:load" command, which starts
the album at the tracknumber stored in the bookmark
- It subscribes to the "newsong" event that checks the album and
tracknumber of the new song and - if there is a bookmark - it issues
the "time" command to jump to the correct position (also stored in the
bookmark hash entry).
- The "newsong" event also independently sets up a timer for a routine
which queries the "songinfo" for all active players and creates or
updates the bookmarks. This routine repeats the timer until no player
is in status "playing" anymore
I'll try to continue working on it. But this is actually just my second
plugin (and the first was an even far more simpel thing), so i don't
think i am the right man for the job. But we'll see...
> Also, it could be useful to register an entry for an album context menu
> which does exactly that.
Good idea, i give it a shot. Although: I find that getting into writing
code for the squeezeserver environment is not easy, even if you're used
to write code. I had trouble to find documentation and, coming more from
the Python/Java side, writing code in Perl for me feels like having to
wrestle with an alien beast.
Once again: Thanks to you and mherger for this friendly feedback. I am
using the squeezebox server for a couple of years now but just recently
got the idea to write code for it. Perhaps i should have started much
earlier - the open architecture of this server is like an invitation to
play around with it. But then: I already have more than enough
unfinished code in my day job ;)
------------------------------------------------------------------------
sternenjaeger's Profile: http://forums.slimdevices.com/member.php?userid=57562
View this thread: http://forums.slimdevices.com/showthread.php?t=102859
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins