Index: /applications/editors/josm/plugins/videomapping/.classpath
===================================================================
--- /applications/editors/josm/plugins/videomapping/.classpath	(revision 21294)
+++ /applications/editors/josm/plugins/videomapping/.classpath	(revision 21295)
@@ -2,7 +2,8 @@
 <classpath>
 	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="src" path="test"/>
 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
 	<classpathentry combineaccessrules="false" kind="src" path="/JOSM"/>
-	<classpathentry kind="lib" path="D:/Projekte/Studium/GeoProjekt/working/fmj/fmj.jar"/>
+	<classpathentry kind="lib" path="D:/Projekte/Studium/GeoProjekt/working/vlcj/vlcj-1.1f.jar"/>
 	<classpathentry kind="output" path="bin"/>
 </classpath>
Index: /applications/editors/josm/plugins/videomapping/README
===================================================================
--- /applications/editors/josm/plugins/videomapping/README	(revision 21294)
+++ /applications/editors/josm/plugins/videomapping/README	(revision 21295)
@@ -4,2 +4,8 @@
 Third party components:
 icon: http://www.openclipart.org/detail/16349
+
+VLCj binding (1.1.0f):
+http://code.google.com/p/vlcj/
+
+for use with VLC 1.1.x
+http://download.videolan.org/pub/videolan/testing/vlc-1.1.0-pre4/win32/
Index: /applications/editors/josm/plugins/videomapping/build.xml
===================================================================
--- /applications/editors/josm/plugins/videomapping/build.xml	(revision 21294)
+++ /applications/editors/josm/plugins/videomapping/build.xml	(revision 21295)
@@ -48,5 +48,5 @@
 	<property name="plugin.dist.dir"        value="../../dist"/>
 	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+	<property name="vlcj"                  value="lib/vlcj-1.0.1.jar"/>
 	<!--
     **********************************************************
@@ -68,4 +68,7 @@
 			<compilerarg value="-Xlint:deprecation"/>
 			<compilerarg value="-Xlint:unchecked"/>
+			<classpath>
+				<pathelement location="${vlcj}"/> <!--Add external library -->
+			</classpath>
 		</javac>
 	</target>
@@ -106,5 +109,5 @@
 				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/VideoMapping"/>
 				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>				
 			</manifest>
 		</jar>
Index: /applications/editors/josm/plugins/videomapping/resources/videomapping.ep
===================================================================
--- /applications/editors/josm/plugins/videomapping/resources/videomapping.ep	(revision 21294)
+++ /applications/editors/josm/plugins/videomapping/resources/videomapping.ep	(revision 21295)
@@ -1,4 +1,4 @@
 <?xml version="1.0"?>
-<Document xmlns="http://www.evolus.vn/Namespace/Pencil"><Properties/><Pages><Page><Properties><Property name="name">Untitled Page</Property><Property name="id">1273584296451_6971</Property><Property name="width">576</Property><Property name="height">423</Property><Property name="dimBackground">false</Property></Properties><Content><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.WindowsXP.Widgets:Frame" id="77aba34df25544ab938a29927e57d5f0" transform="matrix(1, 0, 0, 1, 10, 9)"><p:metadata><p:childTargets><p:childTarget childRef="#94e1ca1c1491466d9db735f9e65663b1" anchor="rightbottom"/><p:childTarget childRef="#b7356935baac49aa912a79bc87332e72" anchor="leftbottom"/><p:childTarget childRef="#8ad09f34263a4c648771a64d9efa0b86" anchor="rightbottom"/><p:childTarget childRef="#6291dd8320ba4e30813c91be09300fa9" anchor="righttop"/><p:childTarget childRef="#f9fe86723c974d03a77fea7f0dcc46c3" anchor="righttop"/><p:childTarget childRef="#f40f6cb501f34a20a828ad37b11cbe2c" anchor="rightbottom"/><p:childTarget childRef="#f2a6e10d7b394b35a3efc379a815b109" anchor="rightbottom"/><p:childTarget childRef="#184068076cb5436f9db5f1949645e1d7" anchor="leftbottom"/><p:childTarget childRef="#4361bf5e2f404f93a1b37460b665fb1d" anchor="rightbottom"/><p:childTarget childRef="#de283ce44c824c4fabb013da6c69ccc8" anchor="rightbottom"/><p:childTarget childRef="#f40eaa8c054e47cca87202d8bfae0c50" anchor="lefttop"/><p:childTarget childRef="#c392bddd5ba040f0ad578325e74b522d" anchor="leftbottom"/><p:childTarget childRef="#6313da63fe7c4da784f613df32b7a74e" anchor="leftbottom"/><p:childTarget childRef="#17686154d646406fa03ed05f53c77a30" anchor="leftbottom"/><p:childTarget childRef="#b1f4f9f023224e43a8131d3236f57c03" anchor="rightbottom"/></p:childTargets><p:property name="box"><![CDATA[558,412]]></p:property><p:property name="withClose"><![CDATA[true]]></p:property><p:property name="withMax"><![CDATA[true]]></p:property><p:property name="withMin"><![CDATA[true]]></p:property><p:property name="withShadow"><![CDATA[false]]></p:property><p:property name="titleText"><![CDATA[E:\video.org]]></p:property><p:property name="textColor"><![CDATA[#FFFFFFFF]]></p:property><p:property name="textFont"><![CDATA[Trebuchet MS|bold|normal|13px|none]]></p:property><p:property name="textAlign"><![CDATA[0,1]]></p:property><p:property name="withRoomForIcon"><![CDATA[false]]></p:property></p:metadata>
+<Document xmlns="http://www.evolus.vn/Namespace/Pencil"><Properties/><Pages><Page><Properties><Property name="name">video player</Property><Property name="id">1273584296451_6971</Property><Property name="width">576</Property><Property name="height">423</Property><Property name="dimBackground"></Property></Properties><Content><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.WindowsXP.Widgets:Frame" id="77aba34df25544ab938a29927e57d5f0" transform="matrix(1, 0, 0, 1, 10, 9)"><p:metadata><p:childTargets><p:childTarget childRef="#94e1ca1c1491466d9db735f9e65663b1" anchor="rightbottom"/><p:childTarget childRef="#b7356935baac49aa912a79bc87332e72" anchor="leftbottom"/><p:childTarget childRef="#8ad09f34263a4c648771a64d9efa0b86" anchor="rightbottom"/><p:childTarget childRef="#6291dd8320ba4e30813c91be09300fa9" anchor="righttop"/><p:childTarget childRef="#f9fe86723c974d03a77fea7f0dcc46c3" anchor="righttop"/><p:childTarget childRef="#f40f6cb501f34a20a828ad37b11cbe2c" anchor="rightbottom"/><p:childTarget childRef="#f2a6e10d7b394b35a3efc379a815b109" anchor="rightbottom"/><p:childTarget childRef="#184068076cb5436f9db5f1949645e1d7" anchor="leftbottom"/><p:childTarget childRef="#4361bf5e2f404f93a1b37460b665fb1d" anchor="rightbottom"/><p:childTarget childRef="#de283ce44c824c4fabb013da6c69ccc8" anchor="rightbottom"/><p:childTarget childRef="#f40eaa8c054e47cca87202d8bfae0c50" anchor="lefttop"/><p:childTarget childRef="#c392bddd5ba040f0ad578325e74b522d" anchor="leftbottom"/><p:childTarget childRef="#6313da63fe7c4da784f613df32b7a74e" anchor="leftbottom"/><p:childTarget childRef="#17686154d646406fa03ed05f53c77a30" anchor="leftbottom"/><p:childTarget childRef="#b1f4f9f023224e43a8131d3236f57c03" anchor="rightbottom"/></p:childTargets><p:property name="box"><![CDATA[558,412]]></p:property><p:property name="withClose"><![CDATA[true]]></p:property><p:property name="withMax"><![CDATA[true]]></p:property><p:property name="withMin"><![CDATA[true]]></p:property><p:property name="withShadow"><![CDATA[false]]></p:property><p:property name="titleText"><![CDATA[E:\video.org]]></p:property><p:property name="textColor"><![CDATA[#FFFFFFFF]]></p:property><p:property name="textFont"><![CDATA[Trebuchet MS|bold|normal|13px|none]]></p:property><p:property name="textAlign"><![CDATA[0,1]]></p:property><p:property name="withRoomForIcon"><![CDATA[false]]></p:property></p:metadata>
             <defs>
                 <pattern patternUnits="userSpaceOnUse" x="0" y="0" width="1" height="29" p:name="titlePattern" id="fbffa82ffe0d4b7f99f5b6292cd257cf">
