使用手册

Native C/C++ SDK

集成 stable C ABI、C++ wrapper、transport、signaling 与 direct media upload。

安装与 ABI

Release archive 包含 librtk_cloud_client.a、public header 与导出 rtk::cloud_client 的 CMake metadata。C 使用 rtkc.h,C++ 使用 thin wrapper rtkc.hpp。所有 public request struct 必须以对应 rtkc_*_init 初始化;handle 视为 opaque,SDK allocation 用配对 API release。

Lifecycle 与能力

以 validated endpoint、auth、callback、transport 与 timeout 创建 client。Session 必须依次 connect、process、disconnect、destroy,最后 destroy client。Public API 包含 token、device lifecycle、event/log、command、telemetry、firmware、snapshot、media 与 WebRTC signaling helper。

Direct clip upload

先 authorize,再以 rtkc_presigned_stream_put_request_t 设置 HTTPS URL、signed header、exact body size、read/progress/cancel callback 与 bounded buffer;PUT 成功后 complete 并查询 readiness。不得把 Video Cloud bearer token 发送到 object storage,也不支持 S3 multipart upload。

验证

以 CMake/CTest、package consumer smoke、platform transport test 与 approved deployed-server harness 验证。WebRTC media engine、track 与 renderer 仍由 product/device integration 负责。

其他手册章節

繼續閱读相关手册章節。

SDK 总览

选择 package 并理解支持边界。

开启章節

开始使用

安装 SDK、设置 client 并完成第一次 request。

开启章節

认证与安全

安全处理 token、PKI、TLS、key 与 media。

开启章節

生命周期与错误

处理 timeout、retry、cancel、callback 与 shutdown。

开启章節

能力工作流

集成 provisioning、device、telemetry、OTA、command 与 signaling。

开启章節

Video Cloud 工作流

集成 Live WebRTC signaling 与 encrypted stored video。

开启章節

Android Kotlin SDK

使用 coroutine、signaling、Media3 与 secure key provider。

开启章節

iOS Swift SDK

使用 async API、signaling、AVPlayer、Keychain 与 Secure Enclave。

开启章節

JavaScript/TypeScript SDK

在 browser 与 Node.js 集成 typed ESM package。

开启章節

Go SDK

用 pure Go client 集成 device、tool 与 automation。

开启章節

FreeRTOS/Pro2 SDK

集成 board、transport、media 与 WebRTC answerer adapter。

开启章節

Sample applications

正确使用 Android、iOS、Web、Linux 与 Pro2 sample。

开启章節

调试与兼容性

诊断认证、transport、upload、playback 与版本问题。

开启章節