I'm trying to add a YouTube video to a page:
IFrame iFrame = new IFrame("https://www.youtube.com/watch?v=sLTvQnjEkRU");
iFrame.setHeight("315px");
iFrame.setWidth("560px");
iFrame.setAllow("accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture");
iFrame.getElement().setAttribute("allowfullscreen", true);
iFrame.getElement().setAttribute("frameborder", "0");
add(iFrame);
but FireFox unable to display it. How to properly add YouTube video to the page in Vaadin23 ?