source: osm/applications/editors/josm/plugins/videomapping/test/videotest.java@ 21656

Last change on this file since 21656 was 21656, checked in by guardian, 14 years ago
File size: 1.0 KB
Line 
1
2import java.awt.Canvas;
3import java.awt.Dimension;
4import java.awt.event.ActionEvent;
5import java.awt.event.ActionListener;
6import java.io.File;
7
8import javax.swing.JButton;
9import javax.swing.JFileChooser;
10import javax.swing.JFrame;
11import javax.swing.JPanel;
12import javax.swing.JSlider;
13import javax.swing.event.ChangeEvent;
14import javax.swing.event.ChangeListener;
15
16import org.openstreetmap.josm.plugins.videomapping.video.SimpleVideoPlayer;
17
18import uk.co.caprica.vlcj.player.*;
19
20
21public 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\\test.mpg"));
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.