Created attachment 36182 [details] testReadVideo testcase It would be good to support reading/adding/removing videos using POI. I've done some research. As a first step I submit this test case which demonstrates how to read the video part of an XSLFPictureShape. Later I would like to work on a new shape: XSLFMovieShape, which extends XSLFPictureShape and have these capabilities natively. What do you think?
Created attachment 36183 [details] test-data/slideshow/video.pptx A pptx file containing a short video (of the apache licence recorded from my IDE)
I think the general consensus is that we would like the POI capabilities to use public APIs that don't expose the internal generated classes for the Open Office XML formats (the CT classes). Would you be able to add methods and classes to the XLSF packages that wrap the generated CT classes (CTPicture, CTExtension, etc)?
This issue is stale for a long time and adding videos is not an often requested feature. I've added an example code [1] and a corresponding stackoverflow entry [2] a while ago. Given that the API would be quite limited to adding / getting an embedded file without adding any video processing dependencies, I'm closing this now. Feel free to reopen this ticket, if you feel this deserves more attention. [1] https://svn.apache.org/viewvc/poi/trunk/poi-examples/src/main/java/org/apache/poi/examples/xslf/AddVideoToPptx.java.txt?view=markup [2] https://stackoverflow.com/questions/15197300/apache-poi-xslf-adding-movie-to-the-slide/16322340#16322340