Skip to content

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

Open
marc-n-dream wants to merge 9 commits intomasterfrom
feature/ENG-74-platform-capability-configuration
Open

ENG-74: Add getConfiguration() to airconsole-api#108
marc-n-dream wants to merge 9 commits intomasterfrom
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 (both 1.10.0 and beta/1.11.0). The method returns the platform capability configuration injected into the READY event by the appengine.

Changes

  • airconsole-1.10.0.js and beta/airconsole-1.11.0.js:
    • onReady stores configuration from the READY event message
    • ResetCaches clears configuration
    • New getConfiguration() method with JSDoc (screen-only note included)
  • tests/spec/methods/spec-connectivity.js: 3 Jasmine tests:
    • getConfiguration() returns the configuration object when READY fires
    • getConfiguration() returns undefined when configuration key is absent
    • getConfiguration() returns undefined before onReady fires (pre-READY guard)

Dependencies

Depends on airconsole-appengine PR #3488 being merged first — that PR injects the configuration payload into the READY event.

Testing

All existing Jasmine specs continue to pass. 3 new specs added.

Jira

ENG-74

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.
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