-
AuthorPosts
-
April 2, 2015 at 5:51 pm #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,April 2, 2015 at 5:56 pm #422659Hi 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,
YigitApril 2, 2015 at 7:24 pm #422727Thanks 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
ChrisApril 4, 2015 at 4:36 am #423339Hi!
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!
IsmaelJune 17, 2020 at 9:03 pm #1223488Hey 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
TInaJune 18, 2020 at 3:25 pm #1223743Hi,
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,
IsmaelJune 19, 2020 at 12:43 am #1223919Hi 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
TinaJune 22, 2020 at 9:33 am #1224521Hi,
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,
IsmaelJune 22, 2020 at 8:16 pm #1224711Hi Ismael
thanks so much for your help! I really appreciate all that you do!
TinaJune 22, 2020 at 8:50 pm #1224719just 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: EnfoldBut i try to find a solution with Enfold Tools only.
- This reply was modified 4 years, 5 months ago by Guenni007.
June 22, 2020 at 10:26 pm #1224733Guenni007 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.
June 23, 2020 at 9:41 am #1224788if 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.
June 23, 2020 at 11:28 pm #1224961Hey Günni that is amazing! Thanks so much for your help!
TinaJune 24, 2020 at 7:38 am #1225068Hey Tina,
I’m glad you were able to find a resolution.
Best regards,
Jordan Shannon -
AuthorPosts
- You must be logged in to reply to this topic.