GithubHelp home page GithubHelp logo

shouse / tuya-ios-ipc-sdk-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tuya-community/tuya-ios-ipc-sdk-sample

0.0 0.0 0.0 245 KB

A simple sample for displaying IPC SDK features.

License: MIT License

Ruby 0.14% Objective-C 99.21% Swift 0.39% C 0.26%

tuya-ios-ipc-sdk-sample's Introduction

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.

tuya-ios-ipc-sdk-sample's People

Contributors

yunxiao-wen avatar zlinoliver avatar xiaoxuan-tuya avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.