使用手冊

認證與安全

保護 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 與版本問題。

開啟章節