How to crop youtube clips and embed them

Mar 12, 2020

Hi,

 

There is a great youtube clip that is perfect for a course but it is too long.

I have followed instructions here on how to use codes ( &end= ) and embed the video, however its not working.

I have also used YTcropper but those embed codes do not work either.

how do I crop a youtube clip?

 

4 Replies
david scully

Thanks for replying- I have tried the method in your video and come up with this code:

 <iframe width="560" height="315" src="https://www.youtube.com/embed/xPrF-x3AzDE?start=2?&end=503" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

 

however its not cropping it at 5:03- any ideas?

Crystal Horn

Hi David! So close... 😄

The 503 in your embed code should be 303, because that's the timestamp in seconds where you'd like the video to end. I also removed the second question mark; you only need the first one before you add the parameters.

I used this code for your video:

<iframe src="https://www.youtube.com/embed/xPrF-x3AzDE?start=2&end=303" frameborder="0"></iframe>

...and it worked for me. I also like to strip out extra parameters to keep the embed code simple. Let me know if that helps!

This discussion is closed. You can start a new discussion or contact Articulate Support.