How to render youtube field? How can I render a Youtube field to get the full code for embedding? 

field_view_field('node', $o, 'field_testvideo', $display)


What are the settings for $display?
$display should be one of view modes (full, teaser, rss or ...) or display setting array:

$display = array(
    'label' =&gt; 'hidden',
    'type' =&gt; 'file_rendered',
    'settings' =&gt; array(
        'file_view_mode' =&gt; 'media_original',
    ),
);