Files
zyt/server/config/trtc.php
T
2026-03-24 16:32:56 +08:00

34 lines
1.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* 腾讯云实时音视频(TRTC)配置
*/
return [
// SDK AppID - 在腾讯云控制台获取
'sdkAppId' => env('trtc.sdk_app_id', 0),
// 密钥 - 在腾讯云控制台获取
'secretKey' => env('trtc.secret_key', ''),
// UserSig过期时间(秒)默认24小时
'expireTime' => 86400,
// 是否启用
'enable' => env('trtc.enable', false),
// 云端录制 HTTP 回调可选校验:非空则请求需带 ?token=xxx(与 .env trtc.recording_callback_token 一致)
'recording_callback_token' => env('trtc.recording_callback_token', ''),
// 云 APICAMSecretId / SecretKey,用于 CreateCloudRecording / DeleteCloudRecording(与 UserSig 的 secretKey 不是同一个)
'api_secret_id' => env('trtc.api_secret_id', ''),
'api_secret_key' => env('trtc.api_secret_key', ''),
// 调用 TRTC OpenAPI 的地域:ap-guangzhou / ap-beijing / ap-shanghai
'recording_api_region' => env('trtc.recording_api_region', 'ap-guangzhou'),
// 录制机器人 UserId 前缀
'recording_bot_prefix' => env('trtc.recording_bot_prefix', 'recorder_'),
// 是否把回调中的录制文件下载到本服务器 uploads 目录(再写入 recording_urls
'recording_mirror_to_storage' => (int)env('trtc.recording_mirror_to_storage', 0),
];