willing to help: NJB mediadevice
Andrew Barr
andrew.james.barr at gmail.com
Tue Jun 6 16:47:23 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alright, I've been wrapping my head around the code in src/mediadevice/njb,
specifically njbmediadevice.cpp, specifically NjbMediaDevice::newPlaylist().
If I'm not mistaken, this is where the action is with respect to what needs
done Re: playlist support. Here's how I read the function:
- - we are passed a set of pointers to MediaItems.
- - An NjbPlaylist object is constructed
- - The name of the playlist is set on the jukebox.
- - We loop through the pointer list, adding each track (represented by a
pointer to a MediaItem) one by one.
- - Assuming success so far, the playlist is updated on the device (I guess this
means actually committed to the disk, kZenExplorer works similarly--you
create a playlist and then you must commit it)
What remains is creating an amaroK playlist (MediaItem?) and returning it,
according to the amaroK wiki. There is a comment (in Spanish), which says (I
think) "TODO: create a converter for playlists to amaroK playlists." I assume
this means taking our NjbPlaylist object that we created earlier and
populated and converting it into a MediaItem, and returning that object.
That's what I've concluded from looking at the existing code. If I am totally
off base here, I apologize. I didn't get a wink of sleep last night and I'm
running on fumes today, so I think I'll go take a nap and give my brain a
rest. :) I promise I'll be more sentient tomorrow. ;)
On Tuesday 06 June 2006 12:16, T.R.Shashwath wrote:
> I know of MTP and libmtp, but since my player doesn't have anything to do
> with that, it never really interested me... :-)
Well, there's an upgrade for my device, and there are reports that MTP is
faster than the old PDE protocol, but beyond that I see little advantage in
upgrading. PDE is pretty fast as it is, especially on USB 2.0 devices.
- --
Andrew Barr | andrew.james.barr at gmail.com
http://www.oakcourt.dyndns.org/~andrew/
"And now for something completely different."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFEhbGohuM+Z62a52oRAiaWAJ9ALZhOROaxNOZlDWTBQeGabBhtVwCbBlLS
QPjfXzgHF/kj3RmMaskvLkM=
=FcsY
-----END PGP SIGNATURE-----
More information about the Amarok
mailing list