Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #422656

    Hi I was wondering if it is possible to set the starting point of a video background (youtube).

    For example, that the video starts playing at 20 seconds. Just for clarification I’m not asking for a delay but I want to skip the begin of a video, is this possible?

    Hope to hear from you

    Best regards
    Chris,

    #422659

    Hi Chris!

    You can add

    &t=20s

    to the end of your YouTube link to start at 20th second as following – https://www.youtube.com/watch?v=Ft_-5kuYY-E&t=20s

    Best regards,
    Yigit

    #422727

    Thanks for your quick reply Yigit!

    The problem is: this solution doesn’t seem to work for video backgrounds in content sections when I past my background url youtube link (e.g: https://www.youtube.com/watch?v=81hhkBaIvNM&t=20s ) it gives an error.

    Hope that you can help me out on this one.

    Best regards
    Chris

    #423339

    Hi!

    Unfortunately, youtube url start parameter will not work in the color section area because it’s not using html5 video players. You need to manually trim or crop the video. https://developers.google.com/youtube/player_parameters#start

    Cheers!
    Ismael

    #1223488

    Hey guys
    Is there a way to end a youtube video not in a specific element, just in the video elemient at a certain time? the workaround from https://www.youtube.com/watch?v=SZylUYtldno does not seem to work in enfold.
    Thanks
    TIna

    #1223743

    Hi,

    Yes, that should be possible. You can use the pauseVideo or stopVideo function from the Youtube player API.

    // https://developers.google.com/youtube/iframe_api_reference

    You can find an example here:

    // https://developers.google.com/youtube/iframe_api_reference#Getting_Started

      function onPlayerStateChange(event) {
            if (event.data == YT.PlayerState.PLAYING && !done) {
              setTimeout(stopVideo, 6000);
              done = true;
            }
          }
          function stopVideo() {
            player.stopVideo();
          }
    
    

    Best regards,
    Ismael

    #1223919

    Hi Ismael
    thanks for the research, that’s a good start however all videos have a different length.
    it’s for a website that has about 100 videos.
    Thanks
    Tina

    #1224521

    Hi,

    You will have to find all videos in the page and define the duration for each of them. Each player or video has a unique id, so maybe you can use that to specify a different duration for each item when you iterate through them.

    This is the markup of the video frame or player.

    <iframe class="av_youtube_frame" id="player_12_928568916_1097519820" ... more attributes here></iframe>
    

    This is beyond the scope of support unfortunately, so you might have to hire a consultant or a freelance developer.

    Best regards,
    Ismael

    #1224711

    Hi Ismael
    thanks so much for your help! I really appreciate all that you do!
    Tina

    #1224719

    just one moment – brainstorming
    there is a little plugin specialized on background- video. This plugin: advanced wordpress backgrounds is capable to play even youtube or vimeo videos from a start to an endpoint as background.
    See here with your video from 20sec to 55sec. You only have to set a few smaller css entries to adapt it to Enfold.
    The movie will be put into the appropriate section using the code-block element and a shortcode from the plugin.
    https://webers-testseite.de/youtube-background/
    Password: Enfold

    But i try to find a solution with Enfold Tools only.

    • This reply was modified 4 years, 5 months ago by Guenni007.
    #1224733

    Guenni007 I am interested in what you are brainstorming about :) Danke für Deine Hilfe!

    • This reply was modified 4 years, 5 months ago by webdesignphx.
    #1224788

    if you put this in your color-section as video link:

    https://www.youtube.com/watch?v=81hhkBaIvNM?autoplay=1&cc_load_policy=1&enablejsapi=1&playsinline=1&mute=1&color=white&iv_load_policy=3&start=20&end=30&loop=1&playlist=81hhkBaIvNM

    it starts at the right point – but on loop it starts then from the beginning. The loop=1 has effect on that – you don’t need the playlist ( Contrary to the API instructions of the past ) – don’t know why the loop goes to the real starting point.

    No, not now – this little plugin is currently the only method I know that is able to loop the video including the start time

    • This reply was modified 4 years, 5 months ago by Guenni007.
    #1224961

    Hey Günni that is amazing! Thanks so much for your help!
    Tina

    #1225068

    Hey Tina,

    I’m glad you were able to find a resolution.

    Best regards,
    Jordan Shannon

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