本地音乐播放、在线音乐播放与视频播放
1.本地音乐播放 1.导入库:AVFoundation.framework 2.添加头文件:#import <AVFoundation/AVFoundation.h> 代码如下: #import "ConfigViewController.h" #import "UIView+DLQuickView.h" #import <AVFoundation/AVFoundation.h> @interface ConfigViewController () { // UIProgressView *_playerProgress; UISlider *_volumeSliser; } @property (strong, nonatomic) UIProgressView *playerProgress; @property (strong, nonatomic) AVAudioPlayer *player; @end @implementation ConfigViewController - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];