jplayer / jPlayer

jPlayer : HTML5 Audio & Video for jQuery
http://jplayer.org/
Other
4.6k stars 1.47k forks source link

All errors in event handlers are muted #306

Open vlinder opened 9 years ago

vlinder commented 9 years ago

Is there a reason why all javascript errors in jPlayer event handlers are muted?

Maybe its just the loadedmetadata event. But is there a reason or is this a bug? Kind of dangerous and hard to debug code otherwise.

try {
    __flash__toXML(jQuery('#liveAudio0').jPlayer("jPlayerFlashEvent", "jPlayer_loadedmetadata", ({
        version: "2.9.0",
        volume: 0.226,
        muted: false,
        currentTime: 0,
        seekPercent: 0,
        currentPercentRelative: 0,
        videoWidth: 0,
        srcSet: true,
        currentPercentAbsolute: 0,
        duration: 0,
        videoHeight: 0,
        src: "...",
        paused: false
    })));
} catch(e) {
    "<undefined/>";
}