Tuya Smart Camera SDK provides the interface package for the communication with remote camera device to accelerate the application development process, including the following features:
- Preview the picture taken by the camera
- Play back recorded video of the remote camera
- Record video
- Talk to the remote camera
Add the following line to your Podfile:
platform :ios, '9.0'
target 'your_target_name' do
pod "TuyaSmartActivatorKit"
pod 'TuyaSmartCameraKit'
pod 'TYEncryptImage'
#pod 'TuyaSmartCameraT'
end
TuyaSmartCameraKit is not support p2p 1.0 by default, if you want integrate p2p 1.0 camera, you could add this code: pod 'TuyaSmartCameraT'
.
TuyaSmartCamera
is removed from sdk, you can get it from demo in this repo.
Execute command pod update
in the project's root directory to begin integration.
For the instructions of CocoaPods, please refer to : CocoaPods Guides
Refer to Details: Tuya Smart Camera iOS SDK Doc
-
Clone this repo to local.
-
Open terminal, run these command:
cd tuyasmart_camera_ios_sdk/Example/ pod install
-
Open
TuyaSmartHomeKit.xcworkspace
. -
Refer to Preparation work, add the security image to project, and modify the
bundleId
. -
Open
TYAppDelegate.m
, complement theappKey
,appSecret
. If you needTYCameraCloudServicePanelSDK
, also need to complement the App's channel id. -
Run project. Since video decode with hardware decoding, so please debug with iPhone.