How to embed youtube video with start and end time

How to embed youtube video with start and end time

by alison nara -
Number of replies: 3

Hi,


I have 2 questions :

1°/ When I have a link like "

", the video is embeded, it's what I want.

But when I use this kind of url : "https://www.youtube.com/embed/XXX?start=XX&end=XX", the video is not embeded, and display the url.

How to embed this second kind of url ?

2°/ The video when embeded is too small. Is there is a way to fix the width or the height ?


Regards

Nara20

Average of ratings: -
In reply to alison nara

Ang: How to embed youtube video with start and end time

by Preben Pedersen -
The auto-embed of YouTube videos only works with the regular links and not the embed links.

The simplest solution would be to turn the auto-embed off at Site Administration -> Plugins -> Media players -> Manage media players, and turn it off in VideoJS aswell at Site Administration -> Plugins -> Media players -> VideoJS player.

Then you can use the embed codes from Youtube, and change the height and width properties to your liking.
Average of ratings: Useful (1)
In reply to Preben Pedersen

Re: Ang: How to embed youtube video with start and end time

by alison nara -
Hi

Thanks for your usefull answer.
So if I understand well, editing using Html, and adding the video like this :

<iframe width="420" height="315" src="https://www.youtube.com/embed/XXXXXXXX?start=XX&amp;end=XX">
</iframe>


Thanks
Nara20
Average of ratings: Useful (1)