I have a field with a Blip.tv URL in it. How do I convert that URL to the proper HTML embed code?

I've tried using theme_emvideo_video_embed() but I guess I just don't understand the function arguments.

If someone could show me some code, I'd sure appreciate it.

Comments

dpearcefl’s picture

Status: Active » Closed (fixed)

Found my own solution. Assuming the node is already loaded:
$embedcode = '<embed src="http://blip.tv/play/'. $node->field_embed_media[0][data][flv][embed_code][0] .'" type="application/x-shockwave-flash" width="'. $width .'" height="'. $height .'" allowscriptaccess="always" allowfullscreen="true"></embed>';