A full example showing how to set up the FastPix Flutter Player with video playback, configuration, and resource cleanup.
This example demonstrates a complete Flutter app with player initialization, playback, and cleanup:
FastPixPlayerController is created in initState and disposed in dispose to prevent memory leaks.FastPixPlayerDataSource.hls() constructs the data source using a playback ID. Optional fields include title, description, thumbnailUrl, token, customDomain, and qualityControl.FastPixPlayerConfiguration() uses default settings. Customize it with controlsConfiguration, autoPlayConfiguration, and qualityConfiguration.FastPixPlayer widget renders the video. Set width, height, and aspectRatio to control the layout.Replace 'your-playback-id-here' with your actual FastPix playback ID.