Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #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”&gt;
    <div class=”avia-iframe-wrap”>
    <iframe width=”1500″ height=”844″ src=”http://www.youtube.com/embed/G0k3kHtyoqc?feature=oembed&wmode=opaque&#8221; 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
    Su

    #938332

    Hey 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,
    Yigit

    #938893

    Hi
    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
    Su

    #939155

    Hi Su,

    Please try using this plugin – https://wordpress.org/plugins/hide-youtube-related-videos/ :)

    Best regards,
    Yigit

    #939342

    Hi
    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
    Su

    #940028

    Hi,

    Could you please try adding “&rel=0” (without double quotes) to the end of your Youtube link?

    Best regards,
    Yigit

    #940462

    Hi

    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=0

    you 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=0

    have also tried
    /*https://www.youtube.com/watch?v=QQaGgPVLM88?rel=0
    and the you tube ‘share’ URL
    /*https://youtu.be/QQaGgPVLM88

    Thanks for any input on this you have.
    Su

    • This reply was modified 6 years, 7 months ago by Sujohn.
    #940468

    so 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 it

    
    https://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

    #940477

    on 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)

    #940535

    Thanks so much for your input. Exactly what I needed. You totally nailed it.

    #940542

    I would love it if Youtube videos would launch in lightbox by default, or have that option in the ALB element…

    #940562

    Hey!


    @sujohn
    Glad @guenni007 could help! :)

    @guenni007
    Thanks for your help :)

    @goldengate415
    I will discuss it with our devs :)

    Best regards,
    Yigit

    #941644

    a 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/

    #941830

    Hi,

    Thanks for sharing @guenni007 :-)

    Best regards,
    Rikard

    #942012

    Hi

    And thanks once again from me.

    Su

    #942132

    Hi Su,

    Thanks for the feedback, should we close this thread then?

    Best regards,
    Rikard

Viewing 16 posts - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.