Skip to content

Commit

Permalink
Merge pull request #418 from bitmovin/feature/expose-softwaredecoding…
Browse files Browse the repository at this point in the history
…-for-ads-tweak

Expose `TweaksConfig.preferSoftwareDecodingForAds` on Android
  • Loading branch information
dweinber authored Mar 29, 2024
2 parents 93200aa + ec9d3f9 commit 801f99d
Show file tree
Hide file tree
Showing 3 changed files with 14 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

- `preferSoftwareDecodingForAds` in `TweaksConfig` to use software decoding for ads, which can be useful for low-end Android devices

## [0.19.0] (2024-03-22)

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ fun ReadableMap.toTweaksConfig(): TweaksConfig = TweaksConfig().apply {
withBoolean("useDrmSessionForClearPeriods") { useDrmSessionForClearPeriods = it }
withBoolean("useDrmSessionForClearSources") { useDrmSessionForClearSources = it }
withBoolean("useFiletypeExtractorFallbackForHls") { useFiletypeExtractorFallbackForHls = it }
withBoolean("preferSoftwareDecodingForAds") { preferSoftwareDecodingForAds = it }
}

/**
Expand Down
7 changes: 7 additions & 0 deletions src/tweaksConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,11 @@ export interface TweaksConfig {
* @platform Android
*/
useFiletypeExtractorFallbackForHls?: boolean;
/**
* Specifies whether the player should prefer software decoding over hardware decoding for ad playback.
* This only affects ads playback, the player will still prefer hardware decoding for the main content.
*
* @platform Android
*/
preferSoftwareDecodingForAds?: boolean;
}

0 comments on commit 801f99d

Please sign in to comment.