Last change
on this file since 30761 was 28924, checked in by donvip, 12 years ago |
[josm_videomapping] potential fix for #josm8190, update to vlcj 2.1.0 / jna 3.4.0, code cleanup
|
File size:
704 bytes
|
Line | |
---|
1 |
|
---|
2 | import java.io.File;
|
---|
3 | import java.text.SimpleDateFormat;
|
---|
4 |
|
---|
5 | import org.openstreetmap.josm.plugins.videomapping.video.VideoEngine;
|
---|
6 | import org.openstreetmap.josm.plugins.videomapping.video.VideoPlayer;
|
---|
7 |
|
---|
8 | //simple app to test videoplayer alone
|
---|
9 | public class videotest {
|
---|
10 | public static void main(String[] args) {
|
---|
11 | VideoEngine.setupPlayer();
|
---|
12 | VideoPlayer testplayer= new VideoPlayer(new SimpleDateFormat("hh:mm:ss"));
|
---|
13 | testplayer.setJumpLength(1000);
|
---|
14 | testplayer.setLoopLength(3000);
|
---|
15 | testplayer.addVideo(new File("C:\\TEMP\\test.mpg"),"1");
|
---|
16 | testplayer.addVideo(new File("C:\\TEMP\\aoe-drachen_dvdscr.avi"),"2");
|
---|
17 | testplayer.enableSingleVideoMode(true);
|
---|
18 | }
|
---|
19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.