I am switching from the old method of using a video object and am now using an audio object since timedMetaData support was added in 10.5.
I am able to get good values for TIT2 and TPE1, but our WXXX frame is being modified in a way that I cannot translate into something usable. Due to limitations in our stream hosting provider, we are using the WXXX (user URL) frame to provide a GUID ID of the current song.
Expected result: b1872a6e-3aed-4be9-b523-936cbf06873e
Actual result:
I can't really help because I've never used ID3 frames, but I do notice it's a sort of hex ASCII representation of your GUID starting after the 0055524C00 (which would be "URL" surrounded by nulls):
62 - b
31 - 1
38 - 8
37 - 7
etc.
I can't really help because I've never used ID3 frames, but I do notice it's a sort of hex ASCII representation of your GUID starting after the 0055524C00 (which would be "URL" surrounded by nulls):
62 - b
31 - 1
38 - 8
37 - 7
etc.
Wow! Good eye! I put the whole thing in a hex to text converter and got "URL b1872a6e-3aed-4be9-b523-936cbf06873e". Now I just need to figure out how to perform that conversion in Brightscript...
Just a note for anyone else trying to convert hex to ASCII, here is my function:
function convertHexToText(hex as string) text = "" i = 0 len = Len(hex) while i < len segment = Mid(hex, i + 1, 2) ascii = Val(segment, 16) decoded = Chr(ascii) text = text + decoded i = i + 2 end while return text end function
Probably other ways to do it, but this one does the job
I did find the HexToASCII function buried in the documentation but it gave me odd errors when I tried to use it.