Skip to content

ENG-74: Add getConfiguration() to airconsole-api#108

Open
marc-n-dream wants to merge 17 commits into
masterfrom
feature/ENG-74-platform-capability-configuration
Open

ENG-74: Add getConfiguration() to airconsole-api#108
marc-n-dream wants to merge 17 commits into
masterfrom
feature/ENG-74-platform-capability-configuration

Conversation

@marc-n-dream
Copy link
Copy Markdown
Contributor

@marc-n-dream marc-n-dream commented Mar 30, 2026

Summary

Adds getConfiguration() to airconsole-api (beta/1.11.0). The method returns the platform capability configuration injected into the READY event by the appengine.

Changes

  • beta/airconsole-1.11.0.js:
  • onReady stores configuration from the READY event message
  • New getConfiguration() method with JSDoc (screen-only note included)
  • tests/spec/methods/spec-configuration.js: Covers the different test scenarios

Dependencies

Depends on platform update to receive the configuration payload in the READY event.

Testing

All existing Jasmine specs.

Signed-off-by: marc-n-dream <marc@n-dream.com>
r: restructure the event flow to use a distinct flow
r: externalize the decision on hard vs soft fail
Store configuration from the ready event and expose it via
getConfiguration(). Returns {supportedVideoFormats, transparentVideoSupported,
unityVideoSupported, graphicsQualityTier} or undefined before onReady.
Adds Jasmine tests for both present and absent configuration.

ENG-74 Task 3
…Task 6)

Clarify that getConfiguration() is only available on the screen device,
returns undefined on controllers, and is delivered via the ready event.
Jasmine test verifying getConfiguration() returns undefined before
the onReady READY message is received — closes review finding M2.
@marc-n-dream marc-n-dream force-pushed the feature/ENG-74-platform-capability-configuration branch from 376a6d8 to 0b59523 Compare April 13, 2026 12:14
@marc-n-dream marc-n-dream marked this pull request as draft May 8, 2026 11:57
@marc-n-dream marc-n-dream force-pushed the feature/ENG-74-platform-capability-configuration branch from e863663 to 60772b7 Compare May 28, 2026 08:35
@marc-n-dream marc-n-dream force-pushed the feature/ENG-74-platform-capability-configuration branch from 60772b7 to 7e04959 Compare May 29, 2026 01:22
@marc-n-dream marc-n-dream force-pushed the feature/ENG-74-platform-capability-configuration branch 4 times, most recently from c063ea8 to 3524426 Compare May 29, 2026 03:19
@marc-n-dream marc-n-dream force-pushed the feature/ENG-74-platform-capability-configuration branch from 3524426 to 0d18fd8 Compare May 29, 2026 03:24
@marc-n-dream marc-n-dream marked this pull request as ready for review May 29, 2026 03:25
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