I'm having some trouble getting ID3 tags out of a stream. In my particular case, I'm using the ID3 tags as a beacon for ad events, so I'm putting ad information in the tags.
When I look at my stream in a web player that has an onMetadata event, I get metadata that looks like this:
metadata: {frames: [{key: "TXXX", info: "adID", data: "http://localhost/ads/testVAST.xml"}], TXXX: "http://localhost/ads/testVAST.xml"}
This pretty much gives the information that I am looking for.In my Roku app, I have this code to get the ID3 tag:
msg = wait(0, video.GetMessagePort())
if type(msg) = "roVideoScreenEvent"
if msg.isTimedMetaData() then
// ID3 Tag Received
theMetadata = msg.GetInfo()
print theMetadata
end if
end if
When the same ID3 tag shown above comes through on the Roku app, t
his is what I get when I print theMetadata:<Component: roAssociativeArray> =
{
TXXX: dID
}
The data is quite a bit sparser, plus that "dID" bit sort of looks like a malformed version of the "adID" string. What
I really want is to be able to retrieve the ad url.
How can I get the other data like my web player is seeing?
Thanks,
Ron