@@ -52,28 +52,4 @@
             <text x="15" y="27" style="text-align: left; text-anchor: start; dominant-baseline: auto; fill: rgb(0, 0, 0); fill-opacity: 1; font-family: Tahoma; font-size: 11px; font-weight: normal; font-style: normal; text-decoration: none;" xml:space="preserve" p:name="text" id="49363978205a405588977623e630b4e1">play/pause</text><path id="49363978205a405588977623e630b4e1_underline" style="fill: none; stroke-width: 1px; visibility: hidden;"/>
             <path style="fill: none; stroke-width: 1px; visibility: hidden;" p:name="accelIndicator" id="7adf6861b27d461ba7094d574e62b58e"/>
-        </g><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.WindowsXP.Widgets:Button" id="6313da63fe7c4da784f613df32b7a74e" transform="matrix(1, 0, 0, 1, 133, 342)" p:parentRef="#77aba34df25544ab938a29927e57d5f0"><p:metadata><p:property name="box"><![CDATA[80,25]]></p:property><p:property name="buttonText"><![CDATA[RW]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textFont"><![CDATA[Tahoma|normal|normal|11px|none]]></p:property><p:property name="textAlign"><![CDATA[1,1]]></p:property><p:property name="disabled"><![CDATA[false]]></p:property><p:property name="defaultButton"><![CDATA[false]]></p:property><p:childTargets/></p:metadata>
-            <defs p:name="defs2177" id="4f62cdfbe77540eb8dd0935611e20e30">
-                <linearGradient x1="0%" y1="0%" x2="0%" y2="100%" p:name="linearGradient4109" id="a74ea7620e1f46838ca3b8a4fbd54026">
-                  <stop style="stop-color: rgb(255, 255, 255); stop-opacity: 1;" offset="0%" p:name="stop1" id="aae5dd163c454e939da3126536703f4b"/>
-                  <stop style="stop-color: rgb(240, 240, 234); stop-opacity: 1;" offset="72%" p:name="stop2" id="2d0e39e8cb4043c5b5fca333a399ea17"/>
-                  <stop style="stop-color: rgb(214, 208, 197); stop-opacity: 1;" offset="100%" p:name="stop3" id="ce71b9b9a33a4e4ab312eb51f7813d67"/>
-                </linearGradient>
-            </defs>
-            <rect width="79" height="24" rx="3" ry="3" x="0.5" y="0.5" style="overflow: visible; marker: none; opacity: 1; color: rgb(0, 0, 0); fill: url(#a74ea7620e1f46838ca3b8a4fbd54026) rgb(0, 0, 0); fill-opacity: 1; fill-rule: nonzero; stroke: rgb(0, 60, 116); stroke-width: 1; stroke-linecap: square; stroke-linejoin: miter; stroke-miterlimit: 4; stroke-dasharray: none; stroke-dashoffset: 0pt; stroke-opacity: 1; visibility: visible; display: inline;" p:name="rect" id="81fd31618b204a0b8f552e733c6536c3"/>
-            <rect width="76" height="21" rx="2" ry="2" x="2" y="2" style="overflow: visible; marker: none; opacity: 1; color: rgb(0, 0, 0); fill: none; fill-opacity: 1; fill-rule: nonzero; stroke: rgb(125, 164, 228); stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; stroke-miterlimit: 4; stroke-dasharray: none; stroke-dashoffset: 0pt; stroke-opacity: 1; visibility: hidden; display: inline;" p:name="defaultMarker" id="dfb261f4a905421992df94b8e925a7b3"/>
-            <text x="31" y="17" style="text-align: left; text-anchor: start; dominant-baseline: auto; fill: rgb(0, 0, 0); fill-opacity: 1; font-family: Tahoma; font-size: 11px; font-weight: normal; font-style: normal; text-decoration: none;" xml:space="preserve" p:name="text" id="7ae38535f5a0436a881f7b7db76eb40d">RW</text><path id="7ae38535f5a0436a881f7b7db76eb40d_underline" style="fill: none; stroke-width: 1px; visibility: hidden;"/><path id="154b25c2815740fd9a9a12ab42cadc3b" style="fill: none; stroke-width: 1px; visibility: hidden;"/>
-            <path style="fill: none; stroke-width: 1px; visibility: hidden;" p:name="accelIndicator" id="908c44094f8f4b9390b57122d8abd94e"/>
-        </g><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.WindowsXP.Widgets:Button" id="94e1ca1c1491466d9db735f9e65663b1" transform="matrix(1, 0, 0, 1, 238, 341)" p:parentRef="#77aba34df25544ab938a29927e57d5f0"><p:metadata><p:property name="box"><![CDATA[80,25]]></p:property><p:property name="buttonText"><![CDATA[FF]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textFont"><![CDATA[Tahoma|normal|normal|11px|none]]></p:property><p:property name="textAlign"><![CDATA[1,1]]></p:property><p:property name="disabled"><![CDATA[false]]></p:property><p:property name="defaultButton"><![CDATA[false]]></p:property><p:childTargets/></p:metadata>
-            <defs p:name="defs2177" id="359e4198c2554099a7de8c9ca5d4cd06">
-                <linearGradient x1="0%" y1="0%" x2="0%" y2="100%" p:name="linearGradient4109" id="3da87a64ee65454da17e4ed91eb52479">
-                  <stop style="stop-color: rgb(255, 255, 255); stop-opacity: 1;" offset="0%" p:name="stop1" id="07ba9e1be2fa48e3bfc80f6d6a335e6a"/>
-                  <stop style="stop-color: rgb(240, 240, 234); stop-opacity: 1;" offset="72%" p:name="stop2" id="9f4d0a254dfd4ec783d0eec68aa778ff"/>
-                  <stop style="stop-color: rgb(214, 208, 197); stop-opacity: 1;" offset="100%" p:name="stop3" id="6c3994234f624099a2ac90104b5c52c1"/>
-                </linearGradient>
-            </defs>
-            <rect width="79" height="24" rx="3" ry="3" x="0.5" y="0.5" style="overflow: visible; marker: none; opacity: 1; color: rgb(0, 0, 0); fill: url(#3da87a64ee65454da17e4ed91eb52479) rgb(0, 0, 0); fill-opacity: 1; fill-rule: nonzero; stroke: rgb(0, 60, 116); stroke-width: 1; stroke-linecap: square; stroke-linejoin: miter; stroke-miterlimit: 4; stroke-dasharray: none; stroke-dashoffset: 0pt; stroke-opacity: 1; visibility: visible; display: inline;" p:name="rect" id="247e64f3ab0c4500927fcaba1230935d"/>
-            <rect width="76" height="21" rx="2" ry="2" x="2" y="2" style="overflow: visible; marker: none; opacity: 1; color: rgb(0, 0, 0); fill: none; fill-opacity: 1; fill-rule: nonzero; stroke: rgb(125, 164, 228); stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; stroke-miterlimit: 4; stroke-dasharray: none; stroke-dashoffset: 0pt; stroke-opacity: 1; visibility: hidden; display: inline;" p:name="defaultMarker" id="b020396848a8436b90f797ce6000cafd"/>
-            <text x="33" y="17" style="text-align: left; text-anchor: start; dominant-baseline: auto; fill: rgb(0, 0, 0); fill-opacity: 1; font-family: Tahoma; font-size: 11px; font-weight: normal; font-style: normal; text-decoration: none;" xml:space="preserve" p:name="text" id="8a498694ff8f4da5a521f35ccef3a6b8">FF</text><path id="8a498694ff8f4da5a521f35ccef3a6b8_underline" style="fill: none; stroke-width: 1px; visibility: hidden;"/><path id="7a630bd5165045279cdfa0a55e4cc155" style="fill: none; stroke-width: 1px; visibility: hidden;"/><path id="a2287c2e44cf4f1a90e99249dd166477" style="fill: none; stroke-width: 1px; visibility: hidden;"/>
-            <path style="fill: none; stroke-width: 1px; visibility: hidden;" p:name="accelIndicator" id="c186d621030b46dc861798d01ead59dd"/>
         </g><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.NativeGUI:Scrollbar" id="c392bddd5ba040f0ad578325e74b522d" transform="matrix(-4.37114e-08, 1, -1, -4.37114e-08, 438, 310)" p:parentRef="#77aba34df25544ab938a29927e57d5f0"><p:metadata><p:childTargets/><p:property name="box"><![CDATA[22,398]]></p:property><p:property name="startHandle"><![CDATA[5.5,208]]></p:property><p:property name="disabled"><![CDATA[false]]></p:property></p:metadata>
             <foreignObject x="0" y="0" width="22" height="398" p:name="htmlObject" id="12f7806289e14cf191eadf57bcb9a74f">
