0
嘗試這樣:如何使用Apache POI HSLF在Powerpoint ppt文件中嵌入avi視頻?
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);
沒有成功。有任何想法嗎?