Sorry all, but I am very confused by the responses to whether or not I can create a PPT presentation with an embedded flash video on a slide. I see questions on Flash from licensed users and answers from Aspose saying it will be ‘available soon’ going back as far as five years ago (!).
Can I create a PPT slideshow (using .Net implementation) with an embedded flash video on it? If yes, what are the requirements for then distributing the PPT? (e.g. does the FLV file exist outside the PPT? If so, does it just need to be placed in the same folder as the PPT? or ?) And if not available, why not?
Thx!
- Mike
Hi Mike,
Embedded flash movies are ActiveX Controls. We have implemented correct recognizing any controls as OleObjectFrame but unfortunately cloning such slides
(with flash or any other controls) is impossible so far.
Thanks for the answer, although I must admit to still being confused. I don’t think I was asking about cloning. Here are my questions again:
1) Can I create a PPT slideshow (using .Net implementation) with an
embedded flash video on it?
2) If yes, what are the requirements for then
distributing the PPT? (e.g. does the FLV file exist outside the PPT? If
so, does it just need to be placed in the same folder as the PPT? or ?)
Thanks, again for the response.
Does anyone in the community know the answer?
Hello,
Since Aspose.Slides can’t parse ActiveX container it’s not possible to change it or create new one on a slide. We will check if it’s possible to reuse existing flash video and replace data in it.
Hi Mike,
Try this example.
Presentation pres = new Presentation();
Slide sld = pres.GetSlideByPosition(1);
sld.Shapes.AddVideoFrame(50, 50, 1500, 1500, "d:\\ppt\\vid\\myflash.flv");
pres.Write("d:\\ppt\\vid\\flvPPT.ppt");
Guys, really? One staff member says “no” and one says “yes”? It’s difficult for me to “try” right now because I do not have my development environment with me (am traveling), and I obviously can’t try it with my customer’s live environment. I just didn’t think it would be this difficult to get an answer about your product (or to even get an answer at all, in the case of question #2).
Hi Mike,
First try to test the example. Regarding question 2, the FLV file should exist outside the PPT and it needs to be placed in the folder as set by AddVideoFrame method.
Thanks Muhammad,
However, as I stated in that last message, I do not have my development environment with me and cannot “try to test”. I just needed to know definitively “yes” or “no”. Given the conflicting answers here (especially the “no” answer from Alexey who appears to be the team leader), and then your request that I try it, I am thinking that there is no definitive answer as to whether or not this will work.
However, if I assume that the answer is actually “yes”, and that I can add an FLV file to a new slideshow, my problem is one of distribution. If I generate a slide show on the server and then allow a user to download it, I could not control placement of the FLV file (as far as drive and path). If I specify NO path or drive, will the addvideoframe allow me to simply add an FLV with no drive/path, and assume that it is in the same directory as the PPT itself?
Thanks.
Hi Mike,
You can use AddVideoFrame method without any drive / path.
ok, I went home early to test this.
Every time I try, I get:
"The file you are attempting to play has an extension that does not match the file format. Playing the file may result in unexpected behavior."
This message comes from Windows Media Player (?)
I have tried this with three separate FLV files. I have also played the FLV’s externally to be sure they were all ok and didn’t have a problem.
I know that you verified it would work, and I’m using your example code, so I have to assume I am still doing something wrong. Any ideas?
thx.
Hello,
I have the same problem. Probably there should be some special codecs to play it from VideoFrame. So that is not safe to add flv and swf through Video and doesn’t work in many cases.
As I wrote before, the only normal way to add flash movie to a slide is ActiveX control but that is currently not available. VideoFrame works perfectly with avi, wmv and mpeg video. As a temporary solution, you can convert flv to avi/wmv/mpeg on the fly (for example with ffmpeg) and insert it to a slide.
I have already told my client that we could do this based on the responses I was getting from your company. They have thousands of FLV’s, and I cannot talk them into converting their data infrastucture now.
So thanks for all the help.