Video File Import and Export Capability
Import Local Video Resources
-
Function: Allows end-users to import video materials through the following methods:
- Directly activating the phone camera to record video material.
- Importing existing video materials from the phone album.
-
Interface Details: chooseMedia
Video Pre-Standardization Processing
-
Function: Primarily used to standardize the resolution and angle of source video resources to prevent anomalies during subsequent AI processing due to varying resolutions and angles.
-
Interface Details: clipVideo
Export after Video AI Generation
-
Function: Enables end-users to save edited video materials to their phone album.
-
Interface Details: saveVideoToPhotosAlbum
Audio Interaction Capabilities
Obtain Tuya Default Background Music
-
Function: Currently, templates provide a selection of default background music for developers to use, with plans to expand the music library in the future.
-
Interface Details: backgroundMusicList
Download Tuya Default Background Music
-
Function: Download Tuya's online background music to the app's local sandbox.
-
Interface Details: backgroundMusicDownload
Music Resource Control Instance
-
Function: Used to play or pause background music for trial listening by the user.
-
Interface Details: createInnerAudioContext
AI Video Stream Processing Functions
Create AI Video Stream Processing Instance On-App AI
-
Function: Initialize AI video stream processing instance.
-
Interface Details: objectDetectCreate
Destroy AI Video Stream Processing Instance
Destroy AI Video Stream Processing Instance On-App AI
-
Function: Destroy AI video stream processing instance to avoid memory leaks.
-
Interface Details: objectDetectDestroy
Highlight Pets/Portraits and Edit Video Stream Background Music
Highlight Pets/Portraits and Edit Video Stream Background Music On-App AI
-
Function:
- Highlight relevant subjects within the video stream based on input parameters.
- Add custom background music to the video according to music materials and mixing ratios.
-
Interface Details: objectDetectForVideo
Cancel Video Stream Editing Operations On-App AI
-
Function: Interrupt ongoing AI video stream processing operations.
-
Interface Details: objectDetectForVideoCancel
AI Processing Progress Monitoring Function On-App AI
-
Function: Monitor the generation progress of the AI video stream.
-
Interface Details: onVideoObjectDetectProgress
Cancel AI Processing Progress Monitoring Function On-App AI
-
Function: Cancel the monitoring of AI video stream generation progress.
-
Interface Details: offVideoObjectDetectProgress