Skip to content

addMedia of type='online' not working? #335

Description

@lndev1

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
screen shot 2018-05-15 at 1 23 34 pm

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?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions