Created
January 21, 2013 21:56
-
-
Save jnjosh/4589854 to your computer and use it in GitHub Desktop.
MPMediaItem issue...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MPMediaItem *item = ...; // From the Media Query | |
NSURL *url = [item valueForProperty:MPMediaItemPropertyAssetURL]; | |
AVAsset *asset = [AVURLAsset URLAssetWithURL:url options:nil]; | |
NSError *readerError = nil; | |
AVAssetReader *assetReader = [AVAssetReader assetReaderWithAsset:asset error:&readerError]; | |
if (! assetReader) { | |
NSLog(@"reader error for URL: %@ \r\n error:%@", url, [readerError localizedDescription]); | |
} | |
NSLog(@"tracks: %@", asset.tracks); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This always fails with:
reader error for URL: ipod-library://item/item.m4a?id=
error:The requested URL was not found on this server.