{% if file.type is constant('TYPE_FILE', file) %}
{% if file.mediaType is constant('TYPE_FILE_VIDEO', file) %}
{{ macro_video.video(file) }}
{% elseif file.mediaType is constant('TYPE_FILE_PDF', file) %}
{% if file.primaryFile %}
{% endif %}
{% elseif file.mediaType is constant('TYPE_FILE_SWF', file) %}
{% set dimensions=file.metadata.Composite.ImageSize|split('x') %}
{% elseif file.mediaType is constant('TYPE_FILE_AUDIO', file) %}
{% else %}
{% endif %}
{% else %}
{% if file.type is constant('TYPE_YOUTUBE', file) %}
{% trans %}Thumbnail{% endtrans %}
{% if file.getPopinPath() != false %}
{% endif %}
{% elseif file.type is constant('TYPE_LIMELIGHT', file) %}
{% if file.data.id is defined %}
{% set limeligthId = file.data.id %}
{%else%}
{% set limeligthId = file.data %}
{%endif%}
{% if file.data.manifest is defined %}
{% for i in 0.. (file.data.manifest | length -1)%}
{% set v = file.data.manifest[i] %}
{{v.width ~"x"~ v.height }}
{% endfor %}
{% else %}
callback
{% endif %}
{% elseif file.type is constant('TYPE_STREAMLIKE', file) %}
{% if file.data.id is defined %}
{% set streamlikeId = file.data.id %}
{%else%}
{% set streamlikeId = file.data %}
{%endif%}
{% if token is defined %}
{% if token != "" %}
{% else %}
{% endif %}
{% else %}
{% endif %}
{#http://cdn.streamlike.com/uc/getCode?swfskin=20&colorskin=552&player=3&code=1&controlbar=bottom&object=1&width=400&height=270&bw_mode=1&subtitle=false&med_id={{ streamlikeId }}&pid=88719ed28221e9b6#}
{% set dl = 0 %}
{% if token is defined %}
{% if token != "" %}
{% else %}
{% set dl = 1 %}
{% endif %}
{% else %}
{% set dl = 1 %}
{% endif %}
{% if dl == 1 %}
{% if file.data.manifest is defined %}
{% for i in 0.. (file.data.manifest.mp4 | length -1)%}
{% set v = file.data.manifest.mp4[i] %}
{% if v.width %}
{{"mp4 " ~ v.width ~"x"~ v.height }}
{% endif %}
{% endfor %}
{% for i in 0.. (file.data.manifest.hls | length -1)%}
{% set v = file.data.manifest.hls[i] %}
{% if v.width %}
{{"hls " ~ v.width ~"x"~ v.height }}
{% endif %}
{% endfor %}
{% for i in 0.. (file.data.manifest.mp4low | length -1)%}
{% set v = file.data.manifest.mp4low[i] %}
{% if v.width %}
{{"mp4low " ~ v.width ~"x"~ v.height }}
{% endif %}
{% endfor %}
{% for i in 0.. (file.data.manifest.idevicev1 | length -1)%}
{% set v = file.data.manifest.idevicev1[i] %}
{% if v.width %}
{{"idevicev1 " ~ v.width ~"x"~ v.height }}
{% endif %}
{% endfor %}
{% for i in 0.. (file.data.manifest.idevicev2 | length -1)%}
{% set v = file.data.manifest.idevicev2[i] %}
{% if v.width %}
{{"idevicev2 " ~ v.width ~"x"~ v.height }}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{# if file.data.manifest is not defined #}
{% if documentCollection.versionable == true %}
{% else %}
{# if file.type is constant('TYPE_FILE', file) and file.mediaType is not constant('TYPE_FILE_VIDEO', file) %}
{% endif #}
{#{% if file.type is not constant('TYPE_FILE', file) %}#}
{% if file.primaryFile and file.mediaType is constant('TYPE_FILE_VIDEO', file) %}
{% endif %}
{% if file.primaryFile and file.mediaType is constant('TYPE_FILE_IMAGE', file) %}
{% endif %}
{% if file.type == "youtube" and file.getPopinPath() != false %}
{% endif %}
{#{% endif %}#}
{% endif %}
{% if file.type is constant('TYPE_FILE', file) %}
{% if has_credential('downloadLowRes') or has_credential('downloadOriginal') %}
{% endif %}
{% if file.mediaType is constant('TYPE_FILE_PDF', file) %}
Flipbook :
{% endif %}
{% if file.mediaType is constant('TYPE_FILE_IMAGE', file) %}