Is there a way for me to get the file url from this function without changing the javascript and without running the function?
jwplayer('jsCmgPlayer').setup({
flashplayer: 'http://website.com/player.swf',
file: 'http://website.com/0015980.mp3',
autostart: true,
'skin': 'http://www.website.com/skin.xml',
'controlbar': 'bottom',
height: 28,
width: 620
});
I want to get http://website.com/0015980.mp3 as a separate variable.
It’s not possible. If you don’t run the function you can’t access the property over the plugins API because it’s never set nor can you access it from an outer scope in your JavaScript code. The argument hash is not visible outside of this function.