YouTube Embed with custom start time

It doesn’t work for me.
Are there any other settings I missed?

Please post the shortcode, and your call to the shortcode from markdown.

Thank you.
Here is the full code of the shortcode that is into the file named youtubestartend.html saved under /layouts/shortcodes/

<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden;">
    <iframe src="http://www.youtube-nocookie.com/embed/{{ index .Params 0 }}?start={{ index .Params 1 }}&end={{ index .Params 2}}"
    style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" allowfullscreen frameborder="0" title="YouTube Video"></iframe>
</div>

The shortcode I use in my post is: {{< youtubestartend xxxx timestart timeend >}}

This too, please.

Can you please paste an actual example of how you are calling the shortcode.

{{< youtubestartend xfQb_dKJMNs 340 1140 >}}

Works fine for me on Google Chrome. What isn’t working?

I tried Firefox and Safari.
It appears a white space without the video.

Works fine for me on Firefox.

Do you have a public page where this fails?

Yes, I have.
The page is: About me | NicFab Blog
You can see at he end before the footer.

Open your browser’s webtools and look at the console messages:

You are serving your site over https, but your shortcode calls the youtube api via http.

Indeed!
I changed the path inside youtubestartend.html and now it works.
@jmooring you are a valuable professional, indeed.
Thank you once again.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.