Initialization parameters
Your organization’s publishable API key. Starts with
pk_live_ or pk_test_.Configuration object defining feed layout, controls, and behavior. See sections below.
Target environment. One of
production, staging, or development. Controls API endpoint and logging verbosity.Cache TTL for remote configuration overlay, in seconds.
Timeout for remote config fetch, in milliseconds. If exceeded, falls back to cached or code-level config.
Feed layout
Primary scroll direction of the feed.
| Value | Description |
|---|---|
vertical | Swipe up/down between videos (TikTok-style) |
horizontal | Swipe left/right between videos |
Height of the feed view.
| Value | Description |
|---|---|
fullscreen | Occupies entire screen minus safe areas |
{ percentage: 0.85 } | Percentage of container (e.g., 85%) |
Types of content the feed can display.
| Value | Description |
|---|---|
video | Video content (default) |
photoSet | Swipeable photo carousels |
Additional feeds accessible by horizontal swipe from the primary feed. Each can have its own filters and ranking.
Configuration for embeddable mini-player widgets. See Entry widget.
Example
Video controls
Each control can be independently enabled or disabled.Tap-to-pause/play overlay.
Progress bar / seek scrubber. Position configurable via
scrubberPosition.Position of the scrubber. One of
bottom or below (below video for non-fullscreen).Playback speed selector configuration.
Caption/subtitle configuration.
Mute/unmute toggle.
Whether videos start muted. Unmute state persists across videos in the session.
Manual resolution override. When disabled, resolution is managed automatically via ABR (recommended).
Picture-in-Picture mode support. Requires platform configuration.
AirPlay casting support (iOS only).
Chromecast support. Requires Google Cast SDK.
Share button configuration.
Auto-hide behavior for control overlays.
Example
Custom actions
Configure custom action buttons in the control overlay:Array of custom action button configurations.
Entry widget configuration
Configure mini-player widgets for embedding in other screens:Widget display style.
| Value | Description |
|---|---|
thumbnailRow | Horizontal row of thumbnail previews |
thumbnailGrid | Grid of thumbnail previews |
carousel | Horizontal carousel with larger previews |
Number of content items to display.
Whether to auto-play preview animations on hover/focus.
Preview content type.
| Value | Description |
|---|---|
thumbnail | Static first-frame thumbnail |
gif | Animated preview GIF (first 2-3 seconds) |
Feed filters
Filter content displayed in the feed:Only show content with at least one of these tags.
Exclude content with any of these tags.
Only show specific content IDs (useful for curated playlists).
Only show content published within the last N days.
Performance options
Number of upcoming videos to pre-buffer.
Number of upcoming thumbnails to prefetch.
Target buffer before starting playback, in milliseconds.
Whether to reduce quality when device is in low-power mode.
Whether to prefer AV1 codec when hardware decode is available. AV1 offers better quality at lower bitrate.
