Player configurations (React Native)
Configuration reference
Customize player styles
// Configure player configuration for VideoFeed component
<VideoFeed
style={{ height: 200 }}
source="discover"
videoPlayerConfiguration={{
// Customize the video overlay CTA button style
ctaButtonStyle: {
backgroundColor: '#2089ff',
textColor: '#ffffff',
fontSize: 14,
iOSFontInfo: {
fontName: 'Helvetica',
systemFontStyle: 'italic',
systemFontWeight: 'bold',
},
},
countdownTimerConfiguration: { appearance: 'light' },
}}
/>;
// Configure player configuration for StoryBlock component
<StoryBlock
style={{ height: 200 }}
source="discover"
storyBlockConfiguration={{
// Customize the video overlay CTA button style
ctaButtonStyle: {
backgroundColor: '#2089ff',
textColor: '#ffffff',
fontSize: 14,
iOSFontInfo: {
fontName: 'Helvetica',
systemFontStyle: 'italic',
systemFontWeight: 'bold',
},
},
countdownTimerConfiguration: { appearance: 'light' },
}}
/>;
// Configure player configuration for openVideoPlayer API
FireworkSDK.getInstance().openVideoPlayer(url, {
// Customize the video overlay CTA button style
ctaButtonStyle: {
backgroundColor: '#2089ff',
textColor: '#ffffff',
fontSize: 14,
iOSFontInfo: {
fontName: 'Helvetica',
systemFontStyle: 'italic',
systemFontWeight: 'bold',
},
},
countdownTimerConfiguration: { appearance: 'light' },
});Enable PiP(Picture in Picture)
Set up the iOS project

Set enablePictureInPicture to true on JS side
Customize player button icons
Set up the iOS project

Set up the Android project

Config player button icon names on the JS side
Customize player logo
Customize Ad badge
Customize other player configurations
Last updated
Was this helpful?