--- a/test/jwplayer.htm Fri May 04 16:56:41 2012 +0200
+++ b/test/jwplayer.htm Mon May 07 15:25:52 2012 +0200
@@ -1,69 +1,21 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr">
+<!doctype html>
+<html>
-<head>
-<title>Metadataplayer - Test with JwPlayer</title>
-</head>
+ <head>
+ <title>Metadataplayer test with JwPlayer</title>
+ <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
+ <link href='test.css' rel='stylesheet' type='text/css'>
+ <script type="text/javascript" src="../build/LdtPlayer-core.js" type="text/javascript"></script>
+ <script type="text/javascript" src="test-config.js" type="text/javascript"></script>
+ </head>
-<body>
- <script type="text/javascript" src="../build/LdtPlayer-core.js" type="text/javascript"></script>
-
- <div id="LdtPlayer"></div>
-
- <script type="text/javascript">
- IriSP.libFiles.defaultDir = "../src/js/libs/";
- IriSP.widgetsDir = "../src/widgets"
- IriSP.jwplayer_swf_path = "player.swf";
- var _metadata = {
- url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/f1a17368-2bc8-11e1-b21a-00145ea49a02?callback=?',
- format: 'ldt'
- };
- var _config = {
- gui: {
- width:620,
- container:'LdtPlayer',
- default_options: {
- metadata: _metadata
- },
- css:'../src/css/LdtPlayer-core.css',
- widgets: [
- { type: "Sparkline" },
- { type: "Slider" },
- { type: "Controller" },
- { type: "Polemic" },
- { type: "Segments" },
- { type: "Slice" },
- { type: "Arrow" },
- { type: "Annotation" },
- { type: "Tweet" },
- { type: "Tagcloud" },
- {
- type: "AnnotationsList",
- //ajax_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?",
- //foreign_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}}",
- container: "AnnotationsListContainer"
- },
- { type: "Mediafragment"},
-/* {
- type: "Trace",
- js_console: true
- }
-*/ ]
- },
- player:{
- type:'jwplayer', // player type
- live: true,
- height: 350,
- width: 620,
- provider: "rtmp" ,
- autostart: true
- }
- };
-
- var _myPlayer = new IriSP.Metadataplayer(_config, _metadata);
- </script>
-
- <div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 0;"></div>
-
- </body>
- </html>
+ <body>
+ <h1>Metadataplayer test with JwPlayer</h1>
+ <div id="LdtPlayer"></div>
+ <div id="AnnotationsListContainer"></div>
+ <script type="text/javascript">
+ IriSP.jwplayer_swf_path = "player.swf";
+ testConfig('json/ldt-jwplayer.json', true);
+ </script>
+ </body>
+</html>