I am trying to customise the start and end times of YouTube videos so that, for example, when people click the links the video starts from 5s and ends at 10s.
Most tutorials say that inserting a video link followed by ?start=76&end=150
should produce the desired effect, but I can't seem to make it work.
Examples of things I've tried:
;end=120
;end=82&version=3
I also tried using websites like iframely/try , but that also produced an error
I'd appreciate some more information or possible solutions. Thank you!
(PS, I thought it might be helpful to include that I have never worked with API before and am not sure how to access developer features beyond what's included in standard YouTube!)
I am trying to customise the start and end times of YouTube videos so that, for example, when people click the links the video starts from 5s and ends at 10s.
Most tutorials say that inserting a video link followed by ?start=76&end=150
should produce the desired effect, but I can't seem to make it work.
Examples of things I've tried:
https://www.youtube/embed/nmLBrhiZxLU?si=1O2LUWiNIH2iG76I?start=0&end=120
https://youtube.googleapis/v/OfBZ1hT02vY?si=kWE9ihr1QLO0240f?start=06&end=82&version=3
I also tried using websites like iframely/try , but that also produced an error
I'd appreciate some more information or possible solutions. Thank you!
(PS, I thought it might be helpful to include that I have never worked with API before and am not sure how to access developer features beyond what's included in standard YouTube!)
Share Improve this question asked Mar 19 at 19:03 Claire FenertyClaire Fenerty 1 1- Please edit your question and include your code. – Linda Lawton - DaImTo Commented Mar 19 at 20:27
1 Answer
Reset to default 1From what I can tell you are adding this code ?start=0&end=120
to the end of the first URL example. But thats not correct: If the original URL already contains a question mark ?
, then you should add &start=0&end=120
instead of ?start=0&end=120
.
So your example URLs
https://www.youtube/embed/nmLBrhiZxLU?si=1O2LUWiNIH2iG76I?start=0&end=120
https://youtube.googleapis/v/OfBZ1hT02vY?si=kWE9ihr1QLO0240f?start=06&end=82&version=3
Should actually look like this
https://www.youtube/embed/nmLBrhiZxLU?si=1O2LUWiNIH2iG76I&start=0&end=120
https://youtube.googleapis/v/OfBZ1hT02vY?si=kWE9ihr1QLO0240f&start=06&end=82&version=3
I found that this URL pattern works best for creating excerpts of a video but it won't work on videos that the creator does not allow people to embed on other sites:
https://www.youtube/embed/nmLBrhiZxLU?start=0&end=120&autoplay=1
And the second URL can be rewritten like that:
https://www.youtube/embed/OfBZ1hT02vY?start=06&end=82&autoplay=1
I hope that's clear