Objective-C framework to support the XSPF playlist format.
Objective-C C
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Info.plist
Makefile
NSMutableString+XSPFKit.h
NSMutableString+XSPFKit.m
README.md
XSPFKit.h
XSPFManager.h
XSPFManager.m
XSPFPlaylist.h
XSPFPlaylist.m
XSPFTrack.h
XSPFTrack.m
control

README.md

XSPFKit


XSPFKit is a simple Objective-C framework to add support for XSPF playlist files.


How to use the framework

  1. #import <XSPFKit/XSPFKit.h>
  2. Use the shared XSPFManager instance along with a file, URL, an XML string or XML data containing an XSPF playlist document to generate an XSPFPlaylist object.
  3. For example:
    XSPFPlaylist *playlist = [[XSPFManager sharedInstance] playlistFromFile:@"/User/foo.xspf"];
  4. Or vice versa:
    NSString *xml = [[XSPFManager sharedInstance] stringFromPlaylist:playlist];
  5. The names of the XSPFPlaylist class are self-explanatory; the links property is an NSArray of NSURLs, containing the <link> tags of the playlist. The meta property is an NSArray of NSStrings, each containing one of the playlist's <meta> elements.
  6. XSPFPlaylist.trackList is an NSArray of XSPFTrack objects (also with obviously named properties). This class' links and meta properties are identical to that of XSPFPlaylist's.