Trying to render video in template:
1. $field = field_get_items('node', $node, 'field_media');
2. going in cycle through field ( for ( $i=0; $i < count($field); $i++ ) { ... )
3. for needed field trying to render:

<?php
$file
= converToArray($field[$i]['file']);
theme('media_youtube_video', $file);
?>

and after this I`m getting a error in server logs:
PHP Fatal error:  Call to undefined method DrupalPublicStreamWrapper::get_parameters() in ~sites\\all\\modules\\media_youtube\\includes\\themes\\media_youtube.theme.inc on line 16

Comments

Category:bug» support
Status:Active» Closed (works as designed)

You should probably be using file_view_file();