web/player_embed.php
changeset 694 e9400c80e1e4
parent 685 b48fe0f2d5b1
child 719 d0d3a9369f84
--- a/web/player_embed.php	Mon Oct 15 14:34:47 2012 +0200
+++ b/web/player_embed.php	Tue Oct 02 14:40:14 2012 +0200
@@ -55,51 +55,45 @@
         url: '<?php echo get_metadata_url($metadata_url) ?>?callback=?',
         format: 'ldt'
     };
-    var _config = {            
-        gui: {
-            width: 630,
-            container: 'LdtPlayer',
-            default_options: {
-                metadata: _metadata
+    var _config = {
+        width: 630,
+        container: 'LdtPlayer',
+        default_options: {
+            metadata: _metadata
+        },
+        css:'<?php echo(registry_url('metadataplayer','css'));?>',
+        widgets: [
+            {
+                type: "JwpPlayer",
+                live: true, 
+                height: 300,
+                provider: "rtmp"
             },
-            css:'<?php echo(registry_url('metadataplayer','css'));?>',
-            widgets: [
 <?php if ($protocol_level > 1): ?>
-                {
-                    type: "Polemic"
+            {
+                type: "Polemic"
 <?php if ($protocol_level < 3): ?>
-                    ,
-                    polemics: []
-<?php endif; ?>
-                },
+                ,
+                polemics: []
 <?php endif; ?>
-                { type: "Slider" },
-                {
-                    type: "Controller",
-                    disable_annotate_btn: true
-                },
-                {
-                    type: "Segments",
-                    annotation_type: [ "chap", "découpage" ]
-                },
-                { type: "Arrow" },
-                {
-                    type: "Annotation",
-                    annotation_type: [ "chap", "découpage" ]
-                },
-                { type: "Tweet" },
-                { type: "Mediafragment"}
-            ]
-        },
-        player:{
-            type:'jwplayer', // player type
-            live: true, 
-            height: 300, 
-            width: 630, 
-            provider: "rtmp",
-            autostart: true,
-            metadata: _metadata
-        }
+            },
+<?php endif; ?>
+            { type: "Slider" },
+            {
+                type: "Controller",
+                disable_annotate_btn: true
+            },
+            {
+                type: "Segments",
+                annotation_type: [ "chap", "découpage" ]
+            },
+            {
+                type: "Annotation",
+                annotation_type: [ "chap", "découpage" ]
+            },
+            { type: "Tweet" },
+            { type: "Mediafragment"}
+        ]
     };
     </script>
     <script type="text/javascript">