New Landing How can we help? Atelier Fullscreen Video: Disable Youtube Video Suggestions

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Atelier
  • #193068
    bprotected
    Member
    Post count: 51

    Hi guys,

    I am really loving working with you theme, thank you for the great work.
    Question:

    How do I disable the suggestions that are included in the youtube video’s
    in the Full Screen video element?

    Usually, If you embed a youtube iframe code you can disable the suggestions
    give after the video stops by deselecting an option in the video settings
    in youtube.

    But how do I do this with your fullscreen widget?
    Please, see video’s on the bottom of:

    http://test.paulsprinciples.nl/

    Thank you!

    #193228
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Can you add your WP login details. You maybe able to add a parameter to the YouTube URL to stop this, it really depends on how YouTube handles the embed code.

    Thanks,
    David

    #193483
    bprotected
    Member
    Post count: 51
    This reply has been marked as private.
    #193577
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Please post the username/password to allow us to get past the authentication box.

    Thanks,
    David.

    #193648
    bprotected
    Member
    Post count: 51
    This reply has been marked as private.
    #193724
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    If you are using a child theme, please copy this to your functions.php file. This contains the added &rel=0 to the YT parameters and stops related videos playing for all videos.

        if ( ! function_exists( 'sf_get_embed_src' ) ) {
            function sf_get_embed_src( $url ) {
                if ( strpos( $url, 'youtube' ) ) {
                    preg_match( '/[\\?\\&]v=([^\\?\\&]+)/', $url, $video_id );
                    $youtube_params = apply_filters( 'sf_youtube_embed_src_params', '?autoplay=1&rel=0' );
                    if ( is_ssl() ) {
                        if ( isset( $video_id[1] ) ) {
                            return 'https://www.youtube.com/embed/' . $video_id[1] . $youtube_params;
                        }
                    } else {
                        if ( isset( $video_id[1] ) ) {
                            return 'http://www.youtube.com/embed/' . $video_id[1] . $youtube_params;
                        }
                    }
                } else {
                    $url          = str_replace( 'https://', 'http://', $url );
                    $video_id     = sf_get_vimeoid( $url );
                    $vimeo_params = apply_filters( 'sf_vimeo_embed_src_params', '?title=0&byline=0&portrait=0&autoplay=1' );
                    if ( is_ssl() ) {
                        if ( $video_id != "" ) {
                            return 'https://player.vimeo.com/video/' . $video_id . $vimeo_params;
                        }
                    } else {
                        if ( $video_id != "" ) {
                            return 'http://player.vimeo.com/video/' . $video_id . $vimeo_params;
                        }
                    }
                }
            }
        }
Viewing 6 posts - 1 through 6 (of 6 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