Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract Chromecast firmware version #439

Merged
merged 1 commit into from
Aug 13, 2020

Conversation

joeyparrish
Copy link
Contributor

Rather than put the CPU type as the OS version, for Chromecast, the
firmware version would be much more useful.

For example:

Mozilla/5.0 (X11; Linux aarch64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/76.0.3809.81 Safari/537.36 CrKey/1.42.183786

This should produce:

os: { name: "Chromecast", version: "1.42.183786" }

Instead of:

os: { name: "Linux", version: "aarch64" }

Rather than put the CPU type as the OS version, for Chromecast, the
firmware version would be much more useful.

For example:

  Mozilla/5.0 (X11; Linux aarch64) AppleWebKit/537.36 (KHTML, like
  Gecko) Chrome/76.0.3809.81 Safari/537.36 CrKey/1.42.183786

This should produce:

  os: { name: "Chromecast", version: "1.42.183786" }

Instead of:

  os: { name: "Linux", version: "aarch64" }
shaka-bot pushed a commit to shaka-project/shaka-player that referenced this pull request Aug 12, 2020
Our Chromecast tests have started reporting the device as "Linux
aarch64", which is not useful.  This moves us to a fork of
ua-parser-js which can recognize a Chromecast and report its firmware
version.  A pull request has been submitted at
faisalman/ua-parser-js#439.

Change-Id: I158cc2b0dd6fb6ec03825ac9648b05a3096da31b
@faisalman faisalman merged commit 150ad0b into faisalman:develop Aug 13, 2020
@joeyparrish
Copy link
Contributor Author

Thank you!

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