Changeset 28949 in osm for applications/editors/josm/plugins
- Timestamp:
- 2012-11-18T20:37:02+01:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/VideoPlugin.java
r28924 r28949 64 64 private VideoPositionLayer videoPositionLayer; 65 65 private GPSVideoPlayer gpsVideoPlayer; 66 67 public static String VLC_VERSION = "2.0.x"; 66 68 67 69 public VideoPlugin(PluginInformation info) { … … 236 238 enableVideoControlMenus(true); 237 239 } 238 if (gpsVideoPlayer != null ) {240 if (gpsVideoPlayer != null && gpsVideoPlayer.isCorrectlyInitiliazed()) { 239 241 gpsVideoPlayer.addVideo(fc.getSelectedFile()); 242 } else { 243 JOptionPane.showMessageDialog(Main.parent, 244 tr("VLC library is not correctly initialized."+ 245 " Please check that VLC {0} is correctly installed on your system."+ 246 " Its architecture (32/64 bits) must also be the same as the JRE that runs JOSM.", VLC_VERSION), 247 tr("Error"), JOptionPane.ERROR_MESSAGE 248 ); 240 249 } 241 250 } -
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/video/GPSVideoPlayer.java
r28924 r28949 30 30 } 31 31 32 public GPSVideo addVideo(File Videofile) {33 GPSVideo video = new GPSVideo(super.addVideo( Videofile,Integer.toString(videos.size())));32 public GPSVideo addVideo(File videofile) { 33 GPSVideo video = new GPSVideo(super.addVideo(videofile,Integer.toString(videos.size()))); 34 34 enableSingleVideoMode(true); 35 35 videos.add(video); -
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/video/VideoPlayer.java
r28924 r28949 66 66 } 67 67 68 public Video addVideo(File Videofile, String id) 69 { 70 Video video = new Video(Videofile,id,videoengine.mediaPlayerFactory); 68 public Video addVideo(File videofile, String id) { 69 Video video = new Video(videofile,id,videoengine.mediaPlayerFactory); 71 70 canvasPanel.add(video.panel); 72 71 video.canvas.setSize(new Dimension(300, 300)); // will be updated by the video engine itself … … 374 373 } 375 374 376 377 378 375 public boolean isCorrectlyInitiliazed() { 376 return videoengine != null && videoengine.mediaPlayerFactory != null; 377 } 379 378 }
Note:
See TracChangeset
for help on using the changeset viewer.