
Here is some Basic code that inserts a video. See for how to look up parameters for dispatcher calls. I do not know offhand what the parameters are for the call. If embedding is working for your needs and you want to automate the embedding by using an extension (which seems to be what your question is asking), then there is a dispatcher method called InsertAVMedia that does this.

However many people use links to files instead of actually embedding the file. The most obvious way to do that seems to be Insert -> Media -> Audio or Video.

First be sure you can get it to work manually. Inserting videos into an Impress presentation can be difficult. If you really do want to develop an extension, then start with one of the Java samples. You requested information about an extension, even though the code you are using is quite different, using a file stream reader and POI.
