Skip to content

Bridge liveOffset player configuration on Android - #930

Closed
tvanlaerhoven wants to merge 1 commit into
developfrom
fix/android-playerconfig-liveoffset
Closed

tvanlaerhoven wants to merge 1 commit into
developfrom
fix/android-playerconfig-liveoffset

Conversation

@tvanlaerhoven

@tvanlaerhoven tvanlaerhoven commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Bridge the liveOffset property from PlayerConfiguration on Android. The native THEOplayerConfig.Builder no longer exposes it, so it is applied via SourceAdapter as the default live offset for sources that do not specify their own liveOffset.
  • Clean up PlayerConfigAdapter: shared nullable ReadableMap accessors, single lookup of nested ads/ima configuration, and unconditional IMA partner playerType/playerVersion.
  • Fix ads.ima.sessionID being ignored on Android (it read the ppid value instead).

Test plan

  • :react-native-theoplayer:compileDebugKotlin passes in e2e/android
  • :react-native-theoplayer:testDebugUnitTest passes
  • Verify a live source plays at the configured offset when liveOffset is set in PlayerConfiguration

Generated with Devin


Devin Review

The liveOffset property in PlayerConfiguration was only bridged at the
source level on Android. Since the native SDK no longer exposes it on
THEOplayerConfig.Builder, apply it as the default live offset for
sources that do not specify their own.

Also clean up PlayerConfigAdapter: shared nullable accessors for
ReadableMap, single lookup of nested ads/ima configuration, and fix
sessionID reading the ppid value instead.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

Comment thread android/src/main/java/com/theoplayer/source/SourceAdapter.kt
@tvanlaerhoven
tvanlaerhoven deleted the fix/android-playerconfig-liveoffset branch October 9, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant