Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Arrakis90
Level 8

Issue with audio timedMetaData ID3 frame

Jump to solution

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: 

0055524C0062313837326136652D336165642D346265392D623532332D39333663626630363837336500
Tags (3)
0 Kudos
1 Solution

Accepted Solutions
renojim
Community Streaming Expert

Re: Issue with audio timedMetaData ID3 frame

Jump to solution

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.

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.

View solution in original post

3 REPLIES 3
renojim
Community Streaming Expert

Re: Issue with audio timedMetaData ID3 frame

Jump to solution

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.

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
Arrakis90
Level 8

Re: Issue with audio timedMetaData ID3 frame

Jump to solution

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

0 Kudos
Arrakis90
Level 8

Re: Issue with audio timedMetaData ID3 frame

Jump to solution

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 Smiley Happy 

I did find the HexToASCII function buried in the documentation but it gave me odd errors when I tried to use it.

Tags (3)
0 Kudos