Last Updated on : 2024-11-18 02:37:59download
Picture-in-picture (PiP) is available in two types: system PiP and in-app PiP. If the system PiP feature does not work correctly, the in-app PiP feature automatically turns on.
To use the system PiP feature, ensure the following conditions are met:
Configure the PiP feature entry on the Tuya Developer Platform. The steps are as follows:
Log in to Tuya Developer Platform, and click Product > Development to enter the Product Development page. Find your product and click Develop in the Operation column.
Click Device Interaction > Panel Control, select your panel, and click Edit Panel.
Click Configure Functions, enable FloatingWindow, and click Save.
Open the project settings.
Select the main target of your project under TARGETS and then click Signing & Capabilities > + Capability.
Click Background Modes and select Audio, AirPlay, and Picture in Picture to enable background audio and PiP.
The configuration is as shown in the image below:
In thing_custom_config.json
, set need_backgroud_audio
to true
to ensure PiP loads correctly.
The background audio permission is subject to strict review by the App Store. To avoid rejection when submitting your app after enabling PiP, provide the following description:
The in-app PiP feature displays videos using a custom UI and turns off automatically when the app goes into the background. If the device system version is not supported or configuration issues occur, the in-app PiP will turn on automatically.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback