DEMO play starts automatic

20.02.2013 01:32
#1
backingtracks
User backingtracks
Name: Henry
09.02.2013
Posts: 45
Quote
DEMO play starts automatic

Is it possible to let the demo start automatic after hitting PLAY DEMO?

 
20.02.2013 20:07
#2
backingtracks
User backingtracks
Name: Henry
09.02.2013
Posts: 45
Quote
Aw: DEMO play starts automatic

Is it possible to let the mediaplayer start playing automatic?

 
20.02.2013 20:14
#3
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16485
Quote
Aw: DEMO play starts automatic

components\com_jshopping\templates\default\product\playmedia.php

jQuery('#video').media( { width: <?php print $this->config->video_product_width; ?>, height: <?php print $this->config->video_product_height; ?>, autoplay: 1} );

autoplay: 1 - not work.

See http://malsup.com/jquery/media/

 
20.02.2013 22:55
#4
backingtracks
User backingtracks
Name: Henry
09.02.2013
Posts: 45
Quote
Aw: DEMO play starts automatic

Thank you again, I will try to solve this riddle.

 
28.02.2013 14:48
#5
backingtracks
User backingtracks
Name: Henry
09.02.2013
Posts: 45
Quote
Aw: DEMO play starts automatic

I can't get the autoplay to work, is there another way to solve this?

 
03.03.2013 17:47
#6
backingtracks
User backingtracks
Name: Henry
09.02.2013
Posts: 45
Quote
Aw: DEMO play starts automatic

Solved it!

com_jshopping/templates/default/product/demofiles.php

Change:

<td class="download"><a target="_blank" href="<?php print $this->config->demo_product_live_path."/".$demo->demo;?>" onClick="popupWin = window.open('<?php print SEFLink("index.php?option=com_jshopping&controller=product&task=showmedia&media_id=".$demo->id);?>', 'video', 'width=<?php print $this->config->video_product_width;?>,height=<?php print $this->config->video_product_height;?>,top=0,resizable=no,location=no'); popupWin.focus(); return false;"><img src = "<?php print $this->config->live_path.'images/play.gif'; ?>" alt = "Demo" title = "play"/></a></td>

Into this:

<td class="download"><a target="_new" href="<?php print $this->config->demo_product_live_path."/".$demo->demo;?>" onClick="popupWin = window.open(this.href,'demo','toolbar=no,menubar=no,directories=no,status=no,menubar=no,location=top,width=300,height=10,scrollbars=yes'); popupWin.focus(); return false;"><img src = "<?php print $this->config->live_path.'images/play.gif'; ?>" alt = "Demo" title = "Play Demo File"/></a></td>

Works for me :-)

@webdesigner:
Is the code tecnically correct? I'm not a programmer.


Letzte Änderung: 03.03.2013 18:08
 
03.03.2013 18:38
#7
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16485
Quote
Aw: DEMO play starts automatic

Yes.

 
04.03.2013 01:42
#8
backingtracks
User backingtracks
Name: Henry
09.02.2013
Posts: 45
Quote
Aw: DEMO play starts automatic

I would like to hide the pop-up player completely, is it possible?


Letzte Änderung: 04.03.2013 01:47
 
04.03.2013 07:59
#9
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16485
Quote
Aw: DEMO play starts automatic

change template.
use other javascript...

 
04.03.2013 15:54
#10
backingtracks
User backingtracks
Name: Henry
09.02.2013
Posts: 45
Quote
Aw: DEMO play starts automatic

THIS is perfect!

<?php
if (count ($this->demofiles)){?>
<div class="list_product_demo">
<table>
<?php foreach($this->demofiles as $demo){?>
<tr>
<td class="descr"><?php print $demo->demo_descr?></td>
<?php if ($this->config->demo_type == 1) { ?>
<td class="download"><a href="<?php print $this->config->demo_product_live_path."/".$demo->demo;?>"><script type="text/javascript" src="http://mediaplayer.yahoo.com/js"></script></a></td>
<?php } else { ?>
<td class="download"><a target="_blank" href="<?php print $this->config->demo_product_live_path."/".$demo->demo;?>"><?php print _JSHOP_DOWNLOAD;?></a></td>
<?php }?>
</tr>
<?php }?>
</table>
</div>
<?php } ?>


Letzte Änderung: 04.03.2013 16:28
 
03.07.2013 02:48
#11
HMB
Joomshopping forum user no avatar
Name: HMB
18.05.2013
Posts: 52
Quote
Aw: DEMO play starts automatic

Yahoo Webplayer is discontinued.........

 
Copyrights MAXXmarketing GmbH. All Rights Reserved