@@ -83,24 +59,4 @@
                 </html:div>
             </foreignObject>
-        </g><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.NativeGUI:Scrollbar" id="6291dd8320ba4e30813c91be09300fa9" transform="matrix(1, 0, 0, 1, 456, 93)" p:parentRef="#77aba34df25544ab938a29927e57d5f0"><p:metadata><p:childTargets/><p:property name="box"><![CDATA[20,200]]></p:property><p:property name="startHandle"><![CDATA[5,30]]></p:property><p:property name="disabled"><![CDATA[false]]></p:property></p:metadata>
-            <foreignObject x="0" y="0" width="20" height="200" p:name="htmlObject" id="483aec1c63f1470884394f91cd60f95d">
-                <html:div xmlns:html="http://www.w3.org/1999/xhtml" style="overflow: hidden; -moz-box-sizing: border-box; position: relative; line-height: 0px ! important; font-size: 0px; width: 20px; height: 200px;" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" p:name="div" id="2dfacdb46d494cf9bbb9f8a249045e63">
-                <scrollbar orient="vertical" style="margin: 0px ! important; padding: 0px ! important; min-height: 0px ! important; min-width: 0px ! important; -moz-box-sizing: border-box; width: 20px; height: 200px;" p:name="xulControl" id="942b5995280a4e6192e9545ebd00d8a0" width="20" height="200" disabled="false" maxpos="100" curpos="15"/>
-                    <html:div style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;"/>
-                </html:div>
-            </foreignObject>
-        </g><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.NativeGUI:Scrollbar" id="f9fe86723c974d03a77fea7f0dcc46c3" transform="matrix(1, 0, 0, 1, 508, 93)" p:parentRef="#77aba34df25544ab938a29927e57d5f0"><p:metadata><p:property name="box"><![CDATA[20,200]]></p:property><p:property name="startHandle"><![CDATA[5,30]]></p:property><p:property name="disabled"><![CDATA[false]]></p:property><p:childTargets/></p:metadata>
-            <foreignObject x="0" y="0" width="20" height="200" p:name="htmlObject" id="4da13051750544e5b82610591ad35bb5">
-                <html:div xmlns:html="http://www.w3.org/1999/xhtml" style="overflow: hidden; -moz-box-sizing: border-box; position: relative; line-height: 0px ! important; font-size: 0px; width: 20px; height: 200px;" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" p:name="div" id="1ecc7447909846dfb5f6dce75cfe9500">
-                <scrollbar orient="vertical" style="margin: 0px ! important; padding: 0px ! important; min-height: 0px ! important; min-width: 0px ! important; -moz-box-sizing: border-box; width: 20px; height: 200px;" p:name="xulControl" id="72a2307fd4a24c3c94595c1eabd0345d" width="20" height="200" disabled="false" maxpos="100" curpos="15"/>
-                    <html:div style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;"/>
-                </html:div>
-            </foreignObject>
-        </g><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.WindowsXP.Widgets:Label" id="f40f6cb501f34a20a828ad37b11cbe2c" transform="matrix(1, 0, 0, 1, 457, 304)" p:parentRef="#77aba34df25544ab938a29927e57d5f0"><p:metadata><p:childTargets/><p:property name="disabled"><![CDATA[false]]></p:property><p:property name="label"><![CDATA[jump]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textFont"><![CDATA[Tahoma|normal|normal|11px|none]]></p:property></p:metadata>
-              <text y="11" x="0" style="font-size: 11px; font-style: normal; font-weight: normal; text-align: left; text-anchor: start; dominant-baseline: auto; fill: rgb(0, 0, 0); font-family: Tahoma; fill-opacity: 1; text-decoration: none;" xml:space="preserve" p:name="text" id="a9c77286ebcf49b88ef285b9d3a4dcc7">jump</text><path id="a9c77286ebcf49b88ef285b9d3a4dcc7_underline" style="fill: none; stroke-width: 1px; visibility: hidden;"/>
-             <path style="fill: none; stroke-width: 1px; visibility: hidden;" p:name="accelIndicator" id="c5439c9d93994adfb447eb738defbec9"/>
-        </g><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.WindowsXP.Widgets:Label" id="f2a6e10d7b394b35a3efc379a815b109" transform="matrix(1, 0, 0, 1, 504, 304)" p:parentRef="#77aba34df25544ab938a29927e57d5f0"><p:metadata><p:property name="disabled"><![CDATA[false]]></p:property><p:property name="label"><![CDATA[loop]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textFont"><![CDATA[Tahoma|normal|normal|11px|none]]></p:property><p:childTargets/></p:metadata>
-              <text y="11" x="0" style="font-size: 11px; font-style: normal; font-weight: normal; text-align: left; text-anchor: start; dominant-baseline: auto; fill: rgb(0, 0, 0); font-family: Tahoma; fill-opacity: 1; text-decoration: none;" xml:space="preserve" p:name="text" id="17b9ec864d544e4ab6d91ec8ed3cb70b">loop</text><path id="17b9ec864d544e4ab6d91ec8ed3cb70b_underline" style="fill: none; stroke-width: 1px; visibility: hidden;"/><path id="4eefe415943d4ef6b92d365cc0e8c8d4" style="fill: none; stroke-width: 1px; visibility: hidden;"/>
-             <path style="fill: none; stroke-width: 1px; visibility: hidden;" p:name="accelIndicator" id="430fbd22f12943cb824ea5ca71f40076"/>
         </g><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.WindowsXP.Widgets:Button" id="184068076cb5436f9db5f1949645e1d7" transform="matrix(1, 0, 0, 1, 353, 355)" p:parentRef="#77aba34df25544ab938a29927e57d5f0"><p:metadata><p:property name="box"><![CDATA[82,38]]></p:property><p:property name="buttonText"><![CDATA[loop]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textFont"><![CDATA[Tahoma|normal|normal|11px|none]]></p:property><p:property name="textAlign"><![CDATA[1,1]]></p:property><p:property name="disabled"><![CDATA[false]]></p:property><p:property name="defaultButton"><![CDATA[false]]></p:property><p:childTargets/></p:metadata>
             <defs p:name="defs2177" id="a279ab7944a54a29809057f8ecb5c4fc">
