Changeset 25765 in osm for applications/editors/josm/plugins/videomapping/test
- Timestamp:
- 2011-04-01T16:47:35+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/videomapping/test/videotest.java
r23193 r25765 5 5 import java.awt.event.ActionListener; 6 6 import java.io.File; 7 import java.text.SimpleDateFormat; 7 8 8 9 import javax.swing.JButton; … … 14 15 import javax.swing.event.ChangeListener; 15 16 16 import org.openstreetmap.josm.plugins.videomapping.video.SimpleVideoPlayer; 17 import org.openstreetmap.josm.plugins.videomapping.video.VideoEngine; 18 import org.openstreetmap.josm.plugins.videomapping.video.VideoPlayer; 17 19 18 20 import uk.co.caprica.vlcj.player.*; 19 21 20 22 23 //simple app to test videoplayer alone 21 24 public class videotest { 22 23 /**24 * @param args25 */26 25 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 */ 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")); 31 40 32 } 41 33
Note:
See TracChangeset
for help on using the changeset viewer.