Changeset 21631 in osm for applications/editors/josm/plugins/videomapping/test/videotest.java
- Timestamp:
- 2010-06-09T22:58:18+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/videomapping/test/videotest.java
r21586 r21631 2 2 import java.awt.Canvas; 3 3 import java.awt.Dimension; 4 import java.awt.event.ActionEvent; 5 import java.awt.event.ActionListener; 4 6 import java.io.File; 5 7 8 import javax.swing.JButton; 6 9 import javax.swing.JFileChooser; 7 10 import javax.swing.JFrame; … … 22 25 */ 23 26 public static void main(String[] args) { 24 SimpleVideoPlayer sVP = new SimpleVideoPlayer(); 25 sVP.setFile(new File("C:\\TEMP\\test.mpg")); 26 sVP.play(); 27 sVP.jump(605000); 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 JButton b = new JButton("jump"); 31 b.addActionListener(new ActionListener() { 32 33 public void actionPerformed(ActionEvent e) { 34 sVP.jump(610000); 35 } 36 }); 37 sVP.add(b); 28 38 29 39 }
Note:
See TracChangeset
for help on using the changeset viewer.