For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
StatusSupportDiscussionsLog inSign Up
Docs HomeAPI ReferenceVideo on DemandAI FeaturesLive StreamingVideo PlayerVideo DataCloud PlayoutRecipes
Docs HomeAPI ReferenceVideo on DemandAI FeaturesLive StreamingVideo PlayerVideo DataCloud PlayoutRecipes
  • Player SDKs
    • Introduction
  • Web player
    • Install the FastPix web player
    • Play uploaded videos
    • Handle playback errors
  • Android player
    • Install FastPix Android player
    • Set up the player
    • Play uploaded videos
    • Handle playback errors
  • iOS player
    • Install FastPix iOS player
    • Play uploaded videos
    • Handle playback errors
  • Flutter player
    • Install FastPix Flutter player
    • Play uploaded videos
    • Handle playback errors
      • Parameter reference
      • Changelog
LogoLogo
StatusSupportDiscussionsLog inSign Up
On this page
  • FastPixPlayerController
  • FastPixPlayerDataSource
  • FastPixPlayerConfiguration
  • FastPixPlayerQualityControl
  • Widgets
  • Player states
  • Display options (FastPixAspectRatio)
  • Autoplay settings
  • Supported resolutions (FastPixResolution)
Flutter playerReference

Parameter reference

Was this page helpful?
Previous

Changelog

Next
Built with

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)