BufferConfig
Configuration for video buffering behavior. Allows fine-tuning of buffer sizes and playback parameters for optimal streaming performance.Properties
Cross-Platform
Configuration for live streaming playback. See LivePlaybackParams below.
Android Properties
Minimum duration (in milliseconds) the player will attempt to keep buffered.Platform: Android only
Maximum duration (in milliseconds) the player will attempt to keep buffered.Platform: Android only
Duration (in milliseconds) of media that must be buffered for playback to start or resume following a user action such as a seek.Platform: Android only
Duration (in milliseconds) of media that must be buffered for playback to resume after a rebuffer (stall).Platform: Android only
Duration (in milliseconds) of media that must be buffered before it can be played from the back buffer.Platform: Android only
iOS Properties
The preferred duration (in milliseconds) of media that the player will attempt to retain in the forward buffer.Platform: iOS, visionOS, tvOS
The desired limit, in bits per second, of network bandwidth used for loading the current item.Use
preferredPeakBitRateForExpensiveNetworks to set a different bit rate when on an expensive network (e.g., cellular).Platform: iOS, visionOS, tvOSThe preferred maximum resolution of the video.Use
preferredMaximumResolutionForExpensiveNetworks to set a different resolution when on an expensive network (e.g., cellular).Platform: iOS, visionOS, tvOSThe desired limit, in bits per second, of network bandwidth used for loading the current item when on an expensive network (e.g., cellular).Platform: iOS, visionOS, tvOS
The preferred maximum resolution of the video when on an expensive network (e.g., cellular).Platform: iOS, visionOS, tvOS
LivePlaybackParams
Configuration for live streaming playback behavior:Minimum playback speed for catching up to target live offset.Platform: Android
Maximum playback speed for catching up to target live offset.Platform: Android
Maximum allowed live offset. The player won’t exceed this limit.Platform: Android
Minimum allowed live offset. The player won’t go below this limit.Platform: Android
Target live offset. The player will try to maintain this offset from the live edge.Platform: Android, iOS, visionOS, tvOS
Resolution
Video resolution specification:Width in pixels
Height in pixels
Examples
Android Buffer Configuration
iOS Buffer Configuration
Live Streaming Configuration
Adaptive Quality Based on Network
Platform Support
| Property | Android | iOS | visionOS | tvOS |
|---|---|---|---|---|
livePlayback.targetOffsetMs | ✓ | ✓ | ✓ | ✓ |
livePlayback.minPlaybackSpeed | ✓ | - | - | - |
livePlayback.maxPlaybackSpeed | ✓ | - | - | - |
livePlayback.maxOffsetMs | ✓ | - | - | - |
livePlayback.minOffsetMs | ✓ | - | - | - |
minBufferMs | ✓ | - | - | - |
maxBufferMs | ✓ | - | - | - |
bufferForPlaybackMs | ✓ | - | - | - |
bufferForPlaybackAfterRebufferMs | ✓ | - | - | - |
backBufferDurationMs | ✓ | - | - | - |
preferredForwardBufferDurationMs | - | ✓ | ✓ | ✓ |
preferredPeakBitRate | - | ✓ | ✓ | ✓ |
preferredMaximumResolution | - | ✓ | ✓ | ✓ |
preferredPeakBitRateForExpensiveNetworks | - | ✓ | ✓ | ✓ |
preferredMaximumResolutionForExpensiveNetworks | - | ✓ | ✓ | ✓ |
Related Types
- VideoConfig - Main video configuration type that includes buffer configuration