@@ -115,35 +71,5 @@
             <text x="32" y="23" style="text-align: left; text-anchor: start; dominant-baseline: auto; fill: rgb(0, 0, 0); fill-opacity: 1; font-family: Tahoma; font-size: 11px; font-weight: normal; font-style: normal; text-decoration: none;" xml:space="preserve" p:name="text" id="68e4150b96154438b08871431c42af31">loop</text><path id="68e4150b96154438b08871431c42af31_underline" style="fill: none; stroke-width: 1px; visibility: hidden;"/><path id="ba660051dc0d43c39c7020521b718cf7" style="fill: none; stroke-width: 1px; visibility: hidden;"/><path id="a7abb683c2ea4c8fa74992c510bce823" style="fill: none; stroke-width: 1px; visibility: hidden;"/>
             <path style="fill: none; stroke-width: 1px; visibility: hidden;" p:name="accelIndicator" id="13325e31108445428c9cb7bb1c743962"/>
-        </g><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.WindowsXP.Widgets:Combo" id="de283ce44c824c4fabb013da6c69ccc8" transform="matrix(1, 0, 0, 1, 475, 333)" p:parentRef="#77aba34df25544ab938a29927e57d5f0"><p:metadata><p:childTargets/><p:property name="box"><![CDATA[53,25]]></p:property><p:property name="buttonText"><![CDATA[speed]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textFont"><![CDATA[Tahoma|normal|normal|11px|none]]></p:property><p:property name="textAlign"><![CDATA[0,1]]></p:property><p:property name="disabled"><![CDATA[false]]></p:property><p:property name="focused"><![CDATA[false]]></p:property></p:metadata>
-
-          <defs p:name="defs2177" id="abde33ce257e474d99bfa4fdcaa2e1c9">
-            <linearGradient x1="0%" y1="0%" x2="100%" y2="100%" p:name="linearGradient4129" id="9a0bb46a44b447f4bf317e79d85ac94d">
-              <stop style="stop-color: rgb(231, 238, 255); stop-opacity: 1;" offset="0" p:name="stop1" id="a748897c43af42e8828de94990e9428f"/>
-              <stop style="stop-color: rgb(174, 200, 247); stop-opacity: 1;" offset="1" p:name="stop2" id="47aad9ef488c4f11aeb71d6830dd5052"/>
-            </linearGradient>
-          </defs>
-            <rect width="52" height="24" x="0.5" y="0.5" style="opacity: 1; color: rgb(0, 0, 0); fill: rgb(255, 255, 255); fill-opacity: 1; fill-rule: nonzero; stroke: none;" p:name="bgRect1" id="01737408e203470b80559a1b471dce08"/>
-            <rect width="20" height="25" x="33" y="0" style="opacity: 1; color: rgb(0, 0, 0); fill: rgb(255, 255, 255); fill-opacity: 1; fill-rule: nonzero; stroke: none;" p:name="bgRect2" id="6a90143772d1498eb6888216bb5dd955"/>
-            <rect width="52" height="24" x="0.5" y="0.5" style="overflow: visible; marker: none; opacity: 1; color: rgb(0, 0, 0); fill: none; fill-opacity: 1; fill-rule: nonzero; stroke: rgb(127, 157, 185); stroke-width: 1; stroke-linecap: square; stroke-linejoin: miter; stroke-miterlimit: 4; stroke-dasharray: none; stroke-dashoffset: 0pt; stroke-opacity: 1; visibility: visible; display: inline;" p:name="rect" id="3a93ef9704e64e598b29c724e8e6c48f"/>
-            <rect width="16" height="20" rx="1" ry="1" x="34.5" y="2.5" style="overflow: visible; marker: none; opacity: 1; color: rgb(0, 0, 0); fill: url(#9a0bb46a44b447f4bf317e79d85ac94d) rgb(0, 0, 0); fill-opacity: 1; fill-rule: nonzero; stroke: rgb(195, 211, 248); stroke-width: 0.969547; stroke-linecap: square; stroke-linejoin: miter; stroke-miterlimit: 4; stroke-dasharray: none; stroke-dashoffset: 0pt; stroke-opacity: 1; visibility: visible; display: inline;" p:name="dropRect" id="6421ab2da8b64532b63b3f08cc63fdda"/>
-            <path d="M 46.5,10.5 L 42.5,14.5 L 38.5,10.5" style="overflow: visible; marker: none; color: rgb(0, 0, 0); fill: none; fill-opacity: 1; fill-rule: nonzero; stroke: rgb(77, 97, 133); stroke-width: 2; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 4; stroke-dashoffset: 0pt; stroke-opacity: 1; visibility: visible; display: inline;" p:name="marker" id="f87c27d99a9e4cc79c895cb4aa27819c"/>
-            <rect width="29" height="20" x="2.5" y="2.5" style="opacity: 1; color: rgb(0, 0, 0); fill: rgb(49, 106, 197); fill-opacity: 1; fill-rule: nonzero; stroke: rgb(255, 255, 255); stroke-dasharray: 1, 1; visibility: hidden;" p:name="focusRect" id="8b9ebc8174824468b6653cc7c93a38b8"/>
-            <text x="5" y="17" style="text-align: left; text-anchor: start; dominant-baseline: auto; fill: rgb(0, 0, 0); fill-opacity: 1; font-family: Tahoma; font-size: 11px; font-weight: normal; font-style: normal; text-decoration: none;" xml:space="preserve" p:name="text" id="22d8c91ba6ec4f9bb357c265e24221c9">speed</text><path id="22d8c91ba6ec4f9bb357c265e24221c9_underline" style="fill: none; stroke-width: 1px; visibility: hidden;"/>
-          </g><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.WindowsXP.Widgets:Combo" id="4361bf5e2f404f93a1b37460b665fb1d" transform="matrix(1, 0, 0, 1, 475, 367)" p:parentRef="#77aba34df25544ab938a29927e57d5f0"><p:metadata><p:property name="box"><![CDATA[53,25]]></p:property><p:property name="buttonText"><![CDATA[FF speed]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textFont"><![CDATA[Tahoma|normal|normal|11px|none]]></p:property><p:property name="textAlign"><![CDATA[0,1]]></p:property><p:property name="disabled"><![CDATA[false]]></p:property><p:property name="focused"><![CDATA[false]]></p:property><p:childTargets/></p:metadata>
-
-          <defs p:name="defs2177" id="ad2e69aa4d5b45a184f4b4b72e7b3758">
-            <linearGradient x1="0%" y1="0%" x2="100%" y2="100%" p:name="linearGradient4129" id="c7c6fa2b36024f84af1918db00d069fe">
-              <stop style="stop-color: rgb(231, 238, 255); stop-opacity: 1;" offset="0" p:name="stop1" id="82708fd98d0c4beb9cb7812eebf2bcc9"/>
-              <stop style="stop-color: rgb(174, 200, 247); stop-opacity: 1;" offset="1" p:name="stop2" id="f6b2132670e241aab45e4b4d74bcd913"/>
-            </linearGradient>
-          </defs>
-            <rect width="52" height="24" x="0.5" y="0.5" style="opacity: 1; color: rgb(0, 0, 0); fill: rgb(255, 255, 255); fill-opacity: 1; fill-rule: nonzero; stroke: none;" p:name="bgRect1" id="2db01d61b7e840dd89f01bdc473f279f"/>
-            <rect width="20" height="25" x="33" y="0" style="opacity: 1; color: rgb(0, 0, 0); fill: rgb(255, 255, 255); fill-opacity: 1; fill-rule: nonzero; stroke: none;" p:name="bgRect2" id="638bbe1daebb4b1f8b40dc1ec6e57ec0"/>
-            <rect width="52" height="24" x="0.5" y="0.5" style="overflow: visible; marker: none; opacity: 1; color: rgb(0, 0, 0); fill: none; fill-opacity: 1; fill-rule: nonzero; stroke: rgb(127, 157, 185); stroke-width: 1; stroke-linecap: square; stroke-linejoin: miter; stroke-miterlimit: 4; stroke-dasharray: none; stroke-dashoffset: 0pt; stroke-opacity: 1; visibility: visible; display: inline;" p:name="rect" id="25efc6df26294acdb52e0ca3e8b63a41"/>
-            <rect width="16" height="20" rx="1" ry="1" x="34.5" y="2.5" style="overflow: visible; marker: none; opacity: 1; color: rgb(0, 0, 0); fill: url(#c7c6fa2b36024f84af1918db00d069fe) rgb(0, 0, 0); fill-opacity: 1; fill-rule: nonzero; stroke: rgb(195, 211, 248); stroke-width: 0.969547; stroke-linecap: square; stroke-linejoin: miter; stroke-miterlimit: 4; stroke-dasharray: none; stroke-dashoffset: 0pt; stroke-opacity: 1; visibility: visible; display: inline;" p:name="dropRect" id="8289dd0ee5c447ebbd27d9d9337d86d1"/>
-            <path d="M 46.5,10.5 L 42.5,14.5 L 38.5,10.5" style="overflow: visible; marker: none; color: rgb(0, 0, 0); fill: none; fill-opacity: 1; fill-rule: nonzero; stroke: rgb(77, 97, 133); stroke-width: 2; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 4; stroke-dashoffset: 0pt; stroke-opacity: 1; visibility: visible; display: inline;" p:name="marker" id="9a590a15fc34452cb772bcc473f40fc5"/>
-            <rect width="29" height="20" x="2.5" y="2.5" style="opacity: 1; color: rgb(0, 0, 0); fill: rgb(49, 106, 197); fill-opacity: 1; fill-rule: nonzero; stroke: rgb(255, 255, 255); stroke-dasharray: 1, 1; visibility: hidden;" p:name="focusRect" id="1ba00f28ddf342e3901927a34e5f33f7"/>
-            <text x="5" y="17" style="text-align: left; text-anchor: start; dominant-baseline: auto; fill: rgb(0, 0, 0); fill-opacity: 1; font-family: Tahoma; font-size: 11px; font-weight: normal; font-style: normal; text-decoration: none;" xml:space="preserve" p:name="text" id="bd924d1ecf7849d1840ce18fbc802f1e">FF speed</text><path id="bd924d1ecf7849d1840ce18fbc802f1e_underline" style="fill: none; stroke-width: 1px; visibility: hidden;"/><path id="de0c42a1ed2648a4a3f49c3bb6f967a5" style="fill: none; stroke-width: 1px; visibility: hidden;"/>
-          </g><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.WindowsXP.Widgets:Button" id="17686154d646406fa03ed05f53c77a30" transform="matrix(1, 0, 0, 1, 133, 370)" p:parentRef="#77aba34df25544ab938a29927e57d5f0"><p:metadata><p:property name="box"><![CDATA[80,25]]></p:property><p:property name="buttonText"><![CDATA[<-]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textFont"><![CDATA[Tahoma|normal|normal|11px|none]]></p:property><p:property name="textAlign"><![CDATA[1,1]]></p:property><p:property name="disabled"><![CDATA[false]]></p:property><p:property name="defaultButton"><![CDATA[false]]></p:property><p:childTargets/></p:metadata>
+        </g><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.WindowsXP.Widgets:Button" id="17686154d646406fa03ed05f53c77a30" transform="matrix(1, 0, 0, 1, 133, 370)" p:parentRef="#77aba34df25544ab938a29927e57d5f0"><p:metadata><p:property name="box"><![CDATA[80,25]]></p:property><p:property name="buttonText"><![CDATA[<-]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textFont"><![CDATA[Tahoma|normal|normal|11px|none]]></p:property><p:property name="textAlign"><![CDATA[1,1]]></p:property><p:property name="disabled"><![CDATA[false]]></p:property><p:property name="defaultButton"><![CDATA[false]]></p:property><p:childTargets/></p:metadata>
             <defs p:name="defs2177" id="0fcd066fbb83416892d325c0ddf8b422">
                 <linearGradient x1="0%" y1="0%" x2="0%" y2="100%" p:name="linearGradient4109" id="be98056198ed439c8ca73730a18cb76f">
