Skip to main content

Overridden BoxFit

You can dynamically override the fit parameter defined in PlayerConfiguration during runtime using the setOverriddenFit method.

Implementation Example

// Changes the video fit to 'contain'
betterPlayerController.setOverriddenFit(BoxFit.contain);