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 |
|
---|
8 | import javax.swing.JButton;
|
---|
9 | import javax.swing.JFileChooser;
|
---|
10 | import javax.swing.JFrame;
|
---|
11 | import javax.swing.JPanel;
|
---|
12 | import javax.swing.JSlider;
|
---|
13 | import javax.swing.event.ChangeEvent;
|
---|
14 | import javax.swing.event.ChangeListener;
|
---|
15 |
|
---|
16 | import org.openstreetmap.josm.plugins.videomapping.video.SimpleVideoPlayer;
|
---|
17 |
|
---|
18 | import uk.co.caprica.vlcj.player.*;
|
---|
19 |
|
---|
20 |
|
---|
21 | public class videotest {
|
---|
22 |
|
---|
23 | /**
|
---|
24 | * @param args
|
---|
25 | */
|
---|
26 | public static void main(String[] args) {
|
---|
27 | final SimpleVideoPlayer sVP = new SimpleVideoPlayer();
|
---|
28 | sVP.setFile(new File("C:\\TEMP\\122_0159.MOV"));
|
---|
29 | //sVP.play(); //FIXME We have a bug so we get out of sync if we jump before the video is up (and this we CAN'T DETECT!!!)
|
---|
30 | /*
|
---|
31 | JButton b = new JButton("jump");
|
---|
32 | b.addActionListener(new ActionListener() {
|
---|
33 |
|
---|
34 | public void actionPerformed(ActionEvent e) {
|
---|
35 | sVP.jump(610000);
|
---|
36 | }
|
---|
37 | });
|
---|
38 | sVP.add(b);
|
---|
39 | */
|
---|
40 | }
|
---|
41 |
|
---|
42 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.