Add url parameter to avoid embedding the video - correct size V04.060
authorYves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
Tue, 21 Nov 2017 12:38:41 +0100
changeset 1406 cb671a36143a
parent 1405 7851f1ebb31d
child 1407 415fcdc24695
Add url parameter to avoid embedding the video - correct size
web/client.php
--- a/web/client.php	Tue Nov 21 12:09:55 2017 +0100
+++ b/web/client.php	Tue Nov 21 12:38:41 2017 +0100
@@ -286,7 +286,11 @@
                 <div class="ifwrap" id="vlWrap">
                     <div id="videoLivePlayer">
                     <?php if(!$embed_video): ?>
-                        <img src='<?php echo($big_visual_url); ?>' />
+                        <?php if(!$embed): ?>
+                          <img src='<?php echo($big_visual_url); ?>' />
+                        <?php else: ?>
+                          <img width=<?php echo($videoWidth); ?> height=<?php echo($videoHeight); ?> src='<?php echo($big_visual_url); ?>' />
+                        <?php endif; ?>
                     <?php elseif(isset($config['islive_embed']) && $config['islive_embed']):?>
                         <?php echo str_replace(array('{{width}}','{{height}}'), array($videoWidth, $videoHeight), $translate->_('config__islive_embed')); ?>
                     <?php else: ?>