Parameter reference

Complete reference for the FastPix Flutter Player SDK classes, parameters, and configuration options.

FastPixPlayerController

Main controller class for playback management.

FunctionDescription
initialize(dataSource, configuration)Initialize the player with a data source and configuration
play()Start playback
pause()Pause playback
seekTo(position)Seek to a specific position
setVolume(volume)Set volume (0.0 to 1.0)
updateDataSource(dataSource)Update the current data source
dispose()Clean up resources
currentStateGet current player state
isPlayingReturns true if playing
isPausedReturns true if paused
isFinishedReturns true if playback is finished
getCurrentPosition()Get current playback position
getTotalDuration()Get total video duration

FastPixPlayerDataSource

Class to configure the streaming source.

ParameterTypeRequiredDescription
playbackIdStringYesUnique identifier for your stream
formatEnumYesStream format (for example, FastPixStreamingFormat.hls)
titleStringNoOptional title for the stream
descriptionStringNoOptional description
customDomainStringNoCustom streaming domain
tokenStringNoToken for secured playback
streamTypeBooleanNotrue if live stream
headersMap<String, String>NoCustom HTTP headers
cacheEnabledBooleanNoEnable or disable caching
loopBooleanNoEnable or disable looping
qualityControlObjectNoAttach a FastPixPlayerQualityControl object

FastPixPlayerConfiguration

Player behavior customization.

PropertyDescription
controlsConfigurationConfigure UI controls
autoPlayConfigurationAutoplay behavior
qualityConfigurationQuality selection logic

FastPixPlayerQualityControl

Advanced quality control.

PropertyDescription
resolutionTarget resolution (auto, p360, p480, etc.)
minResolutionMinimum resolution
maxResolutionMaximum resolution
renditionOrderRendition order (default_, asc, desc)

Widgets

WidgetDescription
FastPixPlayerCore video player widget with full playback controls
FastPixPlayerStateRepresents player state

Player states

StateDescription
initializedPlayer created but not ready
readyReady to play
playingActively playing
pausedPaused state
bufferingWaiting for data
finishedPlayback completed
errorError encountered

Display options (FastPixAspectRatio)

ValueDescription
fitFit to screen
ratio16x9Standard 16:9
ratio4x3Classic 4:3
ratio1x1Square 1:1
stretchFill entire screen

Autoplay settings

OptionBehavior
enabledAlways autoplay
disabledNo autoplay
wifiOnlyAutoplay only on Wi-Fi

Supported resolutions (FastPixResolution)

ValueResolution
autoAutomatic
p360360p
p480480p
p720720p
p10801080p
p14401440p
p21602160p (4K)