DFPlayerModel.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // DFPlayerModel.h
  3. // DFPlayer
  4. //
  5. // Created by ihoudf on 2017/7/18.
  6. // Copyright © 2017年 ihoudf. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. /**
  12. 音频数据model类(必传)
  13. */
  14. @interface DFPlayerModel : NSObject
  15. @property (nonatomic, assign) NSUInteger audioId; // 音频Id(必须从0开始,仅标识当前音频在数组中的位置)
  16. @property (nonatomic, strong) NSURL *audioUrl; // 音频地址
  17. //hxd add 20240726
  18. //@property (nonatomic, assign) BOOL didCacheWorkType;//是否做了缓存
  19. @end
  20. /**
  21. 音频信息model类(非必传)
  22. */
  23. @interface DFPlayerInfoModel : NSObject
  24. @property (nonatomic, nullable, copy) NSString *audioLyrics; // 歌词
  25. /* 正确传入以下属性时,DFPlayer将自动设置锁屏模式和控制中心的播放信息展示 */
  26. @property (nonatomic, nullable, copy) NSString *audioName; // 音频名
  27. @property (nonatomic, nullable, copy) NSString *audioAlbum; // 专辑名
  28. @property (nonatomic, nullable, copy) NSString *audioSinger; // 歌手名
  29. @property (nonatomic, nullable, copy) UIImage *audioImage; // 音频配图
  30. @end
  31. NS_ASSUME_NONNULL_END