Multimedia Transfer Protocol Cpp

Goals


Current State

You can upload and download mp3 tracks with a few methods without care about mp3 duration and id3 tag:

LIBMTPDeviceManager deviceManager = LIBMTPDeviceManager::Instance();
MTPDevice* device = deviceManager.getFirstMTPDevice();
device->uploadMp3Track(filepath);
delete device;

You can get the tracks data from the device


Depends


Code

You can get the source code from the sourceforge project page

Until the release 0.1.x, this library will be high experimental. The whole library Api would change in next releases.


Examples

I shipped four simple examples whit the source code: mtpcpp-sendmp3, mtpcpp-gettrackdata, mtpcpp-backuptracks, mtpcpp-uploadmp3dir

I think names are auto-explicative :)


Todo

- Documentation
I'm sorry, but there isn't any documentation at the moment, but I planned to create it for the next release

- Error Handling
The library only returns a boolean value in many functions, but this behaviour ought to change. C++ give us the exception concept, we must use it.

- Media handling
Only mp3 tracks are supported at the moment. We must provide other media format hangling

- Playlist handling


SourceForge.net Logo