Closed (fixed)
Project:
Embedded Media Field
Version:
6.x-1.9
Component:
Embedded Video Field
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2010 at 19:23 UTC
Updated:
12 Apr 2010 at 15:36 UTC
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
Comment #1
dpearcefl commentedFound 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>';