Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Wed Aug 15, 2018 2:03 pm

Hi

I'm trying to insert/embed a remotely hosted video into a presentation.

When trying it like this:
Code: Select all
slide.Shapes.AppendVideoMedia(pathToVideo, rect);


I get an exception:
URI-Format not supported.
(translated from german... maybe its a bit off)

When trying it like this:
Code: Select all
slide.Shapes.InsertVideoMedia(index, pathToVideo, rect);


There is no exception but powerpoint crashes when navigating to the slide with the video.

What is the correct way to embed a remotely hosted video?

Thanks in advance

siflu
 
Posts: 1
Joined: Wed Aug 15, 2018 1:57 pm

Thu Aug 16, 2018 10:00 am

Hello,

Thanks for your inquiry.
Please download the Spire.Presentation Pack Version:3.8 and use below code to embed a remotely hosted video. If there is still a problem, please provide your video path for further investigation.
Code: Select all
slide.Shapes.AppendVideoMedia(pathToVideo,rect,false);

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Tue Aug 21, 2018 2:23 am

Hello,

Greetings from E-iceblue.
Did the code fix your issue?
Your feedback will be greatly appreciated.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Return to Spire.Presentation