Inherits agora::RefCountInterface.
◆ startOrUpdateChannelMediaRelay()
Starts or update to relay media streams across channels.
- Since
- v4.2.0
- Parameters
-
- Returns
- 0: Success.
- < 0: Failure.
- -1(ERR_FAILED): A general error occurs (no specified reason).
- -2(ERR_INVALID_ARGUMENT): The argument is invalid.
- -5(ERR_REFUSED): The request is rejected.
◆ stopChannelMediaRelay()
virtual int agora::rtc::IMediaRelayService::stopChannelMediaRelay |
( |
aosl_ref_t |
ares = AOSL_REF_INVALID | ) |
|
|
pure virtual |
Stops the media stream relay.
Once the relay stops, the host quits all the destination channels.
- Returns
- 0: Success.
- < 0: Failure.
- -1(ERR_FAILED): A general error occurs (no specified reason).
- -2(ERR_INVALID_ARGUMENT): The argument is invalid.
- -5(ERR_REFUSED): The request is rejected.
◆ pauseAllChannelMediaRelay()
virtual int agora::rtc::IMediaRelayService::pauseAllChannelMediaRelay |
( |
aosl_ref_t |
ares = AOSL_REF_INVALID | ) |
|
|
pure virtual |
pause the channels for media stream relay.
- Returns
- 0: Success.
- < 0: Failure.
- -1(ERR_FAILED): A general error occurs (no specified reason).
- -2(ERR_INVALID_ARGUMENT): The argument is invalid.
- -5(ERR_REFUSED): The request is rejected.
◆ resumeAllChannelMediaRelay()
virtual int agora::rtc::IMediaRelayService::resumeAllChannelMediaRelay |
( |
aosl_ref_t |
ares = AOSL_REF_INVALID | ) |
|
|
pure virtual |
resume the channels for media stream relay.
- Returns
- 0: Success.
- < 0: Failure.
- -1(ERR_FAILED): A general error occurs (no specified reason).
- -2(ERR_INVALID_ARGUMENT): The argument is invalid.
- -5(ERR_REFUSED): The request is rejected.
◆ registerEventHandler()
◆ unregisterEventHandler()
virtual void agora::rtc::IMediaRelayService::unregisterEventHandler |
( |
IMediaRelayObserver * |
eventObserver | ) |
|
|
pure virtual |