12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- //
- // DFPlayerModel.h
- // DFPlayer
- //
- // Created by ihoudf on 2017/7/18.
- // Copyright © 2017年 ihoudf. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- /**
- 音频数据model类(必传)
- */
- @interface DFPlayerModel : NSObject
- @property (nonatomic, assign) NSUInteger audioId; // 音频Id(必须从0开始,仅标识当前音频在数组中的位置)
- @property (nonatomic, strong) NSURL *audioUrl; // 音频地址
- @property (nonatomic, copy) NSString *filePath; // 音频云端路径
- //hxd add 20240726
- //@property (nonatomic, assign) BOOL didCacheWorkType;//是否做了缓存
- @end
- /**
- 音频信息model类(非必传)
- */
- @interface DFPlayerInfoModel : NSObject
- @property (nonatomic, nullable, copy) NSString *audioLyrics; // 歌词
- /* 正确传入以下属性时,DFPlayer将自动设置锁屏模式和控制中心的播放信息展示 */
- @property (nonatomic, nullable, copy) NSString *audioName; // 音频名
- @property (nonatomic, nullable, copy) NSString *audioAlbum; // 专辑名
- @property (nonatomic, nullable, copy) NSString *audioSinger; // 歌手名
- @property (nonatomic, nullable, copy) UIImage *audioImage; // 音频配图
- @end
- NS_ASSUME_NONNULL_END
|