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.

Tue May 03, 2016 4:11 pm

I've been looking through the documentation at http://www.e-iceblue.com/Tutorials/API/ ... tions.html

I'm finding the documentation on AppendVideoMedia and InsertVideoMedia to be somewhat lacking.

For AppendVideoMedia, I've successfully used it to link to locally hosted files, but how would you link to remote files, such as http://www.sample-videos.com/video/mp4/ ... 0p_1mb.mp4
If I attempt to do AppendVideoMedia(URL, rectangle), I cannot play the video and I get an error saying "The linked file was unavailable and can't be opened."

For InsertVideoMedia, how is this different from AppendVideoMedia? Why does it have no IVideo return type?
What does index represent? Am I supposed to add the video to some collection in the document and the retrieve it using the index? How would I go about that?

For either of these options, why can't I open with PowerPoint and then edit the URL of these video objects that are embedded?

Thanks for your help,

Ben

benmr
 
Posts: 6
Joined: Thu Mar 10, 2016 8:56 pm

Wed May 04, 2016 9:34 am

Hello Ben,

Thanks for your kind feedback.
I try to add the video into ppt manually, but failed. Could you please share your method how to do it with us?

Thank you in advance.
Caroline
E-iceblue support team
User avatar

caroline.zhang
 
Posts: 291
Joined: Mon Mar 07, 2016 9:22 am

Wed May 04, 2016 2:55 pm

In Microsoft Office PowerPoint 2010, you can open up a blank presentation, go to the Insert Tab, and then select "Video From Web Site..."

Go to https://www.tools4noobs.com/online_tools/youtube_xhtml/ and put in the URL of any online video like https://www.youtube.com/watch?v=ul6EQ8JUDHA

Generate the embed code, and paste that into the dialog box for "Video From Web Site..."

I would still like my questions answered about AppendVideoMedia and InsertVideoMedia. Apparently if I transfer that PPT to another computer, links to those local files are broken, which means the video is not embedded but it is linked.

benmr
 
Posts: 6
Joined: Thu Mar 10, 2016 8:56 pm

Thu May 05, 2016 6:12 am

Hello Ben,

Thanks for your kind reply very much.
Regarding this issue that the video is not embedded but it is linked, our developers have fixed it. We will inform you when we release a new version.
Sorry that our product doesn't support to link to remote files at present. I have forwarded it to our dev team. And they added it into their schedule as a new feature.
InsertVideoMedia is used to insert a video to collection in the document in the specified location. the index represents inserting the position of the index. AppendVideoMedia can not specify a location, and it is used to insert the video at the end of the collection.

Sincerely,
Caroline
E-iceblue support team
User avatar

caroline.zhang
 
Posts: 291
Joined: Mon Mar 07, 2016 9:22 am

Mon Jun 13, 2016 9:52 am

Hi Ben,

Thank you for your waiting.
Your issues have been resolved. Please download and test the new hotfix Spire.Presentation Pack Hotfix Version:2.6.7

And please use the following solution to link to remote video.
Code: Select all
AppendVideoMedia(URL, rectangle,false);


Sincerely,
Caroline
E-iceblue support team
User avatar

caroline.zhang
 
Posts: 291
Joined: Mon Mar 07, 2016 9:22 am

Return to Spire.Presentation