BBASMBackgroundAudioHandleDelegate.h
1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//
// BBASMBackgroundAudioHandleDelegate.h
// BBAMNP
//
// Created by baidu on 2019/2/28.
// Copyright © 2019 Baidu. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol BBASMBackgroundAudioHandleDelegate <NSObject>
/**
* @brief 点击暂停
*/
- (void)audioPlayerDidClickPause;
/**
* @brief 点击播放
*/
- (void)audioPlayerDidClickPlay;
/**
* @brief 上一首
*/
- (void)audioPlayerDidClickLast;
/**
* @brief 下一首
*/
- (void)audioPlayerDidClickNext;
/**
* @brief 点击关闭
*/
- (void)audioPlayerDidClickClose;
/**
* @brief 缓冲进度
*
* @param progress [0,1]
*/
- (void)audioUpdateCacheProgress:(float)progress;
/**
* @brief 播放进度
*
* @param progress 播放器进度
* @param duration 音乐时长
* @param current 当前播放时间
*/
- (void)audioUpdateProgress:(float)progress duration:(NSTimeInterval)duration current:(NSTimeInterval)current;
/**
* @brief 播放结束
*/
- (void)audioDidEnd;
/**
* @brief 播放出错
*/
- (void)audioDidPlayFail;
/**
@ brief 被打断
*/
- (void)audioDidInterrupt;
@end