使用手册

Android Kotlin SDK

集成 Android AAR、coroutine、Live signaling、clip browser、secure key 与 Media3。

安装与 client

使用发布的 Maven coordinate 或 package script 产生的 local repository。交付物包含 AAR、sources JAR、POM、Gradle metadata、manifest、checksum 与 consumer smoke report。启用 Internet permission 并保持正常 TLS validation。

创建 RtkCloudClient 并从 ViewModel/service 使用 async 或 coroutine API。将 RtkCloudException.status 映射为 stable application state,diagnostics 前先 redaction response body。

Live 与 stored video

RTK SDK 提供 authentication、ICE、offer/answer/close 与 signaling session helper;App 将 session data 接到 Android platform WebRTC component,并负责 peer connection、track、renderer、audio policy 与 lifecycle。SDK 不包含完整 media renderer。

ClipQuery 调用 listClips,处理 ClipPagenextSkip、filter、empty state、thumbnail 与 delete confirmation。PlaybackKeyProvider 应由 Android Keystore-backed code 实现;将 playbackUrl 交给 Media3/ExoPlayer,URL 过期后更新并随 UI lifecycle release player。

验证

执行 package unit test、可用时的 instrumentation test、AAR consumer smoke、sample unit/UI smoke。Android Playback 状态为 Real SDK + Media3;Live 页面为 RTK signaling integration/fixture UI,尚不代表完整 media rendering。

其他手册章節

繼續閱读相关手册章節。

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。

开启章節

Native C/C++ SDK

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

开启章節

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

开启章節