{% block resources_html %}
{% set autoStart = true %} {% for resource in entry.resources %}
{% set options = {} %} {% if resource.type.classification == 'audio' or resource.type.classification == 'video' %} {% set ratio = resource.type.classification == 'audio' ? '16:3' : '16:9' %} {% set options = { 'autostart': autoStart, 'poster': path('entry_poster', { 'type_name': entry.type.name, 'local_id': entry.localId, 'ratio': ratio }) } %} {% set autoStart = false %} {% endif %} {% if resource.properties %} {% set options = options|merge(resource.properties) %} {% endif %} {{ render(controller('ViewersBundle:Viewers:default', { 'type': resource.type.classification ~ '-' ~ resource.type.extension, 'url': attribute(content_conf, entry.type.name).view_host ~ resource.path, 'options': options })) }}
{% endfor %}
{% endblock %}