tencent cloud

Tencent Real-Time Communication

お知らせ・リリースノート
製品アップデート情報
Tencent Cloudオーディオビデオ端末SDKの再生アップグレードおよび承認チェック追加に関するお知らせ
TRTCアプリケーションのサブスクリプションパッケージサービスのリリースに関する説明について
製品の説明
製品概要
基礎概念
製品の機能
製品の強み
ユースケース
性能データ
購入ガイド
Billing Overview
無料時間の説明
Monthly subscription
Pay-as-you-go
TRTC Overdue and Suspension Policy
課金に関するよくあるご質問
Refund Instructions
初心者ガイド
Demo体験
Call
コンポーネントの説明(TUICallKit)
Activate the Service
Run Demo
クイック導入
オフライン通知
Conversational Chat
クラウドレコーディング(TUICallKit)
AI Noise Reduction
インターフェースのカスタマイズ
Calls integration to Chat
Additional Features
No UI Integration
Server APIs
Client APIs
Solution
ErrorCode
公開ログ
よくある質問
ライブ配信
Billing of Video Live Component
Overview
Activating the Service (TUILiveKit)
Demo のクイックスタート
No UI Integration
UI Customization
Live Broadcast Monitoring
Video Live Streaming
Voice Chat Room
Advanced Features
Client APIs
Server APIs
Error Codes
Release Notes
FAQs
RTC Engine
Activate Service
SDKのダウンロード
APIコードサンプル
Usage Guidelines
クライアント側 API
高度な機能
RTC RESTFUL API
History
Introduction
API Category
Room Management APIs
Stream mixing and relay APIs
On-cloud recording APIs
Data Monitoring APIs
Pull stream Relay Related interface
Web Record APIs
AI Service APIs
Cloud Slicing APIs
Cloud Moderation APIs
Making API Requests
Call Quality Monitoring APIs
Usage Statistics APIs
Data Types
Appendix
Error Codes
コンソールガイド
アプリケーション管理
使用統計
監視ダッシュボード
開発支援
Solution
Real-Time Chorus
よくあるご質問
課金関連問題
機能関連
UserSig関連
ファイアウォールの制限の対応関連
インストールパッケージの圧縮に関するご質問
AndriodおよびiOS関連
Web端末関連
Flutter関連
Electron関連
TRTCCalling Web関連
オーディオビデオ品質関連
その他のご質問
旧バージョンのドキュメント
TUIRoom(Web)の統合
TUIRoom (Android)の統合
TUIRoom (iOS)の統合
TUIRoom (Flutter)の統合
TUIRoom (Electron)の統合
TUIRoom APIのクエリー
クラウドレコーディングと再生の実現(旧)
Protocols and Policies
セキュリティコンプライアンス認証
セキュリティホワイトペーパー
情報セキュリティの説明
Service Level Agreement
Apple Privacy Policy: PrivacyInfo.xcprivacy
TRTC ポリシー
プライバシーポリシー
データ処理とセキュリティ契約
用語集

Initiating a Call From the Server

PDF
フォーカスモード
フォントサイズ
最終更新日: 2025-07-15 16:53:33

Effect Display

You can initiate a call and input uplink audio-video media streams through the server. The client-side effect of answering a call is as follows:
1V1 call
group call




Start Access

Initiating a Call From the Server

Example Request URL

https://console.tim.qq.com/v4/call_engine_http_srv/start_call_by_robot?sdkappid=88888888&identifier=administrator&
usersig=xxx&random=99999999&contenttype=json
Parameter
Description
Value
xxxxxx
SDKAppID resides in the country/region with a dedicated domain name
China: console.tim.qq.com, Singapore: adminapisgp.im.qcloud.com
https
request protocol
The request protocol is HTTPS, and the request method is POST.
console.tim.qq.com
Request domain
fixed as console.tim.qq.com
ver
protocol version number
fixed as v4
servicename
internal service name, different servicename corresponds to different service type
Example: v4/call_engine_http_srv/get_call_info, among them call_engine_http_srv is the servicename
command
Command word, combined with servicename to identify specific business functionality
Example: v4/call_engine_http_srv/get_call_info, among them get_call_info is the command
sdkappid
App ID obtained from the IM console
apply for access to obtain
identifier
userName must be an App administrator account for REST API calls
see App admin
usersig
password corresponding to the userName
refer to generate UserSig
random
Identify the random parameter of the current request
32-bit unsigned integer random number, value ranges from 0 to 4294967295
contenttype
Request format
The value is fixed as JSON.

Sample Request Packet

The following is a sample request packet for a video call from the server (userId: robot) to the client (userId: jack):
{
"Robot_Account":"robot", // robot userid, no heartbeat detection for robot
"CalleeList_Account":["jack"],
"Timeout":300000,
"UserData":"userdata-12345687",
"CallInfo":{
"MediaType": "Video",
"RoomId":"roomid-test",
"RoomIdType":2
},
"OfflinePushInfo": {
"PushFlag": 0,
"Title":"This is the push title",
"Desc": "This is offline push content"
"Ext": "{\\"entity\\":{\\"key1\\":\\"value1\\",\\"key2\\":\\"value2\\"}}"
}
}
Parameter
Description
Robot_Account
Robot ID
CalleeList_Account
Called member list
Timeout
Timeout time
CallInfo.MediaType
Call type. video call: "video". Voice call: "Audio".
CallInfo.RoomId
Room ID. Divided into Int and String two types.
CallInfo.RoomIdType
Room ID type. Int type: 1. String type: 2.
OfflinePushInfo
Offline push parameters. For details, see IM message format description

Sample Response Packet

{
"ErrorCode": 0,
"ErrorInfo": "",
"ActionStatus": "OK",
"RequestId": "Id-01f93f1a85c34d64a0e4cadb371deef8-O-Seq-997346",
"Response": {
"CallId": "35fd577d-1d10-4201-a40d-6d7316560986",
"CallResult": [
{
"Callee_Account": "jack",
"ResultCode": 0
}
]
}
}
Parameter
Description
ErrorCode
Error code. 0 indicates success, non-0 indicates failure
ErrorInfo
Error Message
ActionStatus
Request processing result. OK: processing successful; FAIL: processing failed.
RequestId
Unique request ID, returned for each request. RequestId is required for locating a problem.
Response
Call ID Call result

Input Media Stream on Server Side

TRTC server calls the stream push API to push online media streaming. See input media stream into room.
Note:
Input online media stream (StartStreamIngest) parameters for RoomIdType differ from those in server-initiated calls:
Note: Parameter interpretation for RoomIdType in server-initiated calls: 1 means Int type, 2 means String type.
Parameter interpretation for RoomIdType in input online media stream: 0 means Int type, 1 means String type.



ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック