Background music callbacks.
More...
#include "AlivcLivePusher.h"
|
(void) | - onAudioEffectFinished: |
| Local audio effect playback end callback.
|
|
(void) | - onCompleted: |
| The callback for complete playback of background music.
|
|
(void) | - onDownloadTimeout: |
| The callback indicating that the download of background music times out.
|
|
(void) | - onOpenFailed: |
| The callback indicating that background music fails to play.
|
|
(void) | - onPaused: |
| The callback indicating that playback of background music is paused.
|
|
(void) | - onProgress:progress:duration: |
| The callback for playback progress.
|
|
(void) | - onResumed: |
| The callback indicating that playback of background music is resumed.
|
|
(void) | - onStarted: |
| The callback indicating that background music starts to play.
|
|
(void) | - onStoped: |
| The callback indicating that background music stops playing.
|
|
Background music callbacks.
◆ onAudioEffectFinished:
- (void) onAudioEffectFinished: |
|
(int) |
soundId |
|
|
required |
Local audio effect playback end callback.
- Parameters
-
soundId | The unique ID assigned by the user to the audio effect file |
◆ onCompleted:
The callback for complete playback of background music.
- Parameters
-
pusher | The live pusher engine object |
◆ onDownloadTimeout:
The callback indicating that the download of background music times out.
- Parameters
-
pusher | The live pusher engine object |
◆ onOpenFailed:
The callback indicating that background music fails to play.
- Parameters
-
pusher | The live pusher engine object |
◆ onPaused:
The callback indicating that playback of background music is paused.
- Parameters
-
pusher | The live pusher engine object |
◆ onProgress:progress:duration:
- (void) onProgress: |
|
(AlivcLivePusher *) |
pusher |
progress: |
|
(long) |
progress |
duration: |
|
(long) |
duration |
|
|
| |
|
required |
The callback for playback progress.
- Parameters
-
pusher | The live pusher engine object |
progress | play progress |
duration | duration |
◆ onResumed:
The callback indicating that playback of background music is resumed.
- Parameters
-
pusher | The live pusher engine object |
◆ onStarted:
The callback indicating that background music starts to play.
- Parameters
-
pusher | The live pusher engine object |
◆ onStoped:
The callback indicating that background music stops playing.
- Parameters
-
pusher | The live pusher engine object |
The documentation for this protocol was generated from the following file: