Get started
  • English
  • 简体中文
Official Site
Get started
  • English
  • 简体中文
Official Site
  • Get started
  • Concepts
  • Guides
    • Account and authorization
    • Device access
    • Audio and video
      • Cloud live from an AppId
      • Integrate the light application
      • Build a mobile app
      • Build a desktop app
      • Video playback
      • Troubleshoot preview
    • Device capability integration
    • Receive device messages
    • Manage cloud storage
    • Release and operations
  • Device capabilities & events
  • API reference
  • SDK and tools
  • Solutions
  • Platform and support
On this page
Scope and prerequisites
Steps
Client implementations
Related reference

Build a mobile app

Build a mobile app

Scope and prerequisites

The app reaches the platform through your cloud. Use the client SDK and the demo for provisioning, device initialization, audio and video playback, and image decryption. Call the HTTP APIs from your server for the account, device management other than binding, cloud storage, and alarm queries.

Packages are in Downloads. The Android component is in Android OpenSDK. iOS runs on a device only, not in the simulator, and needs Xcode 9.0 or later. See iOS OpenSDK.

Steps

  1. Obtain the administrator token on the server. See accessToken.

Obtain a token

  1. Bind the device. A new device, or a device upgraded to a new program, may not finish binding through the HTTP bindDevice call alone. Use the client SDK as well. Follow the demo for the binding steps of each device version.

Bind a device

  1. Create a sub-account from the administrator account, then grant devices and permissions to that sub-account. Map the sub-account to a user in your app. See Sub-accounts and policies.

Authorize a sub-account

  1. After binding, sync the device list from the server with Device management (V2 device.detail.*).

List devices

  1. Preview does not call an HTTP playback API. Call the OpenSDK embedded in the app, and follow the SDK page and the demo.

Preview video

Client implementations

Preview, talk, and playback on Android and iOS follow each SDK page and demo. Privacy requirements are in the SDK privacy policy.

CapabilityClient (SDK / demo)Server (HTTP)
Provisioning and device initOpenSDK and the standard demoPre-bind probe, bindDevice
Live view, talk, local/cloud playbackAndroid / iOS guides and demosDevice management (lists, details, playToken, etc.); legacy HTTP in Legacy APIs
Alarm thumbnails and cover imagesSDK decryptPic (see §9 in each SDK guide)Encrypted URLs from alarm and record APIs
Browser playbackImouPlayer light appgetKitToken and related APIs

For wireless provisioning you can call SDK APIs directly or embed the Android LCDeviceAddModule from the demo (OpenSDK guide §3).

Related reference

  • Integrate a camera
  • Android OpenSDK
  • iOS OpenSDK
Integrate the light application
Build a desktop app