Player configurations (iOS)
Customize player styles
Customize player styles for video feed components
var config = VideoFeedContentConfiguration()
// Configure player style: fullBleed or fit
config.playerView.playerStyle = .fullBleed
// Controls how the player handles aspect ratio mismatches between
// the video content and its container
// - true: Always respects `playerStyle`
// - false: Enforces aspect-fit (letterboxing) when the video and
// container orientations or aspect ratios do not match
config.playerView.ignoreContentRatioMismatch = true
// Customize the video overlay CTA button style
config.playerView.ctaButton.contentConfiguration.backgroundColor = .black
config.playerView.ctaButton.contentConfiguration.textColor = .white
config.playerView.ctaButton.contentConfiguration.font = .systemFont(ofSize: 12)
config.playerView.ctaButton.contentConfiguration.shape = .oval
// Customize the style of Action button style, such as share button
config.playerView.actionButton.backgroundColor = .black
config.playerView.actionButton.textColor = .white
config.playerView.actionButton.separatorColor = .white
config.playerView.actionButton.shape = .oval
// Customize the style of cancel button style
config.playerView.cancelButton.backgroundColor = .black
config.playerView.cancelButton.textColor = .white
config.playerView.cancelButton.shape = .oval
// Specifies the appearance of the countdown timer
config.playerView.countdownTimerConfiguration.appearance = .light
// Configure the subtitle text color
config.playerView.subtitleConfiguration.textColor = .white
// Configure the subtitle background color
config.playerView.subtitleConfiguration.backgroundColor = .black
// Configure the background color of the ad badge.
// This also applies to video feed item.
config.adBadge.backgroundColor = .white
// Configure the text color of the ad badge
// This also applies to video feed item
config.adBadge.textColor = .black
// Configure the text(Sponsored or Ad) of the ad badge
// This also applies to video feed item
config.adBadge.badgeText = .ad
// Apply the changes for VideoFeedViewController instance
let feedVC = VideoFeedViewController()
feedVC.viewConfiguration = config
// Apply the changes for VideoFeedView instance
let videoFeedView = VideoFeedView()
videoFeedView.viewConfiguration = config
// Apply the changes for VideoFeedSwiftUIView instance
VideoFeedSwiftUIView(viewConfiguration: config)Customize player styles for story block components
Customize player styles for circle story components
Customize player styles for player deck components
Customize player styles for openVideoPlayer API
Enable PiP(Picture in Picture)
Set up the iOS project

Enable PiP for video feed components
Enable PiP for story block components
Enable PiP for circle story components
Enable PiP for player deck components
Enable PiP for openVideoPlayer API
Enable horizontal full-screen player
Set up iOS project

Enable horizontal full-screen player for video feed components
Enable horizontal full-screen player for story block components
Enable horizontal full-screen player for circle story components
Enable horizontal full-screen player for player deck components
Enable horizontal full-screen player for openVideoPlayer API
Enable vertical scrolling for player
Configuration for video feed component
Configuration for story block component
Configuration for circle story component
Configuration for player deck component
Configuration for openVideoPlayer API
Hiding product cards for short video and trailer
Code snippets for video feed component
Code snippets for story block component
Code snippets for circle story component
Code snippets for player deck component
Code snippets for openVideoPlayer API
Customize social attribution
Customize social attribution for video feed components
Customize social attribution for story block components
Customize social attribution for circle story components
Customize social attribution for player deck components
Customize social attribution for openVideoPlayer API
Customize product indicator
Customize product indicator for video feed components
Customize product indicator for story block components
Customize product indicator for circle story components
Customize product indicator for player deck components
Customize product indicator for openVideoPlayer API
Customize player icons
Set up iOS project

Customize player icons for video feed components
Customize player icons for story block components
Customize player icons for circle story components
Customize player icons for player deck components
Customize player icons for openVideoPlayer API
Customize player logo
Customize player logo for video feed components
Customize player logo for story block components
Customize player logo for circle story components
Customize player logo for player deck components
Customize player logo for openVideoPlayer API
Customize share base URL
Customize share base URL for video feed components
Customize share base URL for story block components
Customize share base URL for circle story components
Customize share base URL for player deck components
Customize share base URL for openVideoPlayer API
Configure video/feed complete actions
Configure video/feed complete actions for video feed components
Configure video/feed complete actions for story block components
Configure video/feed complete actions for circle story components
Configure video/feed complete actions for player deck components
Configure video/feed complete actions for openVideoPlayer API
Hide player UI elements
Hide player UI elements for video feed components
Hide player UI elements for story block components
Hide player UI elements for circle story components
Hide player UI elements for player deck components
Hide player UI elements for openVideoPlayer API
Customize share button position
Customize share button position for video feed components
Customize share button position for story block components
Customize share button position for circle story components
Customize share button position for openVideoPlayer API
Configure scroll navigation arrow button
Configure scroll navigation arrow button for video feed components
Configure scroll navigation arrow button for story block components
Configure scroll navigation arrow button for circle story components
Configure scroll navigation arrow button for player deck components
Configure scroll navigation arrow button for openVideoPlayer API
Customize chat style
Customize chat style for video feed components
Customize chat style for story block components
Customize chat style for circle story components
Customize chat style for player deck components
Customize chat style for openVideoPlayer API
Hide "Tap to enter livestream"
Hide "Tap to enter livestream" for video feed components
Hide "Tap to enter livestream" for story block components
Hide "Tap to enter livestream" for circle story components
Hide "Tap to enter livestream" for player deck components
Hide "Tap to enter livestream" for openVideoPlayer API
Last updated
Was this helpful?