From cf38435b938eaa00036de3ad3c00735e804dbece Mon Sep 17 00:00:00 2001 From: Lars Knudsen Date: Mon, 9 Sep 2024 22:29:49 -0700 Subject: [PATCH] Add more BASE meta fields --- web/lib/bap_base.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/lib/bap_base.js b/web/lib/bap_base.js index 2c6a043..5e72827 100644 --- a/web/lib/bap_base.js +++ b/web/lib/bap_base.js @@ -289,13 +289,19 @@ const parseMetaLTVItem = (type, len, value) => { const item = { type, name }; // For now, just parse the ones we know switch (type) { + case BT_Meta.PreferredAudioContexts: case BT_Meta.StreamingAudioContexts: item.value = getIntAt(value, 0, 2); break; + case BT_Meta.ProgramInfo: case BT_Meta.Language: const decoder = new TextDecoder(); item.value = decoder.decode(value); break; + case BT_Meta.CCIDList: + // For now, just grab and store the complete byte array as is + item.value = Array.from(value); + break; default: item.value = "UNHANDLED"; break;