简体   繁体   中英

How to embed an avi video inside Powerpoint ppt file using Apache POI HSLF?

Tried this:

int idx4 = ppt.addMovie(new File("Animation.avi").getCanonicalPath(), MovieShape.MOVIE_AVI);
MovieShape pict4 = new MovieShape(idx4, idx4);

pict4.setAnchor(new java.awt.Rectangle(100, 100, 300, 200));

Slide slide4 = ppt.createSlide();
slide4.addShape(pict4);

without success. Any ideas?

Apache POI MovieShape Test类帮助了我。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM