Get started
  • English
  • 简体中文
Official Site
Get started
  • English
  • 简体中文
Official Site
  • Get started
    • Quick start
      • Learning paths
      • Console first live view
      • First API call
      • Light-app first preview
      • SDK first preview
      • Create application
    • Account system
    • Docking mode
    • Resource download
  • Concepts
  • Guides
  • Device capabilities & events
  • API reference
  • SDK and tools
  • Solutions
  • Platform and support
On this page
Choose Android or iOS
Download the demo
Server token
Initialize and preview
Related

SDK first preview

SDK first preview

Preview runs inside the OpenSDK. It does not call an HTTP playback API. Full bind and authorization steps: Build a mobile app.

Choose Android or iOS

PlatformPackage on DownloadsComponent page
AndroidAndroid OpenSDK and Android subaccount DemoAndroid OpenSDK
iOSiOS OpenSDK and iOS subaccount DemoiOS OpenSDK

iOS runs on a physical device only, not in the simulator, and needs Xcode 9.0 or later. This page does not claim any other emulator support.

PC OpenSDK is a separate desktop path: Build a desktop app.

Download the demo

Take the current Updated date and Hash from Downloads and verify the archive before you open it. Follow the demo for the bind sequence of each device version.

Server token

Obtain the administrator token on your server with accessToken (https://openapi-[DataCenter].easy4ip.com/openapi/accessToken). Valid for 3 days; refresh on TK1002.

When the app user must not hold the administrator token, create a sub-account and call subAccountToken. iOS init accepts either token; replace [Data Center] in addr with your data-center id. See iOS OpenSDK.

Initialize and preview

  1. Bind the device. A new device, or a device that just upgraded, may not finish through HTTP bindDevice alone—use the client SDK and the demo. HTTP entry: Add a device.
  2. After bind, list devices from the server with Device management (device.detail.*).
  3. Preview with the embedded OpenSDK. Follow the SDK page and the demo; do not call bindDeviceLive for in-app preview.

Provisioning, device init, playback, talk, and image decryption stay in the client SDK. Account, device list (other than bind), cloud storage, and alarm queries stay on your server.

Related

  • Downloads
  • Mobile SDK summary
  • Tokens
Light-app first preview
Create application