Try this easy method for embedding YouTube videos onto your Duda website for a much cleaner end-of-video user experience.
November 15, 2019 update: The desired behaviour of showing the video thumbnail at the end of the video no longer seems to work.
The Duda platform provides essential functionality to develop awesome websites suitable for many small to medium size businesses. However, when it comes to embedding videos, the native Duda video widget is rather limited with the ability to only embed videos hosted on YouTube, Vimeo or DailyMotion. Therefore, for good or for bad, the embedded videos take on the playback features implemented by whichever of the three platforms you happen to use. One such YouTube feature is the suggested video end-screen displayed at the conclusion of playback.
Use HTML widget to embed YouTube videos on Duda websites
In some applications it's preferred to display the original video thumbnail image instead of the suggested video end-screen at the end of video playback. Although, there's no obvious way to accomplish that change with the native Duda Video widget, it can be achieved through the addition of a code snippet added using the Duda HTML widget. The two viewports of the same YouTube video demonstrate the difference.
Upon initial inspection, there is no difference between how each viewport is displayed. The difference occurs at the conclusion of playback. Play each of the videos to the end see the difference.
Embedded using native video widget
Embedded using snippet added to HTML widget
Example of HTML iframe snippet for embedding YouTube videos
For anyone familiar with HTML, the actual code required to embed the video without the end-screen is straightforward and looks something like this: