Player configurations (iOS)
Customize player styles
Customize player styles for video feed components
var config = VideoFeedContentConfiguration()
// 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 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 icons 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 other player configurations for video feed components
Customize player icons for story block components
Customize other player configurations for circle story components
Customize other player configurations for player deck components
Customize other player configurations for openVideoPlayer API
Customize other player configurations
Customize other player configurations for video feed components
Customize player icons for story block components
Customize other player configurations for circle story components
Customize other player configurations for player deck components
Customize other player configurations for openVideoPlayer API
Last updated
Was this helpful?