Bug 62793 - [PATCH] Testcase for reading videos in XSLF
Summary: [PATCH] Testcase for reading videos in XSLF
Alias: None
Product: POI
Classification: Unclassified
Component: XSLF (show other bugs)
Version: 4.0.x-dev
Hardware: PC All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: POI Developers List
Keywords: PatchAvailable
Depends on:
Reported: 2018-10-02 12:29 UTC by Mate Borcsok
Modified: 2021-10-11 20:02 UTC (History)
0 users

testReadVideo testcase (3.56 KB, patch)
2018-10-02 12:29 UTC, Mate Borcsok
Details | Diff
test-data/slideshow/video.pptx (598.65 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2018-10-02 12:30 UTC, Mate Borcsok

Note You need to log in before you can comment on or make changes to this bug.
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]

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