Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1491895

    Hi Enfold Support Team,

    I’m having an issue with YouTube videos in the Easy Slider (Video Slide).
    My client wants a YouTube video to start at a specific time. In the video URL field I enter for example: [in Private Content]

    Unfortunately, the start time is not respected – the video always starts at 0 seconds. I have tried both &t=8s and &start=8, and also the plain watch URL with ?start=8, but none of these work in the Easy Slider. According to your video documentation and several support threads, controlling YouTube via URL parameters should basically be possible.​

    Could you please let me know

    – which exact URL syntax should be used in the “Video URL” field to achieve this, or

    – if there is a recommended workaround (e.g. shortcode, custom embed code, etc.)?

    Thank you very much in advance for your help.

    Best regards,

    Emil

    • This topic was modified 2 weeks, 6 days ago by emilconsor.
    #1491904

    you can insert to that input field:

    <iframe src="https://www.youtube.com/embed/grA5XmBRC6g?start=50&autoplay=1&mute=1" frameborder="0" allowfullscreen></iframe>
    

    but to have autoplay – you have to mute it
    yes the whole iframe code works. without the mute=1 it will wait until you click the start button (then with sound)

    But
    that’s not really a good solution. Because the video doesn’t start again when you autorotate to that slide again.

    #1491912

    Hi,

    Thank you for the inquiry.

    The video slide doesn’t accept parameters by default, but you can use this filter to adjust the video’s parameters manually.

    add_filter( 'avf_youtube_video_data', function( $data ) {
        if( !empty( $data['videoid'] ) && $data['videoid'] === 'SUZEVjv7tXM' ) {
            $data['start'] = 8;
        }
    
        return $data;
    });

    Screenshot-2025-11-28-at-1-59-12-PM

    Best regards,
    Ismael

    #1491915

    hm i did not try that because in class-avia-slideshow.php this parameter is missing on the array:

    $video_data = apply_filters( 'avf_youtube_video_data', array(
    	'autoplay' 		=> 0,
    	'videoid'		=> $video_id,
    	'hd'			=> 1,
    	'rel'			=> 0,
    	'wmode'			=> 'opaque',
    	'loop'			=> 0,
    	'version'		=> 3,
    	'autohide'		=> 1,
    	'color'			=> 'white',
    	'controls'		=> $controls,
    	'iv_load_policy'=> 3
    ));

    but: as always, it only works muted.
    Thanks Ismael – i will keep that snippet in mind. btw: then you can set an end time too:

    
    add_filter( 'avf_youtube_video_data', function( $data ) {
        if( !empty( $data['videoid'] ) && $data['videoid'] === 'G0k3kHtyoqc' ) {
            $data['start'] = 15;
    	$data['end'] = 40;
        }
        return $data;
    });

    However, the video behaves this way only when first called up. Once the slideshow has run through its first cycle, these settings are no longer taken into account. Furthermore, if you have selected autoplay, the video will be interrupted after the slider autorotation duration and the next slide will be called up.

    #1492342

    Hi Ismael and Guenni007,

    Sorry for the late response. Thank you both for getting back to me!

    I just wanted to let you know that it’s working now. Thank you both for your help.

    Best regards,

    Emil

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