RFRadioView.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //
  2. // RFRadioView.h
  3. // RadioFree
  4. //
  5. //
  6. #import <UIKit/UIKit.h>
  7. @class FSPlaylistItem;
  8. @class RFRadioView;
  9. @class FMLrcView;
  10. @class FMSongListModel,FMSongModel;
  11. @class FMPAImageView;
  12. #import "AudioPlayer.h"
  13. @protocol RFRadioViewDelegate <NSObject>
  14. -(void)radioView:(RFRadioView *)view musicStop:(NSInteger)playModel;
  15. -(void)radioView:(RFRadioView *)view preSwitchMusic:(UIButton *)pre;
  16. -(void)radioView:(RFRadioView *)view nextSwitchMusic:(UIButton *)next;
  17. -(void)radioView:(RFRadioView *)view playListButton:(UIButton *)btn;
  18. -(void)radioView:(RFRadioView *)view downLoadButton:(UIButton *)btn;
  19. -(void)radioView:(RFRadioView *)view collectButton:(UIButton *)btn;
  20. @end
  21. @interface RFRadioView : UIView<AudioPlayerDelegate>
  22. {
  23. UISlider *progress;
  24. NSTimer *_progressUpdateTimer;
  25. NSTimer *_playbackSeekTimer;
  26. double _seekToPoint;
  27. BOOL _paused;
  28. UILabel *_currentPlaybackTime;
  29. UILabel * _totalPlaybackTime;
  30. UIButton * _playButton;
  31. UIButton * _preButton;
  32. UIButton * _nextButton;
  33. UIButton * _playbackButton;
  34. UIButton * _playListButton;
  35. UIButton * _collectButton;
  36. UIButton * downLoadButton;
  37. UILabel * noLrcLabel;
  38. BOOL isPlaying;
  39. BOOL isPasue;
  40. BOOL isLrc;
  41. NSInteger isPlayBack;
  42. id <RFRadioViewDelegate>delegate;
  43. FMLrcView * lrcView;
  44. FMPAImageView * backImageView;
  45. AudioPlayer* audioPlayer;
  46. }
  47. @property (nonatomic,strong) FMSongListModel * songlistModel;
  48. @property (nonatomic,strong) FMSongModel * songModel;
  49. @property (nonatomic,strong) FSPlaylistItem *selectedPlaylistItem;
  50. @property (nonatomic,assign) id <RFRadioViewDelegate>delegate;
  51. @property (nonatomic,strong) UIButton * downLoadButton;
  52. @property (nonatomic,assign) BOOL only;
  53. -(void)playButtonEvent;
  54. -(void)setRadioViewLrc;
  55. @end