New Landing How can we help? Themeforest Theme Support Dante Parralax Full Width Video

Viewing 15 posts - 1 through 15 (of 18 total)
  • Posted in: Dante
  • #105500
    wirralweb
    Member
    Post count: 32

    Hi,

    I’m using a YouTube video in the parralax element of page builder.

    I want to know if I can remove the relative videos that youtube provides at the end. I know how to do this with embedded iframe’s but not with the page builder.

    Any help please.

    Thanks

    #105747
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Not sure if Youtube allow that. I suggest that you make a search in google relative to “remove the related videos youtube”. Sorry ๐Ÿ™

    -Rui

    #105796
    wirralweb
    Member
    Post count: 32

    Yes they do allow it – it’s an option for all videos, it usually requires rel=”0″ at the end of the embed code url, however the video player does not use the embed URL for that.

    #105814
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    I made a search on google and found this settings in an article, and they suggest adding the rel=”0″ like you said above. Just add it after the video code like this image
    http://i0.wp.com/www.wptavern.com/wp-content/uploads/2013/11/uncheck.jpg

    Also found this WordPress plugin
    http://wordpress.org/plugins/hide-youtube-related-videos/

    Hope it helps

    -Rui

    #105978
    wirralweb
    Member
    Post count: 32

    Thanks Rui,

    The problem is – I am not using an Iframe to embed the video, I am using the full screen video shortcode which has a different type of url with a youtube short url at the end. If I try to add the &rel=0 to the end – the video wont play.

    I tried the plugin too, bud sadly that doesn’t work either.

    #106276
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Please provide us with a link and login so I can check this for you

    – Kyle

    #106372
    wirralweb
    Member
    Post count: 32
    This reply has been marked as private.
    #106702
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Add this to your custom css:

    .ytp-endscreen-content {
    display: none;
    }

    – Kyle

    #106711
    wirralweb
    Member
    Post count: 32

    Still shows related videos this end i’m afraid.

    #106714
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please insert given below code at functions.php of child theme or parent theme.

    function sf_get_embed_src($url) {
    			if (strpos($url,'youtube')){
    				preg_match('/[\\?\\&]v=([^\\?\\&]+)/', $url, $video_id);
    				if (isset($video_id[1])) {
    					return 'http://www.youtube.com/embed/'. $video_id[1] .'?autoplay=1&wmode=transparent&rel=0';
    				}
    			} else {
    				preg_match('/http:\/\/vimeo.com\/(\d+)$/', $url, $video_id);
    				if (isset($video_id[1])) {
    					return 'http://player.vimeo.com/video/'. $video_id[1] .'?title=0&byline=0&portrait=0&autoplay=1&wmode=transparent';
    				}
    			}
    		}

    Thanks ๐Ÿ™‚
    With Best Regards
    Mohammad

    #106716
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    I will forward this to Ed to see if there’s a solution

    – Kyle

    #106724
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have resolved the issue so please check. I have inserted given below code at functions.php.

    function sf_get_embed_src($url) {
                if (strpos($url,'youtube')){
                    preg_match('/[\\?\\&]v=([^\\?\\&]+)/', $url, $video_id);
                    if (isset($video_id[1])) {
                        return 'http://www.youtube.com/embed/'. $video_id[1] .'?autoplay=1&wmode=transparent&rel=0';
                    }
                } else {
                    preg_match('/http:\/\/vimeo.com\/(\d+)$/', $url, $video_id);
                    if (isset($video_id[1])) {
                        return 'http://player.vimeo.com/video/'. $video_id[1] .'?title=0&byline=0&portrait=0&autoplay=1&wmode=transparent';
                    }
                }
            }

    Thanks ๐Ÿ™‚
    With Best Regards
    Mohammad

    #106740
    wirralweb
    Member
    Post count: 32

    Just checked Mohammad – brilliant thank you so much
    Very much appreciated!!

    #106741
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Great, thanks Mohammad

    – Kyle

    #106785
    wirralweb
    Member
    Post count: 32

    Is there a similar solution for the video player in page builder.

    For example here http://imaginewebdevelopment.info/mobile-patrols/

    Thanks

Viewing 15 posts - 1 through 15 (of 18 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register