Skip to content

Latest commit

 

History

History
79 lines (46 loc) · 2.61 KB

README.md

File metadata and controls

79 lines (46 loc) · 2.61 KB

TuyaSmartCamera

English | 中文版


Overview

Tuya Smart Camera SDK provides the interface package for communication with remote cameras to accelerate the application development process. The following features are supported:

  • Preview images that are taken by remote cameras
  • Play back video records from remote cameras
  • Record video
  • Speak to the remote camera
  • Doorbell call service

Fast integration

Use CocoaPods for integration (system version 9.0 or later)

Add the following code block to your Podfile:

platform :ios, '9.0'

target 'your_target_name' do

  pod 'TuyaSmartHomeKit'
  pod 'TuyaSmartCameraKit'
  pod "TuyaCameraUIKit"
  pod 'TuyaSmartCloudServiceBizBundle'

end

TuyaSmartCameraKit does not support peer-to-peer (P2P) 1.0 by default. To integrate smart cameras that support P2P 1.0, add this code: pod 'TuyaSmartCameraT' .

Run the command pod update in the root directory of the project to implement the integration.

For more information about CocoaPods, see CocoaPods Guides.

Reference

For more information, see IPC SDK.

Demo

  1. Clone this repo to your local computer.

  2. Open the terminal and run the following sample code:

    cd tuyasmart_ipc_sdk_demo/Example/
    pod install
  3. Open TuyaSmartIPCDemo.xcworkspace.

  4. Add the security image named t_s.bmp to your project. For more information, see Preparation.

  5. Set bundleId to your bundle ID.

  6. Open AppDelegate.m and set appKey and appSecret.

  7. To integrate modules that are purchased from the cloud storage service, configure the ty_custom_config.json file. In the file, the value of appId is obtained from the URL of the SDK configuration page. For example, if the URL is https://iot.tuya.com/oem/sdk?id=xxx, xxx indicates the value of appId. tyAppKey is your AppKey and appScheme is your channel identifier.

  8. Run the project. Video decoding is supported by smart cameras. You can debug the code with your iPhone.

Running result

The following figures show the image preview and record playback features.

Preview Playback

Change Log

For more information, see Change Log.