Line | |
---|
1 |
|
---|
2 | import java.awt.Canvas;
|
---|
3 | import java.awt.Dimension;
|
---|
4 | import java.awt.event.ActionEvent;
|
---|
5 | import java.awt.event.ActionListener;
|
---|
6 | import java.io.File;
|
---|
7 | import java.text.SimpleDateFormat;
|
---|
8 |
|
---|
9 | import javax.swing.JButton;
|
---|
10 | import javax.swing.JFileChooser;
|
---|
11 | import javax.swing.JFrame;
|
---|
12 | import javax.swing.JPanel;
|
---|
13 | import javax.swing.JSlider;
|
---|
14 | import javax.swing.event.ChangeEvent;
|
---|
15 | import javax.swing.event.ChangeListener;
|
---|
16 |
|
---|
17 | import org.openstreetmap.josm.plugins.videomapping.video.VideoEngine;
|
---|
18 | import org.openstreetmap.josm.plugins.videomapping.video.VideoPlayer;
|
---|
19 |
|
---|
20 | import uk.co.caprica.vlcj.player.*;
|
---|
21 |
|
---|
22 |
|
---|
23 | //simple app to test videoplayer alone
|
---|
24 | public class videotest {
|
---|
25 | public static void main(String[] args) {
|
---|
26 | VideoEngine.setupPlayer();
|
---|
27 | VideoPlayer testplayer= new VideoPlayer(new SimpleDateFormat("hh:mm:ss"));
|
---|
28 | testplayer.setJumpLength(1000);
|
---|
29 | testplayer.setLoopLength(3000);
|
---|
30 | testplayer.addVideo(new File("C:\\TEMP\\test.mpg"),"1");
|
---|
31 | testplayer.addVideo(new File("C:\\TEMP\\aoe-drachen_dvdscr.avi"),"2");
|
---|
32 | testplayer.enableSingleVideoMode(true);
|
---|
33 |
|
---|
34 | }
|
---|
35 |
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.