General
This article introduces the business APIs provided by @ray-js/ray-ipc-utils, ready to use out of the box. Required version: ^1.1.5.
1. Native Page Navigation
Description
Some pages are implemented as native (App) pages and currently do not support customization. For more details or feedback, please contact us.
Request Parameters
themeType Details
Album
Route ID: ipc_album_panel
Example
Playback Hub (Recommended)
💡 Note:
@ray-js/ray-ipc-utilsversion >= 1.1.11 is required.
Example
Playback
💡 Note: Starting from App version 650, cloud and SD card playback are merged into one unified page.
Cloud playback id: camera_cloud_panel SD card playback id: camera_playback_panel
Note: The playback page has internal logic. For example, if the device does not support cloud storage, the cloud tab will not display even if navigating to the cloud playback route.
Example
Messages
The message page displays various types of notifications, mainly including: general event alerts, doorbell messages, and AI messages. Internally, it handles tasks such as image decryption and rendering, as well as video decryption and playback.
Route ID: camera_message_panel
Example
Voice Manager
Route ID: ipc_doorbell_voice_manager
Example
2. Get Camera Configuration
Description
Retrieves config data such as speaker, intercom, resolution, zoom, etc.
Request Parameter
Return Parameter data
Field Details:microphoneSettings
Field Details:intercomInfo
Intercom Mode Explanation
Field Details: videoResolution
ClarityType Details: ClarityType
The clarity list values are mainly configured based on the product PID dimension, with the default being ['HD', 'SD']. For special configurations, please confirm and provide feedback to the project manager.
Example
Response Example
3. Cloud Storage Support
Description
Used to check whether the specified camera device supports cloud storage.
Request Parameters
Response Parameters data
- true: Supported
- false: Not supported
Example
Response Example
4. Get Signal Strength
Description
Used to obtain the signal strength of the specified camera device when streaming.
Request Parameters
Response Parameters data
Signal strength value, ranging from 0 to 100.
0indicates the weakest signal.100indicates the strongest signal.
Unit: %
Example
Response Example
5. Get Video Bitrate
Description
Used to get the video bitrate of the specified camera device during streaming, indicating the amount of data transmitted per unit time.
Request Parameters
Response Parameters data
Video Bitrate: A numeric value greater than or equal to 0, representing the data transmission rate during video streaming.
Unit: KB/S (Kilobytes per second)
Example
Response Example
6. Picture-in-Picture (PiP)
Support Check
Description
First, determine whether the device supports this feature.
Request Parameters
Response Parameters data
isSupport: true (supported) or false (not supported)
Example
Response Example
Enable Picture-in-Picture
Description
This feature can only be successfully called to enable picture-in-picture if the device supports it.
Request Parameters
Response Parameters code
code: 0 (Success) Picture-in-picture enabled directly Others (Failure)
Example
Response Example
7. Low Power Wake-up
Description
For low-power devices using dpId (149) and dpCode (wireless_awake), it is necessary to call the wake-up function at least three times with 200ms intervals before establishing the connection.
Request Parameters
Response Parameter: code
code: 0 (Success) Method call succeeded; others indicate (Failure)
Example
Response Example
8. Get Current Mobile Screen Orientation
Description
Get the current screen orientation of the mobile device once.
Response Parameters data
portrait (portrait mode) landscape (landscape mode)
Example
Response Example
9. Set Screen Orientation
Description
Manually set the screen orientation to portrait or landscape.
If the player contains landscape videos, the current page configuration (index.config.ts) must have pageOrientation set to auto for proper rotation.
Request Parameters
Response Parameters data
portrait (portrait mode) landscape (landscape mode)
Example
Response Example
10. Get Value-Added Service URL
Description
Retrieve URLs for various common value-added services, or directly navigate to the corresponding service pages.
Request Parameters
Service Types: ServiceType
Note Value-added services are continuously expanding. If some services are not covered or different services require different parameters, please contact the Tuya Mini Program team for feedback. We will respond promptly.
Response Parameters data
Example
Response Example
11. Navigate to IPC Settings Mini Program
Description
Navigate to the IPC device settings mini program page, where users can configure device-related settings.
Request Parameters
Example
Response Example
12. Navigate to IPC Service Hall Mini Program
Description
Navigate to the IPC Service Hall mini program.
Request Parameters
Example
Response Example
13. Get Service Subscription Status
Description
Used to check whether a specified value-added service is subscribed for a device.
Request Parameters
Service Types (categoryCode)
Note Value-added services are continuously expanding. If some services are not covered or different services require different parameters, please contact the Tuya Smart Mini Program team for feedback. We will respond promptly.
Response Parameters data
- true: Subscribed
- false: Not subscribed
Example
Response Example