AlivcLivePusher_Interactive v6.17.0
Aliyun Live Pusher Interactive SDK API Reference Manual for iOS Platforms
Loading...
Searching...
No Matches
<AlivcLivePusherBGMDelegate> Protocol Reference

Background music callbacks. More...

#include "AlivcLivePusher.h"

Inheritance diagram for <AlivcLivePusherBGMDelegate>:

Instance Methods

(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.
 

Detailed Description

Background music callbacks.

Method Documentation

◆ onAudioEffectFinished:

- (void) onAudioEffectFinished: (int)  soundId
required

Local audio effect playback end callback.

Parameters
soundIdThe unique ID assigned by the user to the audio effect file

◆ onCompleted:

- (void) onCompleted: (AlivcLivePusher *)  pusher
required

The callback for complete playback of background music.

Parameters
pusherThe live pusher engine object

◆ onDownloadTimeout:

- (void) onDownloadTimeout: (AlivcLivePusher *)  pusher
required

The callback indicating that the download of background music times out.

Parameters
pusherThe live pusher engine object

◆ onOpenFailed:

- (void) onOpenFailed: (AlivcLivePusher *)  pusher
required

The callback indicating that background music fails to play.

Parameters
pusherThe live pusher engine object

◆ onPaused:

- (void) onPaused: (AlivcLivePusher *)  pusher
required

The callback indicating that playback of background music is paused.

Parameters
pusherThe live pusher engine object

◆ onProgress:progress:duration:

- (void) onProgress: (AlivcLivePusher *)  pusher
progress: (long)  progress
duration: (long)  duration 
required

The callback for playback progress.

Parameters
pusherThe live pusher engine object
progressplay progress
durationduration

◆ onResumed:

- (void) onResumed: (AlivcLivePusher *)  pusher
required

The callback indicating that playback of background music is resumed.

Parameters
pusherThe live pusher engine object

◆ onStarted:

- (void) onStarted: (AlivcLivePusher *)  pusher
required

The callback indicating that background music starts to play.

Parameters
pusherThe live pusher engine object

◆ onStoped:

- (void) onStoped: (AlivcLivePusher *)  pusher
required

The callback indicating that background music stops playing.

Parameters
pusherThe live pusher engine object

The documentation for this protocol was generated from the following file: