Show app name in receiver selector if known based on app ID

This commit is contained in:
hensm
2020-01-13 23:09:54 +00:00
parent 2154fe4beb
commit a23ae9efa8
11 changed files with 89 additions and 13 deletions

23
ext/src/lib/knownApps.ts Normal file
View File

@@ -0,0 +1,23 @@
"use strict";
/**
* TODO: Just keep a list of IDs and cache names from the Google API:
* https://clients3.google.com/cast/chromecast/device/app?a=[appId]
*
* Also, localization since the API supports it.
*/
export default {
"CA5E8412": "Netflix"
, "233637DE": "YouTube"
, "17608BC8": "Prime Video"
, "CC32E753": "Spotify"
, "5E81F6DB": "BBC iPlayer"
, "03977A48": "BBC Sounds"
, "AA666EDD": "Crunchyroll"
, "10AAD887": "All 4"
, "9AC194DC": "Plex"
, "CD7B9F59": "Global Player Live"
, "B3DCF968": "Twitch"
, "B88B034A": "Dailymotion"
, "CC1AD845": "TEST"
} as Record<string, string>;