Removed video preview template
authorThierry Florac <tflorac@ulthar.net>
Sun, 04 Mar 2018 17:13:03 +0100
changeset 441 8833e5e698d3
parent 440 b6554140ba7d
child 442 5dc8421cbcfc
Removed video preview template
src/pyams_content/component/paragraph/zmi/templates/video-preview.pt
--- a/src/pyams_content/component/paragraph/zmi/templates/video-preview.pt	Sun Mar 04 16:37:14 2018 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-<h3 tal:condition="view.title"
-	tal:content="view.title">title</h3>
-<div tal:condition="view.body"
-	 tal:content="structure view.body">body</div>
-<div tal:condition="view.description"
-	 tal:content="structure extension:html(view.description)">Description</div>
-<div class="flowplayer"
-	 data-ams-plugins="flowplayer"
-	 data-ams-plugin-flowplayer-async="false"
-	 data-ams-callback="PyAMS_media.initPlayer"
-	 tal:attributes="data-ams-plugin-flowplayer-src extension:resource_path('pyams_media.skin:flowplayer');
-					 data-ams-plugin-flowplayer-css extension:resource_path('pyams_media.skin:functional_css');
-					 data-ams-callback-source extension:resource_path('pyams_media.skin:pyams_media');">
-	<video
-		tal:define="video context.data;
-					href extension:absolute_url(video);
-					thumbnails extension:thumbnails(video);
-					conversions extension:conversions(video);
-					size thumbnails.get_image_size();"
-		tal:attributes="poster string:${href}/++thumb++${size[0]}x${size[1]}.png">
-		<tal:loop repeat="conversion conversions.get_conversions(order=('video/webm','video/mp4','video/x-flv'))">
-			<source type="video/mp4"
-					tal:define="media_width conversions.get_conversion_width(conversion.__name__);
-								video_type extension:video_type(conversion);"
-					tal:condition="video_type"
-					tal:attributes="type video_type;
-									src extension:absolute_url(conversion);
-									media 'all and (max-width: {0}px)'.format(media_width) if media_width else None;" />
-		</tal:loop>
-	</video>
-</div>