![]() |
AlivcLivePusher_Interactive v6.17.0
Aliyun Live Pusher Interactive SDK API Reference Manual for iOS Platforms
|
Callbacks related to stream pusher basic info. More...
#include "AlivcLivePusher.h"
Instance Methods | |
(void) | - onAudioPublishStateChanged:oldState:newState: |
The callback for the audio frame being sent Note: This callback is available only when livePushMode is set to AlivcLivePushInteractiveMode, that is, when Push SDK is working in interactive mode. | |
(void) | - onFirstFramePreviewed: |
The callback for first frame rendering. | |
(void) | - onFirstFramePushed: |
The callback for the first frame being sent. | |
(void) | - onJoinChannelResult:result:channel:userId: |
Join channel callback. | |
(void) | - onKickedOutByServer:reason: |
The reason for being kicked out by the server callback Note: This callback is available only when livePushMode is set to AlivcLivePushInteractiveMode, that is, when Push SDK is working in interactive mode. | |
(void) | - onLocalAudioStateChanged:state:message: |
Local audio record device status callback. | |
(void) | - onLocalDualAudioStreamPushState:state: |
The callback for the the second audio stream push state Note: This callback is available only when livePushMode is set to AlivcLivePushInteractiveMode, that is, when Push SDK is working in interactive mode. | |
(void) | - onLocalVideoStateChanged:state:message: |
Local video capture device status callback. | |
(void) | - onMediaRecordEvent:event:recoderStoragePath: |
(void) | - onMicrophoneVolumeUpdate:volume: |
Microphone volume callback Note: This callback is available only when livePushMode is set to AlivcLivePushInteractiveMode, that is, when Push SDK is working in interactive mode. | |
(void) | - onPreviewStarted: |
The callback for preview start. | |
(void) | - onPreviewStoped: |
The callback for preview stop. | |
(void) | - onPushPaused: |
The callback for pause of stream pusher from the camera. | |
(void) | - onPushRestart: |
The callback for restart of stream push. | |
(void) | - onPushResumed: |
The callback for resume of stream push from the camera. | |
(void) | - onPushStarted: |
The callback for start of stream push. | |
(void) | - onPushStatistics:statsInfo: |
The callback for statistics on stream push. | |
(void) | - onPushStoped: |
The callback for end of stream push. | |
(void) | - onRemoteUserAudioStream:userId:state: |
A user opens a audio stream callback in the room Note: This callback is available only when livePushMode is set to AlivcLivePushInteractiveMode, that is, when Push SDK is working in interactive mode. | |
(void) | - onRemoteUserEnterRoom:userId:state: |
A user room has been added to the callback Note: This callback is available only when livePushMode is set to AlivcLivePushInteractiveMode, that is, when Push SDK is working in interactive mode. | |
(void) | - onRemoteUserVideoStream:userId:type:state: |
A user opens a camera stream or share screen stream callback in the room, which can be a screen sharing stream or a unity stream Note: This callback is available only when livePushMode is set to AlivcLivePushInteractiveMode, that is, when Push SDK is working in interactive mode. | |
(void) | - onScreenSharePublishStateChanged:oldState:newState: |
The callback for the screen frame being sent Note: This callback is available only when livePushMode is set to AlivcLivePushInteractiveMode, that is, when Push SDK is working in interactive mode. | |
(void) | - onSetLiveMixTranscodingConfig:status:message: |
The callback for mixed-stream transcoding, which corresponds to the setLiveMixTranscodingConfig method Note: This callback is available only when livePushMode is set to AlivcLivePushInteractiveMode, that is, when Push SDK is working in interactive mode. | |
(void) | - onVideoPublishStateChanged:oldState:newState: |
The callback for the video frame being sent Note: This callback is available only when livePushMode is set to AlivcLivePushInteractiveMode, that is, when Push SDK is working in interactive mode. | |
Callbacks related to stream pusher basic info.
|
optional |
The callback for the audio frame being sent Note: This callback is available only when livePushMode is set to AlivcLivePushInteractiveMode, that is, when Push SDK is working in interactive mode.
pusher | The live pusher engine object |
oldState | Previous push status,See AliLivePublishState |
newState | Current push status,See AliLivePublishState |
|
optional |
The callback for first frame rendering.
pusher | The live pusher engine object |
|
optional |
The callback for the first frame being sent.
pusher | The live pusher engine object |
|
optional |
Join channel callback.
When startPushWithURL is called in interactive mode, the RTC channel will be added first. This callback indicates success/failure to join the channel and returns relevant information about channel joining
pusher | The live pusher engine object |
result | Join channel results 0:success != 0:failure |
channel | channel id |
userId | user id |
|
optional |
The reason for being kicked out by the server callback Note: This callback is available only when livePushMode is set to AlivcLivePushInteractiveMode, that is, when Push SDK is working in interactive mode.
pusher | pusher The live pusher engine object |
code | The specific reason for being kicked out |
|
optional |
Local audio record device status callback.
pusher | The live pusher engine object |
state | Device status, AliLiveLocalAudioStateType type |
|
optional |
The callback for the the second audio stream push state Note: This callback is available only when livePushMode is set to AlivcLivePushInteractiveMode, that is, when Push SDK is working in interactive mode.
pusher | The live pusher engine object |
isPushing | push state:YES start pushing,NO stop push |
|
optional |
Local video capture device status callback.
pusher | The live pusher engine object |
state | Device status, AliLiveLocalVideoStateType type |
|
optional |
|
optional |
Microphone volume callback Note: This callback is available only when livePushMode is set to AlivcLivePushInteractiveMode, that is, when Push SDK is working in interactive mode.
pusher | The live pusher engine object |
volume | volume, value [0,255] |
|
optional |
The callback for preview start.
pusher | The live pusher engine object |
|
optional |
The callback for preview stop.
pusher | The live pusher engine object |
|
optional |
The callback for pause of stream pusher from the camera.
pusher | The live pusher engine object |
|
optional |
The callback for restart of stream push.
pusher | The live pusher engine object |
|
optional |
The callback for resume of stream push from the camera.
pusher | The live pusher engine object |
|
optional |
The callback for start of stream push.
pusher | The live pusher engine object |
|
optional |
The callback for statistics on stream push.
(This callback is invoked every 2 seconds.)
pusher | The live pusher engine object |
statistics | The statistics data AlivcLivePushStatsInfo |
|
optional |
The callback for end of stream push.
pusher | The live pusher engine object |
|
optional |
A user opens a audio stream callback in the room Note: This callback is available only when livePushMode is set to AlivcLivePushInteractiveMode, that is, when Push SDK is working in interactive mode.
pusher | The live pusher engine object |
userId | User ID to join the room |
isPushing | push state:YES start pushing,NO stop push |
|
optional |
A user room has been added to the callback Note: This callback is available only when livePushMode is set to AlivcLivePushInteractiveMode, that is, when Push SDK is working in interactive mode.
pusher | The live pusher engine object |
userId | User ID to join the room |
isOnline | Joining room status: YES means joining the room, NO means leaving the room |
|
optional |
A user opens a camera stream or share screen stream callback in the room, which can be a screen sharing stream or a unity stream Note: This callback is available only when livePushMode is set to AlivcLivePushInteractiveMode, that is, when Push SDK is working in interactive mode.
pusher | The live pusher engine object |
userId | User ID to join the room |
videoStreamType | Video type, camera stream or screen sharing stream |
isPushing | push state:YES start pushing,NO stop push |
|
optional |
The callback for the screen frame being sent Note: This callback is available only when livePushMode is set to AlivcLivePushInteractiveMode, that is, when Push SDK is working in interactive mode.
pusher | The live pusher engine object |
oldState | Previous push status,See AliLivePublishState |
newState | Current push status,See AliLivePublishState |
|
optional |
The callback for mixed-stream transcoding, which corresponds to the setLiveMixTranscodingConfig method Note: This callback is available only when livePushMode is set to AlivcLivePushInteractiveMode, that is, when Push SDK is working in interactive mode.
pusher | The live pusher engine object |
isSuccess | YES success; NO failure |
msg | The error cause |
|
optional |
The callback for the video frame being sent Note: This callback is available only when livePushMode is set to AlivcLivePushInteractiveMode, that is, when Push SDK is working in interactive mode.
pusher | The live pusher engine object |
oldState | Previous push status,See AliLivePublishState |
newState | Current push status,See AliLivePublishState |