PHP echo inside javascript
<p>I've got jwplayer installed in wordpress and have it showing in a single.php page... the way I have it I need to get a custom field in the javascript and I;m having no luck echoing it in there. I know you cant straight up run PHP in a javascript function, hence I'm here asking noob questions :)</p>

<pre><code>&lt;script type='text/javascript'&gt;
jwplayer("lbp-inline-href-1").setup({
'flashplayer': '/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf',
'image': '/wp-content/themes/sometheme/images/vid.png',
'file': '&lt;?php echo get_post_meta($post-&gt;ID, 'video', true); ?&gt;',
'skin': '/wp-content/plugins/jw-player-plugin-for-wordpress/skins/skewd.zip',
'stretching': 'exactfit',
'controlbar': 'bottom',
'width': '640',
'height': '360'
});
&lt;/script&gt; 
</code></pre>

<p>is it possible to get </p>

<pre><code>&lt;?php echo get_post_meta($post-&gt;ID, 'video', true); ?&gt;
</code></pre>

<p>Running in there for the file path?</p>

<p>Thanks for any advice.</p>
