src/pyams_media/zmi/templates/video-thumbnail.pt
changeset 62 104d1289c2ad
parent 54 9ebc186dc5ff
child 63 b53d7425076d
equal deleted inserted replaced
61:f83e22210fda 62:104d1289c2ad
     9 	<video
     9 	<video
    10 		tal:define="href extension:absolute_url(context);
    10 		tal:define="href extension:absolute_url(context);
    11 					thumbnails extension:thumbnails(context);
    11 					thumbnails extension:thumbnails(context);
    12 					conversions extension:conversions(context);
    12 					conversions extension:conversions(context);
    13 					size thumbnails.get_image_size();"
    13 					size thumbnails.get_image_size();"
    14 		tal:attributes="poster string:${href}/++thumb++${size[0]}x${size[1]}.png">
    14 		tal:attributes="poster string:${href}/++thumb++${size[0]}x${size[1]}.png?_=${view/timestamp}">
    15 		<tal:loop repeat="conversion conversions.get_conversions(order=('video/webm','video/mp4','video/x-flv'))">
    15 		<tal:loop repeat="conversion conversions.get_conversions(order=('video/webm','video/mp4','video/x-flv'))">
    16 			<tal:if define="video_type extension:video_type(conversion);"
    16 			<tal:if define="video_type extension:video_type(conversion);"
    17 					condition="video_type">
    17 					condition="video_type">
    18 				<source type="video/mp4"
    18 				<source type="video/mp4"
    19 						tal:define="media_width conversions.get_conversion_width(conversion.__name__);
    19 						tal:define="media_width conversions.get_conversion_width(conversion.__name__);