2011-05-13, 10:07
Hi. Just as an exercise in learning C++ I'm putting some basic Spotify support into XBMC as a virtual filesystem (I like ambitious "Hello, world" projects). I've been successful so far in terms of playlist navigation although I've not started work on passing the audio stream to xbmc yet.
The only problem I've had so far that's beaten me is supplying a thumbnail image. I can see other CFileItem objects using item->SetThumbnailImage(url), like filesystem/MythDirectory line 145, but when I try to use it I get:
What have I missed? I can't see how I'm doing anything differently to Myth
Also, to save reading 37 pages of mostly irrelevant stuff, can someone give me a quick one-liner as to how I grab the AudioEngine branch from git (something I've not used before)? I can't see anything obvious about it and want to make sure this code I'm writing isn't rendered useless in a few weeks or whenever the next release is, like other developers have suffered
The only problem I've had so far that's beaten me is supplying a thumbnail image. I can see other CFileItem objects using item->SetThumbnailImage(url), like filesystem/MythDirectory line 145, but when I try to use it I get:
Code:
Spotify.cpp: In member function 'virtual bool XFILE::CDirectorySpotify::GetDirectory(const CStdString&, CFileItemList&)':
Spotify.cpp:87: error: 'class CFileItemPtr' has no member named 'SetThumbnailImage'
What have I missed? I can't see how I'm doing anything differently to Myth
Also, to save reading 37 pages of mostly irrelevant stuff, can someone give me a quick one-liner as to how I grab the AudioEngine branch from git (something I've not used before)? I can't see anything obvious about it and want to make sure this code I'm writing isn't rendered useless in a few weeks or whenever the next release is, like other developers have suffered