-
AuthorPosts
-
January 2, 2016 at 11:48 pm #837183
how can i get the video on the home page to autoplay?
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
January 4, 2016 at 4:12 pm #838303Hi @finfletc,
Please open file templates/ja_events_ii/acm/slideshow/tmpl/style-owl.php and go to the last line where you can see :
autoplay: true
change to (with uppercase, by default if set to true, the value is 5000 or you can use smaller value for shorter delay time) :
autoPlay: true
January 4, 2016 at 10:33 pm #838509hello,
thanks for your reply,
is this the autoplay for the slideshow or the video?
I was asking about the video module on the home page of the ja eventsii template.Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
January 6, 2016 at 11:20 am #840062Hi @finfletc,
Try open file templatesja_events_iiacmvideotmplstyle-1.php and look for this code :
<div class="col-sm-5 video-player"><div class="video-wrapper"> <?php if ($videoLink) { ?> <div id="videoplayer"> <?php if (count($arr) == 2) : switch (trim($arr[0])) { case 'vimeo': ?> <iframe id="player1" src="https://player.vimeo.com/video/<?php echo $video_link; ?>?api=1&player_id=player1" width="630" height="354" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> <?php break; case 'youtube': ?> <img width="100%" height="100%" src="http://img.youtube.com/vi/<?php echo $video_link; ?>/maxresdefault.jpg" /> <?php break; default: break; } endif; ?> </div> <a <?php if (count($arr) == 2) {if (trim($arr[0]) == 'youtube') {echo ' onclick="javideoPlay();" ';}} ?> title="Play" class="btn btn-border btn-border-inverse btn-rounded btn-play"><span class="sr-only">Watch the video</span><i class="fa fa-play"></i></a> <?php } ?> </div></div>
then change as below :
<div class="col-sm-5 video-player"><div class="video-wrapper playing"> <?php if ($videoLink) { ?> <iframe id="videoplayer" width="640" height="390" src="https://www.youtube.com/embed/<?php echo $video_link; ?>?autoplay=1" frameborder="0" allowfullscreen></iframe> <?php } ?> </div></div>
James Weston FriendJames Weston
- Join date:
- September 2014
- Posts:
- 1030
- Downloads:
- 11
- Uploads:
- 70
- Thanks:
- 408
- Thanked:
- 16 times in 1 posts
April 5, 2016 at 8:57 am #909473I was looking fro a similar solution. This helps by making it auto start but I would like to work out how to get the video to auto loop as sometimes when the video ends it shows other videos from youtube and sometimes the images that appear don’t look good on the site.
April 5, 2016 at 11:33 am #909583Hello
and how to set lest the film loops?
As the movie ends YOUTUBE tells other films – I do not want such an effect.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
-
AuthorPosts
This topic contains 7 replies, has 5 voices, and was last updated by Ninja Lead 8 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum