使用手册

认证与安全

保护 bearer token、device certificate、encryption key、media URL 与 user data。

Token 与 PKI

只取得 operation 所需的最小 token,并在到期前更新。将 credential 保存在 process memory 或 platform-protected storage,从 log 移除 Authorization、cookie、query token 与 response body。401 通常需要 refresh;403 通常表示 permission 或 product capability 不足。

启用 PKI 时,device 可用 client certificate 认证。正常验证 server certificate 与 hostname,以 keystore 或 hardware-backed storage 保护 private key,并在到期前 rotation。Certificate identity 必须与 provisioned device 相符。

Stored-video encryption

Device 在上传前加密完整 clip,只将 encrypted object、integrity metadata 与 wrapped key material 交给 Cloud。PlaybackKeyProvider 的 recipient private key 应留在 Android Keystore、iOS Keychain/Secure Enclave 或等效 boundary。

Presigned URL 与 logging

Presigned upload/playback URL 是短效 bearer-like secret。只发送 authorization response 指定的 signed header,不可将 Video Cloud token 附加到 object-storage request。不可永久保存 URL、放入 analytics/debug report,或记录 wrapped key、private key、raw media。可安全记录 operation、stable status、HTTP status、correlation ID、byte count 与 elapsed time。

其他手册章節

繼續閱读相关手册章節。

SDK 总览

选择 package 并理解支持边界。

开启章節

开始使用

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

开启章節

生命周期与错误

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

开启章節

能力工作流

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

开启章節

Video Cloud 工作流

集成 Live WebRTC signaling 与 encrypted stored video。

开启章節

Native C/C++ SDK

使用 stable C ABI、C++ wrapper、transport 与 streaming upload。

开启章節

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 与版本问题。

开启章節