Note: This repository is inherited from the old Tuya GitHub repository, which will be deprecated soon. Use this repository for Android application development instead. You can change the existing remote repository URL. For more information, see Tutorial.
-
Clone the code.
-
Modify the
clientId_
,secret_
,authCode_
,deviceid_
, andlocalkey
.
Tuya Smart WebRTC provides a sample of how to connect an Android app to IP cameras by using WebRTC.
The following functions are included:
-
APIs to support multiple functions, for example, to get tokens and MQTT login information.
-
Messaging-related functions, such as MQTT login, message subscription, and message sending and receiving.
-
The specific flow of the app to watch IPC video based on WebRTC.