You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Javascript Event streamCallback firing, but no data Created Sep 29, 2009

This thread is solved

Views: 2337     Replies: 4     Last reply Oct 15, 2010  
You must login first before you can use this feature

morden

Posts: 7

Registered:
Sep 1, 2009

Javascript Event streamCallback firing, but no data

Posted: Sep 29, 2009

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:


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!

morden

Posts: 7

Registered:
Sep 1, 2009

Still present in version 3.1.4

Posted: Oct 14, 2009

Reply to: Javascript Event streamCallback firing, but no data, from morden
I recently updated to version 3.1.4 and the previously reported bug is still present:

http://undefined.ca/flash/flowbug.html

Can I please get an indication from your team on whether or not you are planning to fix this bug? Thanks in advance.

Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

» Still present in version 3.1.4

Posted: Oct 18, 2009

Reply to: Still present in version 3.1.4, from morden
This issue is now fixed in our current development version. Checked the available properties in the info object with following code:


onFI: function(clip, info) {
    console.log("onFI event triggered");
    for (var prop in info) {
        console.log("prop " + prop + ": " + info.prop);
    }
}

morden

Posts: 7

Registered:
Sep 1, 2009

» » Still present in version 3.1.4

Posted: Dec 7, 2009

Reply to: » Still present in version 3.1.4, from Anssi
Thank you. Confirmed fixed in 3.1.5.

Cheers!

thilmkt

Posts: 5

Registered:
Oct 12, 2010

sorry for reopen

Posted: Oct 15, 2010

Reply to: » » Still present in version 3.1.4, from morden
But I`m getting this bug with 3.2.5

events are being fired but info object is empty