Complete integration example
A full example showing how to set up the FastPix Flutter Player with video playback, configuration, and resource cleanup.
Full app example
This example demonstrates a complete Flutter app with player initialization, playback, and cleanup:
Key points
- The
FastPixPlayerControlleris created ininitStateand disposed indisposeto prevent memory leaks. FastPixPlayerDataSource.hls()constructs the data source using a playback ID. Optional fields includetitle,description,thumbnailUrl,token,customDomain, andqualityControl.FastPixPlayerConfiguration()uses default settings. Customize it withcontrolsConfiguration,autoPlayConfiguration, andqualityConfiguration.- The
FastPixPlayerwidget renders the video. Setwidth,height, andaspectRatioto control the layout.
Replace 'your-playback-id-here' with your actual FastPix playback ID.