-
AuthorPosts
-
February 11, 2018 at 4:12 pm #1091380
Hi,
your JA Healthcare have a JoomlArt Advanced Custom Module that can play videos streamed from youtube.
The problem with this is that youtube completes the video by showing suggested videos (some rather inappropriate for my site which within education of the human body – guess the rest).
How can I avoid this / stop youtube from suggesting videos at the end, but instead have a loop for replay of my own uploaded video?(I have tried to add this: youtube=cl8T0KNe-0Y?autoplay=1&loop=1&rel=0 in the module area for the youtube ID, but this does not work, the video still plays fine, but there are still suggested videos at the end – above may need to be done in coding – and if so, please state where and the file name to look for, thanks.)
Thank you
Regards
Tina
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 14, 2018 at 6:53 am #1091770Hi,
You can try with this tweak:
1) Go to file: root/templates/ja_healthcare/acm/video/tmpl/style-1.php2) Look for the function japlayvideo at approx line 200 and add the param: playerVars: {rel:0}, it looks like this:
function javideoPlay() { jQuery('div.acm-video').addClass('playing'); player = new YT.Player('videoplayer', { height: '390', width: '640', videoId: '<?php echo $video_link; ?>', playerVars: {rel:0}, events: { 'onReady': onPlayerReady, 'onStateChange': onPlayerStateChange } }); }
Regards
1 user says Thank You to Saguaros for this useful post
AuthorPostsViewing 2 posts - 1 through 2 (of 2 total)This topic contains 1 reply, has 2 voices, and was last updated by Saguaros 6 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Suggested videos youtube
Viewing 2 posts - 1 through 2 (of 2 total)