-
AuthorPosts
-
April 6, 2018 at 6:01 pm #938329
Hi
I am battling with how to show you tube videos without having related videos at the end and
seem to be stuck with exactly the same problem with many others on the forum seem to have had.
I can only get a properly responsive player by using the You Tube URL and not the Embed code, but if the URL is used there is no option not to have related videos at the end of the video (an absolute
no no for any business and additionally any click on the player takes the viewer off the site). If a you tube URL is used ?rel=0 does not work.Then I found this on the code from ishmael on the forum https://kriesi.at/support/topic/avia-youtube-video-autoplay/ and though eureka
<div class=”avia-video avia-video-16-9 ” itemprop=”video” itemtype=”http://schema.org/VideoObject”>
<div class=”avia-iframe-wrap”>
<iframe width=”1500″ height=”844″ src=”http://www.youtube.com/embed/G0k3kHtyoqc?feature=oembed&wmode=opaque” frameborder=”0″ allowfullscreen=””></iframe>
</div>
</div>but it does not work – related videos still show.
I have tried using the you tube embed code in a code block, this stops related videos but the player creates large black areas top and bottom in mobile view so the size of the viewer has to be quite small to be usable and too small for desktop viewing.
Is there an answer to this problem?
Thanks
SuApril 6, 2018 at 6:03 pm #938332Hey Su,
Related videos are disabled by default in Enfold 4.2.5. You might be using an older version of the theme. Please make sure you are using Enfold 4.2.6 – kriesi.at/documentation/enfold/updating-your-theme-files/ and simply insert Youtube full links and related videos should not show up :)
Regards,
YigitApril 8, 2018 at 10:05 pm #938893Hi
Thanks – You’re right I was only using Enfold 4.0
I have got the you tube videos working fine in the video Avia Builder now.
Is there any way to disable the related videos if I used an image with a link to open the videos in a light box or is that hoping for too much?
Thanks
SuApril 9, 2018 at 1:20 pm #939155Hi Su,
Please try using this plugin – https://wordpress.org/plugins/hide-youtube-related-videos/ :)
Best regards,
YigitApril 9, 2018 at 6:20 pm #939342Hi
Yes I did try this plugin before I contacted but it does not work with images linked with either the url or embed code.
What I have seen mentioned on this forum is having an image which links to the you tube video and then opens in a lightbox.I have installed the plugin you mentioned and set up a test page here so you can see what I am getting at
The first video uses the enfold video player and a URL – seems to work fine with no related videos at the end.
The second is linked with an embed code – this opens the video full screen (which then cannot be closed) and shows related videos.
The third image is linked with a url and when the image is clicked it opens in a light box but has related videos at the end.I’m thinking it might not be possible to use the lightbox route without also having the related videos popping up at the end?
Thanks
SuApril 10, 2018 at 9:48 pm #940028Hi,
Could you please try adding “&rel=0” (without double quotes) to the end of your Youtube link?
Best regards,
YigitApril 11, 2018 at 12:27 pm #940462Hi
Adding the &rel=0 to the end of a you tube ‘watch’ URL seems to cause a playback error message.
I have updated the test page and added text to all the images showing what URL and URL embeds are used with each one.
In a nutshell
you tube URL Embeds opens full screen &rel=0 works when used
eg
/*https://www.youtube.com/embed/QQaGgPVLM88?rel=0you tube URL ‘watch’ does open in a lightbox, &rel=0 causes a playback error message
eg
/*https://www.youtube.com/watch?v=QQaGgPVLM88
or
/*https://www.youtube.com/watch?v=QQaGgPVLM88&rel=0have also tried
/*https://www.youtube.com/watch?v=QQaGgPVLM88?rel=0
and the you tube ‘share’ URL
/*https://youtu.be/QQaGgPVLM88Thanks for any input on this you have.
Su- This reply was modified 6 years, 8 months ago by Sujohn.
April 11, 2018 at 12:44 pm #940468so this is your url on youtube:
https://www.youtube.com/watch?v=QQaGgPVLM88
the first option to set must have a Questionmark
?rel=0
every following option gets an ampersand &the ecver=2 is to have not on pause the related videos too ! so try to add following options
if you don’t like the autoplay – get rid of ithttps://www.youtube.com/watch?v=QQaGgPVLM88?autoplay=1&ecver=2&showinfo=0&loop=1&rel=0
https://www.youtube.com/watch?v=QQaGgPVLM88?autoplay=1&ecver=2&showinfo=0&loop=1&rel=0
the video alb does not accept those links
–
but an image with that manually added link does the trick – you only have to add the
&iframe=true
https://www.youtube.com/watch?v=QQaGgPVLM88?autoplay=1&ecver=2&showinfo=0&loop=1&rel=0&iframe=true
by the way – boardsoft changes ever ampersand & to a different sign – so it does not work here on click
but see and click the image on the left:
https://webers-testseite.de/videos-on-lightbox/for your special interest and following: https://kriesi.at/support/topic/how-to-play-youtube-video-full-width-on-going-issue-mobile-and-responsive/#post-937554
April 11, 2018 at 1:12 pm #940477on the right side of that test page there is a code-block in a container.
The codeblock has no checkmark at all and the content is:<div> <iframe width="720" height="405" src="https://www.youtube.com/embed/QQaGgPVLM88?enablejsapi=1&loop=1&rel=0&ecver=2&showinfo=0&color=white&iv_load_policy=3" gesture="media" allow="encrypted-media" allowfullscreen></iframe> </div>
and you see on pause the video there are no overlays at all ( that is the ecver=2 option)
April 11, 2018 at 3:41 pm #940535Thanks so much for your input. Exactly what I needed. You totally nailed it.
April 11, 2018 at 4:16 pm #940542I would love it if Youtube videos would launch in lightbox by default, or have that option in the ALB element…
April 11, 2018 at 5:07 pm #940562Hey!
@sujohn Glad @guenni007 could help! :)
@guenni007 Thanks for your help :)
@goldengate415 I will discuss it with our devs :)Best regards,
YigitApril 13, 2018 at 7:03 pm #941644a small supplement, because I see that you offer a whole range of different Youtube films on the page:
here is a small tutorial how to get one youtube goes to play and stops the other one.:
https://webers-testseite.de/youtube-videos/April 14, 2018 at 6:57 am #941830April 14, 2018 at 6:48 pm #942012Hi
And thanks once again from me.
Su
April 15, 2018 at 6:48 am #942132 -
AuthorPosts
- You must be logged in to reply to this topic.