I am facing an issue with a variable created by Flowplayer and accessed via javascript. When I output the variable directly on the page, it simply displays 'object Object', indicating that it might be an array. Without knowing the specific names of the objects within the array, how can I extract and parse the data?
It seems like I'm overlooking a basic concept here as parsing data from an unknown array has never been a task before.
Additional Information:
- The goal is to extract onCuePoint caption data from an RTMP video stream
- The use of .valueOf() leads to the same result
- Below is the code snippet showing the issue with 'object Object' output:
streamCallbacks: ['onFI'],
clip:
{
live:true,
provider: 'rtmp',
autoPlay: true,
url:'test1',
onFI:function(clip, info)
{
document.getElementById("onFI").innerHTML += "Data: " + info;
}
}
Any insights or assistance would be greatly appreciated. Thank you!