// // AFSoundItem.h // AFSoundManager-Demo // // Created by Alvaro Franco on 20/01/15. // Copyright (c) 2015 AlvaroFranco. All rights reserved. // #import #import @interface AFSoundItem : NSObject typedef NS_ENUM(NSInteger, AFSoundItemType) { AFSoundItemTypeLocal, AFSoundItemTypeStreaming }; -(id)initWithLocalResource:(NSString *)name atPath:(NSString *)path; -(id)initWithStreamingURL:(NSURL *)URL; @property (nonatomic, readonly) NSString *title; @property (nonatomic, readonly) NSString *album; @property (nonatomic, readonly) NSString *artist; @property (nonatomic, readonly) UIImage *artwork; @property (nonatomic, readonly) NSURL *URL; @property (nonatomic, readonly) NSInteger type; @property (nonatomic) NSInteger duration; @property (nonatomic) NSInteger timePlayed; -(void)setInfoFromItem:(AVPlayerItem *)item; @end