@@ -183,3 +109,13 @@
               <text y="11" x="0" style="font-size: 11px; font-style: normal; font-weight: normal; text-align: left; text-anchor: start; dominant-baseline: auto; fill: rgb(0, 0, 0); font-family: Tahoma; fill-opacity: 1; text-decoration: none;" xml:space="preserve" p:name="text" id="ad37c12529694116827f55438573f1d0">x/12345s</text><path id="ad37c12529694116827f55438573f1d0_underline" style="fill: none; stroke-width: 1px; visibility: hidden;"/>
              <path style="fill: none; stroke-width: 1px; visibility: hidden;" p:name="accelIndicator" id="578c3c87710a4b04af07917366b26701"/>
+        </g><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.NativeGUI:Scrollbar" id="c392bddd5ba040f0ad578325e74b522d" transform="matrix(-1, -8.74228e-08, 8.74228e-08, -1, 516, 303)" p:parentRef="#77aba34df25544ab938a29927e57d5f0"><p:metadata><p:childTargets/><p:property name="box"><![CDATA[25,247]]></p:property><p:property name="startHandle"><![CDATA[6.25,129]]></p:property><p:property name="disabled"><![CDATA[false]]></p:property></p:metadata>
+            <foreignObject x="0" y="0" width="25" height="247" p:name="htmlObject" id="93f878d322384717bf71cf65e532ecff">
+                <html:div xmlns:html="http://www.w3.org/1999/xhtml" style="overflow: hidden; -moz-box-sizing: border-box; position: relative; line-height: 0px ! important; font-size: 0px; width: 25px; height: 247px;" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" p:name="div" id="f7de80235a3f4e0e9b65ce8a9ded1139">
+                <scrollbar orient="vertical" style="margin: 0px ! important; padding: 0px ! important; min-height: 0px ! important; min-width: 0px ! important; -moz-box-sizing: border-box; width: 25px; height: 247px;" p:name="xulControl" id="d0ae84b1f4ef44eaa06762af35557989" width="25" height="247" disabled="false" maxpos="100" curpos="52.22672064777328"/>
+                    <html:div style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;"/>
+                </html:div>
+            </foreignObject>
+        </g><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.WindowsXP.Widgets:Label" id="8ad09f34263a4c648771a64d9efa0b86" transform="matrix(1, 0, 0, 1, 492, 310)" p:parentRef="#77aba34df25544ab938a29927e57d5f0"><p:metadata><p:childTargets/><p:property name="disabled"><![CDATA[false]]></p:property><p:property name="label"><![CDATA[speed]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textFont"><![CDATA[Tahoma|normal|normal|11px|none]]></p:property></p:metadata>
+              <text y="10" x="0" style="font-size: 11px; font-style: normal; font-weight: normal; text-align: left; text-anchor: start; dominant-baseline: auto; fill: rgb(0, 0, 0); font-family: Tahoma; fill-opacity: 1; text-decoration: none;" xml:space="preserve" p:name="text" id="3e2bd01fa1f1460180d3c05f74d5ab4f">speed</text><path id="3e2bd01fa1f1460180d3c05f74d5ab4f_underline" style="fill: none; stroke-width: 1px; visibility: hidden;"/><path id="c9124cc1ae8f4535b0fff30422e66103" style="fill: none; stroke-width: 1px; visibility: hidden;"/>
+             <path style="fill: none; stroke-width: 1px; visibility: hidden;" p:name="accelIndicator" id="cd15e8ded7d44b1da5420c39e7dab8a3"/>
         </g></Content></Page></Pages></Document>
