mobile_preview
Package the current project and upload it to Douyin's preview service, returning a QR code and expiration time so you can scan with the Douyin App to view the effect on a real device.
Instructions
手机预览:按工具栏「手机预览」的方式打包当前工程并上传到抖音的预览服务,返回和编辑器弹出的一样的二维码图片(及其文本、有效期),用抖音 App 扫码即可在真机上看效果。二维码同时存成文件 qr_file,可直接给用户扫,不要另存到别处:到期(expires_at,一般 7 天)后自动删除。会把特效包上传到抖音服务器;内容审核不通过时报 MOBILE_PREVIEW_MODERATION_FAILED。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_id | No | 官方 list_instances 返回的 instance_id,与 project_path 二选一。 | |
| project_path | No | 目标工程的绝对路径。与 instance_id 二选一;只开了一个工程窗口时都可省略。 |