I have created a pptx using the library and am trying to include and embedded youtube clip in the presentation.
let pptx = new PptxGenJS();
let videoSlide = pptx.addNewSlide();
videoSlide.addMedia({
type: 'online',
link: 'https://www.youtube.com/embed/Dph6ynRVyUc',
x: 0,
y: 0,
w: slideWidth,
h: slideHeight
});
pptx.save(filename);
This creates a presentation with and error

After accepting this error, the media object is empty with the message "The picture can't be displayed." Also it seems to have overridden slide masters previously created. Is this no longer working properly or have I added the online media object incorrectly?
I have created a pptx using the library and am trying to include and embedded youtube clip in the presentation.
This creates a presentation with and error

After accepting this error, the media object is empty with the message "The picture can't be displayed." Also it seems to have overridden slide masters previously created. Is this no longer working properly or have I added the online media object incorrectly?