logo
Live Streaming
Server API
Stream Mixing and Transcoding APIs
On this page

API Overview

2023-09-04

ZEGOCLOUD cloud communication product server API has been upgraded to version v2, with the new API interface documentation being more standardized and comprehensive.

Server API v2 supports global nearest access, unified Authentication method, unified parameter style, and common error codes, providing developers with a simple and fast user experience.

  • Developers can refer to the Quick Start documentation to quickly complete an API call.

  • For development and debugging, you can also refer to How to Debug Server API Online to quickly debug the corresponding interface on the documentation page.

Warning
  1. The API interfaces in this document are the latest server API v2 interfaces. Future feature additions will be updated here. To provide a better experience for developers, ZEGOCLOUD recommends using the latest API v2 interfaces.

  2. The old version of the API interface is no longer maintained and new features will not be added. For old version interface documentation, please refer to Server API.

Room Signaling Interfaces

Interface NameInterface Function
SendBroadcastMessageSend broadcast message
SendBarrageMessageSend barrage message
SendCustomCommandSend custom command
DescribeUserNumGet room user count
DescribeUsersQuery User status
DescribeUserListGet room User list
AddStreamAdd room Stream
DeleteStreamDelete room Stream
DescribeSimpleStreamListGet simple Stream list
CloseRoomClose Room
KickoutUserKick User out of Room
SetForbidUserRuleSet User ban rule
DescribeForbidUserRulesQuery User ban rule
DelForbidUserRuleDelete User ban rule
SetForbidStreamRuleSet room audio/video Stream ban rule
DescribeForbidStreamRulesQuery room audio/video Stream ban rule
DelForbidStreamRuleDelete room audio/video Stream ban rule

Stream Mixing and Transcoding Interfaces

Interface NameInterface Function
StartMixStart Stream Mixing
StopMixStop Stream Mixing
GetMixTaskInfoQuery Stream Mixing task info
StartAutoMixStart automatic Stream Mixing
StopAutoMixStop automatic Stream Mixing
StartCloudTranscodeStart single-stream transcoding
StopCloudTranscodeStop single-stream transcoding

Media Service Interfaces

Interface NameInterface Function
ForbidCDNLiveStreamForbid CDN Publish stream
QueryForbidCDNLiveStreamQuery list of URLs forbidden from Publishing to CDN
ResumeCDNLiveStreamResume CDN Publish stream
ForbidRTCStreamForbid RTC Publish stream
ResumeRTCStreamResume RTC Publish stream
ForbidRTCStreamsBatch forbid RTC Publish stream
ResumeRTCStreamsBatch resume RTC Publish stream
CreatCDNTransferRuleStart CDN relay Publish stream
DeleteCDNTransferRuleStop CDN relay Publish stream
ClearCDNTransferRuleClear CDN relay Publish stream
RTMPDispatchV2RTMP Publish/Play stream dispatch

Media File Interfaces

Interface NameInterface Function
StartCDNRecordStart CDN Recording
StopCDNRecordStop CDN Recording
SearchMediaSearch media info
DeleteMediaDelete media file
MergeMediaMerge media files
DescribeMediaTaskQuery media file task
TranscodeMediaStart on-demand transcoding

Audio/Video Stream Moderation Interfaces

Interface NameInterface Function
StartCensorAudioV2Start audio Stream moderation
StopCensorAudioV2Stop audio Stream moderation
StartCensorVideoV2Start video Stream moderation
StopCensorVideoV2Stop video Stream moderation
GenerateIdentifyTokenAudio/video Stream moderation Authentication Token

Scene Service Interfaces

Interface NameInterface Function
SetSceneTemplateScene template configuration

Callback Description

Callback NameCallback Description
room_createRoom created Callback
room_closeRoom destroyed Callback
room_loginUser logged into Room Callback
room_logoutUser logged out of Room Callback
stream_createStream created Callback
stream_closeStream destroyed Callback
mix_startStream Mixing started Callback
mix_stopStream Mixing stopped Callback
transcode_startSingle-stream transcoding started Callback
transcode_stopSingle-stream transcoding stopped Callback
recordRecording file generated Callback
composeMedia file merge completed Callback
procedureOn-demand transcoding completed Callback
censor_audio_v2_resultAudio Stream moderation result Callback
censor_audio_v2_statusAudio Stream moderation task status Callback
censor_video_v2_audio_resultVideo Stream audio moderation result Callback
censor_video_v2_img_resultVideo Stream image moderation result Callback
censor_video_v2_audio_statusVideo Stream audio moderation status Callback
censor_video_v2_img_statusVideo Stream image moderation status Callback

Next

Quick Start

On this page

Back to top