Accessing the Media Library and Creating Playlists

Hi,

I've been looking through the SDK to find if it is possible to get access to the media library and if it is possible to create playlists. I have also looked at existing plugins to see if this has been done before and I haven't found that either. Is it possible to create playlists or change what is playing in the media player? I have found the functionality to control the next and previous tracks, but I need to be able to give it a specific file or playlist to play.