Hello,
I believe I have found a bug with the Javascript custom streamCallback event.
I've been testing extensively following the Flowplayer documentation and it appears the player is correctly firing a callback function for the "onFI" stream event, but it is not passing the info object as a second argument:
I created a test page to demonstrate:
http://undefined.ca/flash/flowbug.html
Please enable the Firebug console to see the results. The event is triggering, but the info object is empty.
Here's the sample FLV:
http://undefined.ca/flash/sample.flv
And a dump using flvdump. You can see the onFI events clearly have "sd" and "st" properties which we are trying to access:
http://undefined.ca/flash/flvdump.txt
Documentation ("Registering custom NetStream and NetConnection events"):
http://flowplayer.org/documentation/events/clip.html
Your assistance is appreciated. Thanks in advance!
I believe I have found a bug with the Javascript custom streamCallback event.
I've been testing extensively following the Flowplayer documentation and it appears the player is correctly firing a callback function for the "onFI" stream event, but it is not passing the info object as a second argument:
var player = flowplayer("player", "flowplayer/flowplayer-3.1.3.swf", {
// define what custom events should be listened to by the player
streamCallbacks: ['onFI'],
// a clip object with our listener functions
clip: {
// this gets called when my custom NetStream event fires
onFI: function(clip, info) {
console.log("onFI event triggered");
// convert the info object to a string
var str="";
for(prop in info) {
str+=prop + " value :"+ info[prop]+"
";
}
console.log(' -> info (obj): ' + info);
console.log(' -> info (string): ' + str);
console.log(' -> number of args : ' + arguments.length);
}
}
});
I created a test page to demonstrate:
http://undefined.ca/flash/flowbug.html
Please enable the Firebug console to see the results. The event is triggering, but the info object is empty.
Here's the sample FLV:
http://undefined.ca/flash/sample.flv
And a dump using flvdump. You can see the onFI events clearly have "sd" and "st" properties which we are trying to access:
http://undefined.ca/flash/flvdump.txt
Documentation ("Registering custom NetStream and NetConnection events"):
http://flowplayer.org/documentation/events/clip.html
Your assistance is appreciated. Thanks in advance!