DFPlayerModel.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. @property (nonatomic, copy) NSString *filePath; // 音频云端路径
  18. //hxd add 20240726
  19. //@property (nonatomic, assign) BOOL didCacheWorkType;//是否做了缓存
  20. @end
  21. /**
  22. 音频信息model类(非必传)
  23. */
  24. @interface DFPlayerInfoModel : NSObject
  25. @property (nonatomic, nullable, copy) NSString *audioLyrics; // 歌词
  26. /* 正确传入以下属性时,DFPlayer将自动设置锁屏模式和控制中心的播放信息展示 */
  27. @property (nonatomic, nullable, copy) NSString *audioName; // 音频名
  28. @property (nonatomic, nullable, copy) NSString *audioAlbum; // 专辑名
  29. @property (nonatomic, nullable, copy) NSString *audioSinger; // 歌手名
  30. @property (nonatomic, nullable, copy) UIImage *audioImage; // 音频配图
  31. @end
  32. NS_ASSUME_NONNULL_END