Skip to main content

Status Callback

The Cloud Player Service provides status callbacks to synchronize relevant data and states to your application server address configured in the Console.

Callback Method

POST: <your-receiving-server-url>

Data Format: application/json

The callback URL <your-receiving-server-url> is the receiving address you configured in the Console for the current App Key and service. Ensure this address is accessible. If your network has IP restrictions, configure the IP allowlist to receive server callbacks properly.

To verify data integrity and authenticate the caller as RC Server, each request includes a signature. For callback signature rules, see Server Callback.

Callback Body Parameters

The HTTP request body of this callback service uses application/json format and contains a JSON object with the following structure:

Field NameTypeDescription
timestampNumberTimestamp in milliseconds
typeNumberCallback type. 1: Stream pull success. 2: Stream pull ended. 3: Initial stream pull failure. 4: Stream pull interrupted (RTMP reconnection). 5: RTC publishing status callback (for manual cloud recording, call start recording only after status 5).
app_keyStringApp Key assigned in the developer platform
room_idStringRoom ID
rtmp_urlStringPublic URL of the streaming resource
user_idStringUser ID of the stream
codeNumberStatus code. See code descriptions below.
video_resolutionStringVideo resolution (e.g., 1920X1080).
  • code Descriptions:

    Status CodeDescription
    10000Normal
    61000Unsupported HTTP request
    61101Failed to pull stream from the given RTMP URL
    61102RTMP stream pull error (reconnecting)
    61103RTMP reconnection failed after 3 attempts
    61010Invalid HTTP request header
    61011Invalid HTTP request body
    61012Field value validation failed
    61013Internal error (signal server timeout)
    61014Internal error (media server timeout)
    61015Internal error (abnormal room exit)
    61017RTC publishing success.