We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Insert online video into a document using a URL

Does anyone know how to fix this problem? I thought that you can just try to download a video from YouTube


Following code example shows how to insert an online video into a document using a URL. If your requirement is different, please share some more detail about your query.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

builder.InsertOnlineVideo("https://youtu.be/t_1LYZ102RA", 360, 270);

// We can watch the video from Microsoft Word by clicking on the shape.
doc.Save(ArtifactsDir + "DocumentBuilder.InsertVideoWithUrl.docx");