Forum Discussion

tim_beynart's avatar
tim_beynart
Channel Surfer
9 years ago

How to translate ID3 PRIV or GEOB to readable strings from HLS live stream?

I am trying to capture timed metadata from an HLS live stream. Using IsTimedMetaData() on the roVideoPlayerEvent, the info available is formatted like this, with either a PRIV of GEOB key:

{
    PRIV: "7777772E6E6D3D2F436F6343486879756E5968564676435A33324B6341466B436869796B6(snipped)"
}


In Javascript, we use String.fromCharCode.apply(null, new Uint8Array(buf)) to translate the arraybuffer to a string. The string is a set of name/value pairs formatted like a URL querystring.
Is there a technique in Brightscript to achieve the same result?

17 Replies