Skip to content

Commit

Permalink
Merge pull request #509 from bitmovin/feat/initialBandwidthEstimateOv…
Browse files Browse the repository at this point in the history
…erride

Feat/initial bandwidth estimate override
  • Loading branch information
saravanans-github authored Aug 28, 2024
2 parents e09a028 + afcf8f7 commit cb1cd91
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [Unreleased]

### Added

- Android: `AdaptationConfig.initialBandwidthEstimateOverride` to override the selection of the optimal media tracks before actual bandwidth data is available

## [0.28.0] - 2024-08-07

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ private fun String.toTimelineReferencePoint(): TimelineReferencePoint? = when (t
*/
private fun ReadableMap.toAdaptationConfig(): AdaptationConfig = AdaptationConfig().apply {
withInt("maxSelectableBitrate") { maxSelectableVideoBitrate = it }
withInt("initialBandwidthEstimateOverride") { initialBandwidthEstimateOverride = it.toLong(); }
}

/**
Expand Down
8 changes: 8 additions & 0 deletions src/adaptationConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,12 @@ export interface AdaptationConfig {
* Can be set to `undefined` for no limitation.
*/
maxSelectableBitrate?: number;

/**
* The initial bandwidth estimate in bits per second the player uses to select the optimal media tracks before actual bandwidth data is available. Overriding this value should only be done in specific cases and will most of the time not result in better selection logic.
*
* @platform Android
* @see https://cdn.bitmovin.com/player/android/3/docs/player-core/com.bitmovin.player.api.media/-adaptation-config/initial-bandwidth-estimate-override.html
*/
initialBandwidthEstimateOverride?: number;
}

0 comments on commit cb1cd91

Please sign in to comment.