tim_beynart
9 years agoChannel Surfer
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:
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?
{
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?