Index: /applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/PositionLayer.java
===================================================================
--- /applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/PositionLayer.java	(revision 21294)
+++ /applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/PositionLayer.java	(revision 21295)
@@ -1,8 +1,15 @@
 package org.openstreetmap.josm.plugins.videomapping;
+
+
+import java.util.Iterator;
+import java.util.Timer;
+import java.util.TimerTask;
 
 import java.awt.Color;
 import java.awt.Component;
+import java.awt.Dimension;
 import java.awt.Graphics2D;
 import java.awt.Point;
+import java.awt.Rectangle;
 import java.awt.event.MouseEvent;
 import java.awt.event.MouseListener;
@@ -15,4 +22,6 @@
 import org.openstreetmap.josm.data.Bounds;
 import org.openstreetmap.josm.data.gpx.GpxData;
+import org.openstreetmap.josm.data.osm.DataSet;
+import org.openstreetmap.josm.data.osm.Node;
 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
 import org.openstreetmap.josm.gui.MapView;
@@ -23,9 +32,26 @@
 
 public class PositionLayer extends Layer implements MouseListener {
-	private GpxData gps;
-	public PositionLayer(String name,GpxData gps) {
+	private DataSet ds;
+	private Node sel;
+	private Iterator<Node> it;
+		
+	public PositionLayer(String name, final DataSet ds) {
 		super(name);		
-		this.gps = gps;
-		Main.map.mapView.addMouseListener(this);
+		this.ds = ds;
+		Main.map.mapView.addMouseListener(this);		
+		Timer t  = new Timer();
+		it=ds.getNodes().iterator();
+		
+		t.schedule(new TimerTask() {
+			
+			@Override
+			public void run() {
+				// TODO Auto-generated method stub
+				sel=it.next();
+				System.out.println(sel.getTimestamp());
+				Main.map.mapView.repaint();
+			}
+		},1000,1000);
+		
 	}
 
@@ -60,4 +86,5 @@
 	}
 
+	// no merging nescesarry
 	@Override
 	public boolean isMergable(Layer arg0) {
@@ -67,12 +94,31 @@
 	@Override
 	public void mergeFrom(Layer arg0) {
-		// no merging nescesarry
+		
 	}
 
+	
+	
 	@Override
+	//Draw the current position
 	public void paint(Graphics2D g, MapView map, Bounds bound) {
-		//TODO this is just an blue screen test
-		g.setColor(Color.BLUE);
-		g.fillRect(0, 0, map.getWidth(),map.getHeight());
+		Point p;
+		for(Node n: ds.getNodes()) {
+			p = Main.map.mapView.getPoint(n.getEastNorth());
+			if(n.isHighlighted())
+			{
+				g.setColor(Color.red);
+				g.drawString(n.getTimestamp().toString(), p.x+10, p.y);
+			}
+			else
+			{
+				g.setColor(Color.green);
+			}
+			g.drawOval(p.x - 2, p.y - 2, 4, 4); // small circles
+		}
+		if (sel!=null){
+			p=Main.map.mapView.getPoint(sel.getEastNorth());;
+			g.setColor(Color.CYAN);
+			g.drawRect(p.x, p.y, 100, 100);
+		};
 	}
 
@@ -84,19 +130,28 @@
 
 	//jump to the right position in video
-	public void mouseClicked(MouseEvent e) {
+	public void mouseClicked(MouseEvent e) {		
+		//only on leftclicks of our layer
 		if(e.getButton() == MouseEvent.BUTTON1) {
-			if(Main.map.mapView.getActiveLayer() == this) {
-				//only on leftclicks of our layer
-				getNearestPoint(e.getPoint());
-			}
+			JOptionPane.showMessageDialog(Main.parent,"test");
+			getNearestNode(e.getPoint());
+			Main.map.mapView.repaint();
 		}
 		
 	}
 
-	//finds the corresponding timecode in GPXtrack
-	private Point getNearestPoint(Point point) {
-
-		return point;
-		
+	//finds the corresponding timecode in GPXtrack by given screen coordinates
+	private void getNearestNode(Point mouse) {
+		Point p;
+		Rectangle rect = new Rectangle(mouse, new Dimension(30, 30));		
+		//iterate through all possible notes
+		for(Node node : ds.getNodes())
+		{
+			p = Main.map.mapView.getPoint(node);
+			if (rect.contains(p))
+			{				
+				node.setHighlighted(true);
+			}
+			
+		}	
 	}
 
Index: /applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/VideoAction.java
===================================================================
--- /applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/VideoAction.java	(revision 21294)
+++ /applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/VideoAction.java	(revision 21295)
@@ -3,4 +3,6 @@
 import java.awt.event.ActionEvent;
 import java.io.File;
+import java.util.List;
+
 
 import javax.swing.JFileChooser;
@@ -9,5 +11,10 @@
 import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.actions.JosmAction;
-import org.openstreetmap.josm.data.gpx.GpxData;
+import org.openstreetmap.josm.data.gpx.*;
+import org.openstreetmap.josm.data.osm.DataSet;
+import org.openstreetmap.josm.data.osm.Node;
+import org.openstreetmap.josm.data.osm.Way;
+import org.openstreetmap.josm.gui.layer.GpxLayer;
+import org.openstreetmap.josm.tools.DateUtils;
 import org.openstreetmap.josm.tools.Shortcut;
 import static org.openstreetmap.josm.gui.help.HelpUtil.ht;
@@ -17,4 +24,6 @@
 
 	private GpxData gps;
+	private DataSet ds; //all extracted GPS points
+	private List<WayPoint> ls;
 
 	public VideoAction() {
@@ -25,42 +34,34 @@
 	public void actionPerformed(ActionEvent arg0) {
 	
-//		JFileChooser fc = new JFileChooser();
-//		fc.setAcceptAllFileFilterUsed( false );
-//		fc.setFileFilter( new VideoFileFilter() );
-//		if (fc.showOpenDialog( Main.parent )==JFileChooser.APPROVE_OPTION)
-//		{
-//			VideoWindow w = new VideoWindow(fc.getSelectedFile());
-//		}
-		Main.main.addLayer(new PositionLayer("test",gps));
+		copyGPSLayer();
+		Main.main.addLayer(new PositionLayer("test",ds));
 	}
-	
-	//restrict the file chooser
-	private class VideoFileFilter extends FileFilter {
-
-		@Override
-		public boolean accept(File f) {
-		    
-		    String ext3 = ( f.getName().length() > 4 ) ?  f.getName().substring( f.getName().length() - 4 ).toLowerCase() : "";
-		    String ext4 = ( f.getName().length() > 5 ) ?  f.getName().substring( f.getName().length() - 5 ).toLowerCase() : "";
-
-		    // TODO: check what is supported by JMF or if there is a build in filter
-		    return ( f.isDirectory() 
-		    	||	ext3.equals( ".avi" )
-		    	||	ext4.equals( ".wmv" )
-		    	||	ext3.equals( ".mpg" )
-		    	);
-		}
-
-
-		@Override
-		public String getDescription() {
-			return tr("Video files");
-		}
 		
-	}
 	
 	public void setGps(GpxData gps) {
 		this.gps = gps;
 	}
+	
+	//makes a private flat copy for interaction
+	private void copyGPSLayer()
+	{
+		//TODO we assume that GPS points are in the correct order! 
+		ds = new DataSet();
+            for (GpxTrack trk : gps.tracks) {
+                for (GpxTrackSegment segment : trk.getSegments()) {
+                    Way w = new Way();
+                    for (WayPoint p : segment.getWayPoints()) {
+                        Node n = new Node(p.getCoor());
+                        String timestr = p.getString("time");
+                        if(timestr != null)
+                            n.setTimestamp(DateUtils.fromString(timestr));
+                        ds.addPrimitive(n);
+                        w.addNode(n);
+                        //ls.add
+                    }
+                    ds.addPrimitive(w);
+                }
+            }
+	}
 
 }
Index: /applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/VideoMappingPlugin.java
===================================================================
--- /applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/VideoMappingPlugin.java	(revision 21294)
+++ /applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/VideoMappingPlugin.java	(revision 21295)
@@ -30,5 +30,5 @@
 		super(info);
 		//Register for GPS menu
-		VMenu = Main.main.menu.addMenu(tr("Video"), KeyEvent.VK_V, Main.main.menu.defaultMenuPos,ht("/Plugin/Videomapping"));
+		VMenu = Main.main.menu.addMenu(tr(" Video"), KeyEvent.VK_V, Main.main.menu.defaultMenuPos,ht("/Plugin/Videomapping"));//TODO no more ugly " video" hack
 		VMenu.setEnabled(false); //enabled only on GPS Layers
 		VAction = new VideoAction();
Index: /applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/VideoWindow.java
===================================================================
--- /applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/VideoWindow.java	(revision 21294)
+++ /applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/VideoWindow.java	(revision 21295)
@@ -2,4 +2,5 @@
 
 import java.awt.BorderLayout;
+import java.awt.Canvas;
 import java.awt.Component;
 import java.awt.GraphicsConfiguration;
@@ -7,8 +8,4 @@
 import java.io.File;
 import java.io.IOException;
-import javax.media.CannotRealizeException;
-import javax.media.Manager;
-import javax.media.NoPlayerException;
-import javax.media.Player;
 
 import javax.swing.JFrame;
@@ -16,32 +13,22 @@
 import org.openstreetmap.josm.Main;
 
+import uk.co.caprica.vlcj.player.*;
+
 public class VideoWindow extends JFrame {
 
-	/**
-	 * 
-	 */
 	private static final long serialVersionUID = 2099614201397118560L;
 
 	public VideoWindow(File vfile) throws HeadlessException {
 		super();
+		MediaPlayerFactory mediaPlayerFactory = new MediaPlayerFactory(null);
+		FullScreenStrategy fullScreenStrategy = new DefaultFullScreenStrategy(this);
+		MediaPlayer mediaPlayer = mediaPlayerFactory.newMediaPlayer(fullScreenStrategy);
+		mediaPlayer.setStandardMediaOptions(null);
+		//mediaPlayer.addMediaPlayerEventListener
+		Canvas videoSurface = new Canvas();		
+		mediaPlayer.setVideoSurface(videoSurface);
+		add(videoSurface);
 		try {
-			setTitle(vfile.getCanonicalPath());
-			setSize(200,200);			
-			setAlwaysOnTop(true);
-			
-			try {
-				setLayout( new BorderLayout());
-				Player mediaPlayer = Manager.createRealizedPlayer( vfile.toURL() );
-				 Component video = mediaPlayer.getVisualComponent();
-				 Component controls = mediaPlayer.getControlPanelComponent();
-				add( video, BorderLayout.CENTER );
-				add( controls, BorderLayout.SOUTH );
-			} catch (NoPlayerException e) {
-				// TODO Auto-generated catch block
-				e.printStackTrace();
-			} catch (CannotRealizeException e) {
-				// TODO Auto-generated catch block
-				e.printStackTrace();
-			}
+			mediaPlayer.playMedia(vfile.getCanonicalPath(),null);
 		} catch (IOException e) {
 			// TODO Auto-generated catch block
@@ -49,5 +36,6 @@
 		}
 		setVisible(true);		
-		
+		mediaPlayer.release();
+		mediaPlayerFactory.release();
 	}
 
Index: /applications/editors/josm/plugins/videomapping/test/videotest.java
===================================================================
--- /applications/editors/josm/plugins/videomapping/test/videotest.java	(revision 21295)
+++ /applications/editors/josm/plugins/videomapping/test/videotest.java	(revision 21295)
@@ -0,0 +1,18 @@
+
+public class videotest {
+
+	/**
+	 * @param args
+	 */
+	public static void main(String[] args) {
+//		JFileChooser fc = new JFileChooser();
+//		fc.setAcceptAllFileFilterUsed( false );
+//		fc.setFileFilter( new VideoFileFilter() );
+//		if (fc.showOpenDialog( Main.parent )==JFileChooser.APPROVE_OPTION)
+//		{
+//			VideoWindow w = new VideoWindow(fc.getSelectedFile());
+//		}
+
+	}
+
+}
