diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-03-26 19:54:06 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-03-26 19:54:06 +0200 |
commit | 46ac337b6e118b91a25170a0f0d7cef3a823611b (patch) | |
tree | dfcd0ebc2a10ca50a0457bd62f2f713ce606d4bc | |
parent | 45f6d5a2a7591e601f76566ed1e9863f263f3fd0 (diff) |
Use stem, width and height also for live video.
-rw-r--r-- | show.mdwn | 9 | ||||
-rw-r--r-- | templates/video.mdwn | 7 |
2 files changed, 12 insertions, 4 deletions
@@ -1,4 +1,11 @@ [[!meta script="/usr/share/javascript/jquery/jquery.min.js"]] [[!meta script="/usr/share/javascript/bootstrap/js/bootstrap.min.js"]] -[[!template id=video name="live-video" title="FREE Live Webinar" start="1494946800000"]] +[[!template id=video + name="live-video" + title="FREE Live Webinar" + start="1494946800000" + stem=omni/show0 + width=640 + height=360 +]] diff --git a/templates/video.mdwn b/templates/video.mdwn index ae42b5d..e2223f1 100644 --- a/templates/video.mdwn +++ b/templates/video.mdwn @@ -5,13 +5,14 @@ <script type="text/javascript" src="/js/app/counter.js"></script> </TMPL_IF> <div class="embed-responsive"> -<TMPL_IF stem><video <TMPL_IF name>id="<TMPL_VAR name>"</TMPL_IF> class="embed-responsive-item" playsinline autoplay muted poster="//media.couchdesign.dk/<TMPL_VAR stem>.jpg" controls> +<video <TMPL_IF name>id="<TMPL_VAR name>"</TMPL_IF> class="embed-responsive-item" playsinline autoplay muted poster="//media.couchdesign.dk/<TMPL_VAR stem>.jpg" controls> +<TMPL_UNLESS start> <TMPL_UNLESS nomp4><source src="//media.couchdesign.dk/<TMPL_VAR stem>.webm" type="video/webm" /> </TMPL_UNLESS><TMPL_UNLESS nowebm><source src="//media.couchdesign.dk/<TMPL_VAR stem>.mp4" type="video/mp4" /> -</TMPL_UNLESS><img src="//media.couchdesign.dk/<TMPL_VAR stem>.jpg" width="<TMPL_VAR width>" height="<TMPL_VAR height>" +</TMPL_UNLESS></TMPL_UNLESS><img src="//media.couchdesign.dk/<TMPL_VAR stem>.jpg" width="<TMPL_VAR width>" height="<TMPL_VAR height>" title="Sorry, the video formats provided are not supported by your browser." /> </video> -<TMPL_ELSE><video <TMPL_IF name>id="<TMPL_VAR name>"</TMPL_IF> class="embed-responsive-item" playsinline autoplay muted controls /> +<TMPL_IF start> [[!meta script="/js/lib/adapter.js"]] [[!meta script="/js/lib/janus.nojquery.js"]] <script type="text/javascript" src="/js/app/live-video.js"></script> |