Server APIs v2
  • Server APIs overview
  • Accessing Server APIs
  • Room signaling
  • Stream mixing
  • Streaming moderation
  • Streaming control
  • CDN recording
  • Server callbacks
  • Return codes
  • API testing
  • FAQ
  • Documentation
  • Server APIs v2
  • Server callbacks
  • Setting up server-to-server callbacks

Setting up server-to-server callbacks

Last updated:2023-05-23 10:11

You can set up server-to-server callbacks for the ZEGOCLOUD server to send event notifications to your application server so that your application server can handle these events accordingly to ensure the proper operation of the application.

1 Use cases

  • The ZEGOCLOUD server callbacks Stream created and Stream closed can be used to maintain the live stream list on your application server.

    The `pic_url` included in the callback `Stream created` can be used for video content moderation during a live streaming. By default, a snapshot of the video stream is captured and saved to the specified URL every 20 seconds.
  • The ZEGOCLOUD server callback Recorded files obtained can be used to implement video-on-demand services.

2 How to set up server-to-server callbacks

You can set up server callbacks for your application by the following steps:

  1. Log in to ZEGOCLOUD Admin Console, and you will be directed to the Overview page.
  2. In the My Project section, click Edit for the project.

  1. Add server callback as you need.

/Pics/server_v2/add_server_callback.png

Page Directory