integration/edition.html
changeset 16 c66274d0d850
parent 11 e5feaa369ccc
child 18 16b482c153fd
--- a/integration/edition.html	Thu May 16 15:48:26 2013 +0200
+++ b/integration/edition.html	Thu May 16 17:42:41 2013 +0200
@@ -447,37 +447,20 @@
 	<script src="js/common.js"></script>
     <script src="js/edition.js"></script>
     <script>
+    var spinParam = {
+	    imageBasePath :'lib/spin/img/',
+	    max:60,
+	    min:0
+	};
+
     /* Initialisation du metadataplayer avec un projet vide */
-    
     var myDir = new IriSP.Model.Directory(),
         myProject = myDir.remoteSource({
                 url: "data/empty-project.json",
                 serializer: IriSP.serializers.ldt
-            });
-    
-    myProject.onLoad(function() {
-        
-        $(".project-title").text(myProject.title);
-        
-        var myMedia = myProject.getCurrentMedia();
-        
-        IriSP.htmlPlayer(
-            myMedia,
-            $(".main-video"),
-            {
-                width: 460,
-                height: 345,
-                controls: true,
-                autostart: true
-            }
-        );
-        
-        myMedia.on("timeupdate", function(t) {
-            var pos = $(".chapitre-cut-wrap").width() * t / myMedia.duration;
-            $(".indicateur-chapter").css("left",pos);
-        });
-        
-    });
+            }),
+        myMedia = null;
+
     </script>
 </body>
 </html>
\ No newline at end of file