Changeset 25896 in osm for applications/editors/josm/plugins/videomapping
- Timestamp:
- 2011-04-25T17:39:35+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/VideoPlugin.java
r25894 r25896 51 51 * @author Matthias Meißer (digi_c at arcor dot de) 52 52 * @ released under GPL 53 * This Plugin allows you to link a videoagainst a GPS track and playback both synchronously53 * This Plugin allows you to link multiple videos against a GPS track and playback both synchronously 54 54 */ 55 55 … … 230 230 } 231 231 gpsVideoPlayer.addVideo(fc.getSelectedFile()); 232 } 233 232 } 234 233 } 235 234 -
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/VideoPositionLayer.java
r25865 r25896 118 118 } 119 119 120 //just a Demo to show up IPO on a whole segment 120 121 private List<WayPoint> getInterpolatedSegment(WayPoint center, int before, int after) { 121 122 LinkedList<WayPoint> ls = new LinkedList<WayPoint>(); … … 251 252 if (gpsVideoPlayer.areAllVideosSynced()) 252 253 { 253 //we set the video to rightposition254 //we set the video to corresponding position 254 255 gpsVideoPlayer.jumpTo(wp.getTime()); 255 256 } -
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/video/GPSVideo.java
r25894 r25896 98 98 } 99 99 100 //if synced jump in video to this GPS timecode 100 101 public void jumpTo(Date GPSTime) { 101 102 if((GPSTime.after(firstWayPoint.getTime())&(GPSTime.before(lastWayPoint.getTime())))) -
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/video/GPSVideoPlayer.java
r25894 r25896 42 42 } 43 43 44 45 44 public GPSVideo addVideo(File Videofile) { 46 45 GPSVideo video = new GPSVideo(super.addVideo(Videofile,Integer.toString(videos.size()))); … … 50 49 return video; 51 50 } 52 53 51 54 52 private void addSyncButton(GPSVideo video) { … … 81 79 } 82 80 81 //jump in all videos this date, if possible 83 82 public void jumpTo(Date date) 84 83 { … … 90 89 public boolean areAllVideosSynced() 91 90 { 92 93 91 for (GPSVideo video : videos) { 94 92 if (!video.isSynced()) return false; -
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/video/Video.java
r25894 r25896 10 10 import uk.co.caprica.vlcj.player.MediaPlayer; 11 11 12 //basic informations about one single video playback instance 12 13 public class Video { 13 14 public File filename; -
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/video/VideoEngine.java
r25894 r25896 23 23 import static org.openstreetmap.josm.tools.I18n.*; 24 24 25 //concrete Player library that is able to play 25 //concrete Player library that is able to playback multiple videos 26 26 public class VideoEngine implements MediaPlayerEventListener{ 27 27 private FullScreenStrategy fullScreenStrategy; … … 152 152 } 153 153 } 154 notifyObservers(VideoObserversEvents.jumping); 155 154 notifyObservers(VideoObserversEvents.jumping); 156 155 } 157 156 … … 195 194 } 196 195 197 //TODO has to be for every video196 //TODO muss evtl. auf Rückgabe für alle Videos erweitert werden 198 197 public int getPosition() 199 198 { 200 199 return (int) (videos.get(0).player.getPosition()*100); 201 } 202 203 200 } 204 201 205 202 public void setSpeed(int percent) … … 215 212 } 216 213 214 //TODO muss evtl. auf Rückgabe für alle Videos erweitert werden 217 215 public int getSpeed() 218 216 { -
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/video/VideoObserversEvents.java
r25765 r25896 1 1 package org.openstreetmap.josm.plugins.videomapping.video; 2 2 3 //basic categories of what might be interesting for a single video 3 4 public enum VideoObserversEvents { 4 5 resizing, -
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/video/VideoPlayer.java
r25894 r25896 58 58 import uk.co.caprica.vlcj.runtime.windows.WindowsRuntimeUtil; 59 59 60 //basic class of a videoplayer for one video60 //basic UI of a videoplayer for multiple videos incl. notifications 61 61 public class VideoPlayer extends JFrame implements WindowListener, VideosObserver, VideoPlayerObserver{ 62 62 private static final int notificationIntervall = 500; -
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/video/VideoPlayerObserver.java
r25865 r25896 1 1 package org.openstreetmap.josm.plugins.videomapping.video; 2 2 3 //update mechanism for GPS position, title bar,... 3 4 public interface VideoPlayerObserver { 4 5 public void update_plays(); -
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/video/VideosObserver.java
r25765 r25896 1 1 package org.openstreetmap.josm.plugins.videomapping.video; 2 2 3 //getting basic control informations per video 3 4 public interface VideosObserver { 4 5
Note:
See TracChangeset
for help on using the changeset viewer.