I've been hacking player.inc to add some new flash vars based on fields in a given content type and have been half successful. If I could figure out how to get the node id from the video id I think I should be able to have everything working perfectly! Does anyone have any pointers?

Thanks!

Comments

leetamus’s picture

Here's the function i'm messing with. This works great on the site, but once it's embeded, the id gets messed up. :( I'm not much for php knowledge

function _op_video_get_jwflash_vars($video, $autostart) {
	$node = node_load(arg(1));
	$flashvars[] = 'linkBack=' . $node->field_link_overlay[0]['value'];
	$flashvars[] = 'pageTitle=' . $node->title;
jbrown’s picture

Status: Active » Closed (won't fix)