javascript - YouTube iframe player API - OnStateChange 0 not firing -
as title states, i implementing video via youtube iframe api, wanting fire event once video ends. i can player events "playing" , "pausing" (1,2), not video ended (0). "an error occured" message in youtube player. adding jsfiddle's comment... any welcome, thanks! edit: this fiddle works: http://jsfiddle[.]net/nspdm/14/ note: ff did not fire because of greasemonkey script: http://userscripts.org/scripts/show/114002