equal
deleted
inserted
replaced
5 thumbnail thumbnails.get_thumbnail('{0}x{1}'.format(size[0], size[1]), 'png'); |
5 thumbnail thumbnails.get_thumbnail('{0}x{1}'.format(size[0], size[1]), 'png'); |
6 global media_width 0; |
6 global media_width 0; |
7 global min_width 0; |
7 global min_width 0; |
8 global previous_type None;" |
8 global previous_type None;" |
9 controls="${'controls' if controls else None}" |
9 controls="${'controls' if controls else None}" |
10 poster="${href}/++thumb++${size[0]}x${size[1]}.png?_=${tales:timestamp(thumbnail)}"> |
10 poster="${href}/++thumb++${size[0]}x${size[1]}.png?_=${tales:timestamp(thumbnail)}" |
|
11 data-ams-sources='${conversions.get_sources(request)}'> |
11 <tal:loop repeat="conversion conversions.get_conversions(order=('video/mp4','video/webm','video/ogg','video/x-flv'))"> |
12 <tal:loop repeat="conversion conversions.get_conversions(order=('video/mp4','video/webm','video/ogg','video/x-flv'))"> |
12 <tal:var define="video_type tales:video_type(conversion); |
13 <tal:var define="video_type tales:video_type(conversion); |
13 min_width ((media_width or 0) + 1) if (video_type == previous_type) else 0; |
14 min_width ((media_width or 0) + 1) if (video_type == previous_type) else 0; |
14 global media_width conversions.get_conversion_width(conversion.__name__); |
15 global media_width conversions.get_conversion_width(conversion.__name__); |
15 media_src tales:absolute_url(conversion); |
16 media_src tales:absolute_url(conversion); |