Skip to content

Feature/expose bandwidth estimates - #892

Draft
wvanhaevre wants to merge 7 commits into
developfrom
feature/expose-bandwidth-estimates
Draft

Feature/expose bandwidth estimates#892
wvanhaevre wants to merge 7 commits into
developfrom
feature/expose-bandwidth-estimates

Conversation

@wvanhaevre

@wvanhaevre wvanhaevre commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Added the Metrics API, accessible through player.metrics, with currentBandwidthEstimate returning the player's estimated available bandwidth in bits per second. On iOS/tvOS this value is only reported for THEOlive/HESP streams.

Depends on unreleased iOS Native 11.8.0

@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 2 potential issues.

Open in Devin Review

Comment thread ios/metrics/THEOplayerRCTMetricsAPI.swift
Comment thread react-native-theoplayer.podspec
Comment thread example/ios/Podfile.lock
Comment on lines 1519 to 1521
- THEOplayer-Integration-THEOads (~> 11.4)
- THEOplayer-Integration-THEOlive (~> 11.4)
- THEOplayerSDK-core (~> 11.4)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@wvanhaevre Would it make sense to run pod install in example/ios to update the lock with the updated dependency in the podspec?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

There seem two be 3 naming conventions

Family Examples
THEOplayer{Native,Web}Adapter THEOplayerNativeAdsAdapter/THEOplayerWebAdsAdapter, THEOplayerNativeCastAdapter/THEOplayerWebCastAdapter
{Native,Web}Adapter TheoLiveNativeAdapter/TheoLiveWebAdapter, MediaControlNativeAdapter/MediaControlWebAdapter, THEOAdsNativeAdapter/THEOAdsWebAdapter
Adapter, no platform marker AbrAdapter, TextTrackStyleAdapter — both native-only, with no web counterpart

The two new MetricsAdapters have been named using different conventions. I would suggest either:

  • renaming MetricsAdapter to MetricsNativeAdapter and THEOplayerWebMetricsAdapter to MetricsWebAdapter
    or
  • renaming MetricsAdapter to THEOplayerNativeMetricsAdapter

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Updated.

@wvanhaevre
wvanhaevre force-pushed the feature/expose-bandwidth-estimates branch from 33d9c29 to 40e586b Compare August 24, 2026 08:52
Use the {Feature}{Native,Web}Adapter convention (as with TheoLive,
MediaControl, THEOAds) so the native/web metrics adapters are consistent
with each other and the rest of the codebase.

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

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

2 participants