UI Customization

Create custom controls for IAppPlayer.

Custom Controls Example

Set custom controls configuration when creating player:

dart
// Set custom controls configuration when creating player
final result = await IAppPlayerConfig.createPlayer(
  url: 'https://example.com/video.mp4',
  eventListener: (event) {},
  controlsConfiguration: IAppPlayerControlsConfiguration(
    customControlsBuilder: (controller, onPlayerVisibilityChanged) {
      return MyCustomControls(
        controller: controller,
        onPlayerVisibilityChanged: onPlayerVisibilityChanged,
      );
    },
    playerTheme: IAppPlayerTheme.custom,
  ),
);

Controls Configuration

See the API Reference for detailed IAppPlayerControlsConfiguration parameters including colors, icons, and feature toggles.