Ignore:
Timestamp:
2010-06-09T22:58:18+02:00 (14 years ago)
Author:
guardian
Message:

manual sync, comments, code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/videomapping/test/videotest.java

    r21586 r21631  
    22import java.awt.Canvas;
    33import java.awt.Dimension;
     4import java.awt.event.ActionEvent;
     5import java.awt.event.ActionListener;
    46import java.io.File;
    57
     8import javax.swing.JButton;
    69import javax.swing.JFileChooser;
    710import javax.swing.JFrame;
     
    2225         */
    2326        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);
    2838
    2939        }
Note: See TracChangeset for help on using the changeset viewer.