Skip to main content
The #video command bundles video files into your app for in-app playback. Use it for onboarding videos, tutorials, background loops, or any video content that should ship with your app.

What It Does

When you use #video, the AI:
  1. Adds the video file to your Xcode project as a bundled resource
  2. Sets up a video player using AVKit and AVFoundation
  3. Configures playback behavior (autoplay, looping, controls) based on your description

Supported Formats

FormatNotes
MOVApple’s QuickTime format, widely supported on Apple platforms
MP4Universal format, great compatibility and compression
QuickTimeQuickTime-compatible video files

How to Use

1

Type #video in the chat

Type # and select video from the toolkit popover.
2

Select your video file

The file picker opens, filtered to supported video formats. Choose the video you want to embed.
3

Describe how to use it

The video appears as an orange chip below the input. Tell the AI where to place the video and how it should behave.
4

Send your message

Press Enter. The AI bundles the video and creates the player view as described.

Example Prompts

Play this video as the onboarding background
Show this tutorial video on the help screen
Loop this video behind the login screen
Add a video player for this clip on the product detail page with playback controls
Play this video fullscreen when the user taps the 'Watch Demo' button

Common Video Patterns

Great for login screens and landing pages. Tell the AI to loop the video, mute it, and place it behind your content. Keep these videos short (5-15 seconds) and visually subtle.
Walk new users through your app with a video on each onboarding step. These typically include playback controls and play once.
Embed preview clips that users can watch inline. These usually have play/pause controls and expand to fullscreen on tap.
Video files can be large. Keep videos under 50MB to avoid slow builds and large app sizes. For longer videos or content that updates frequently, consider streaming from a URL instead of bundling in the app.

Tips for Smaller File Sizes

ApproachHow it helps
Use MP4 with H.264Best compression-to-quality ratio for most use cases
Shorten the clipTrim to only the essential footage
Reduce resolution720p is often sufficient for mobile playback
Lower the frame rate24fps or 30fps is fine for most app videos
Compress with HandBrakeFree tool that can significantly reduce file size
If your video is purely decorative (like a background loop), consider using a Lottie animation instead. Lottie files are dramatically smaller and resolution-independent.

Toolkit Overview

See all available # commands and how the toolkit works.

#sound — Audio Files

Add sound effects and audio to your app.