Bug 62793

Summary: [PATCH] Testcase for reading videos in XSLF
Product: POI Reporter: Mate Borcsok <bmateusz>
Component: XSLFAssignee: POI Developers List <dev>
Status: RESOLVED WONTFIX    
Severity: enhancement Keywords: PatchAvailable
Priority: P2    
Version: 4.0.x-dev   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: testReadVideo testcase
test-data/slideshow/video.pptx

Description Mate Borcsok 2018-10-02 12:29:03 UTC
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?
Comment 1 Mate Borcsok 2018-10-02 12:30:34 UTC
Created attachment 36183 [details]
test-data/slideshow/video.pptx

A pptx file containing a short video (of the apache licence recorded from my IDE)
Comment 2 PJ Fanning 2018-10-02 15:15:38 UTC
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)?
Comment 3 Andreas Beeker 2021-10-11 20:02:40 UTC
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