Player configurations (Flutter)
Configuration reference
Customize player styles
Customize player styles for video feed widget
// Configure player configuration for VideoFeed widget
final videoPlayerConfiguration = VideoPlayerConfiguration();
// Customize the video overlay CTA button style
videoPlayerConfiguration.ctaButtonStyle = VideoPlayerCTAStyle(
backgroundColor: "#2089ff",
textColor: "#ffffff",
fontSize: 14,
shape: ButtonShape.roundRectangle,
iOSFontInfo: IOSFontInfo(
fontName: "Helvetica",
systemFontStyle: IOSSystemFontStyle.italic,
systemFontWeight: IOSSystemFontWeight.heavy,
), // or ButtonShape.oval
);
// Customize the style of action button style, such as share button
videoPlayerConfiguration.actionButtonStyle = VideoPlayerActionButtonStyle(
backgroundColor: "#2089ff",
textColor: "#ffffff",
dividingLineColor: "#ffffff",
shape: ButtonShape.oval,
);
// Customize the style of cancel button style
videoPlayerConfiguration.cancelButtonStyle = VideoPlayerActionButtonStyle(
backgroundColor: "#ffffff",
textColor: "#000000",
shape: ButtonShape.oval,
);
// Specifies the appearance of the countdown timer
videoPlayerConfiguration.countdownTimerConfiguration =
CountdownTimerConfiguration(
appearance: CountdownTimerAppearanceMode.light,
);
VideoFeed(
source: VideoFeedSource.playlist,
channel: "your encoded channel id",
playlist: "your encoded playlist id",
videoPlayerConfiguration: videoPlayerConfiguration,
);Customize player styles for circle story widget
Customize player styles for story block widget
Customize player styles for openVideoPlayer API
Enable PiP(Picture in Picture)
Set up the iOS project

Set enablePictureInPicture to true on Dart side
Customize player icons
Set up iOS project

Set up Android project

Configure the icon names on the Dart side
Customize player logo
Customize Ad badge
Customize video or livestream shared URL
Customize other player configurations
Last updated
Was this helpful?