test/integration/polemic.htm
author veltr
Mon, 23 Apr 2012 19:11:08 +0200
branchnew-model
changeset 875 43629caa77bc
parent 874 38b65761a7d5
child 876 03967b6ada7c
permissions -rw-r--r--
Big refactoring of widget files + started migration of segmentwidget
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
178
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
     2
<html dir="ltr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" lang="fr">
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
     3
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
     4
<head>
208
49c7eec0955d a couple changes to the integration testing file.
hamidouk
parents: 193
diff changeset
     5
<title>Metadataplayer - Polemic tweet integration test</title>
178
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
     6
</head>
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
     7
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
     8
<body>
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
     9
213
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    10
  <div style="width:650px;font-family: 'Trebuchet MS', 'Helvetica', 'Arial',  'Verdana', 'sans-serif';">
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    11
  <h1>MetaDataPlayer</h1>
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    12
  Polemic tweet integration test - using Popcorn, jwplayer and the <a href="http://polemictweet.com">PolemicTweet</a> widget.<br>
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    13
  </div>
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    14
  
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    15
  
178
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    16
 <!-- START Integration  ###################################### -->
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    17
 <!-- SIMPLE PLAYER EXPERIMENTATION -->
875
43629caa77bc Big refactoring of widget files + started migration of segmentwidget
veltr
parents: 874
diff changeset
    18
  <script type="text/javascript" src="../../build/LdtPlayer-core.js" type="text/javascript"></script>   
213
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    19
  
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    20
  <div id="video"></div>
829
ae16691d183d Corrected segments widget, added excludePattern option to tagcloud widget
veltr
parents: 827
diff changeset
    21
  <div id="LdtPlayer"></div>
213
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    22
  
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    23
  <script  type="text/javascript">
842
4ae2247a59f4 Changes for Cinecast
veltr
parents: 835
diff changeset
    24
  IriSP.libFiles.defaultDir = "/metadataplayer/src/js/libs/";
875
43629caa77bc Big refactoring of widget files + started migration of segmentwidget
veltr
parents: 874
diff changeset
    25
  IriSP.widgetsDir = "/metadataplayer/src/widgets"
830
18ca612e9ff0 Lots of changes
veltr
parents: 829
diff changeset
    26
IriSP.jwplayer_swf_path = "../libs/player.swf";
868
a525cc2214e7 Started big refactoring
veltr
parents: 866
diff changeset
    27
    var _metadata = {
870
2c025db10a10 Migrated playerWidget and started annotationsListWidget
veltr
parents: 868
diff changeset
    28
        url: 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/13b0aa52-336b-11e0-b233-00145ea49a02?callback=?',
868
a525cc2214e7 Started big refactoring
veltr
parents: 866
diff changeset
    29
        format: 'ldt'
a525cc2214e7 Started big refactoring
veltr
parents: 866
diff changeset
    30
    };
a525cc2214e7 Started big refactoring
veltr
parents: 866
diff changeset
    31
    var _config = {            
870
2c025db10a10 Migrated playerWidget and started annotationsListWidget
veltr
parents: 868
diff changeset
    32
        gui: {
872
d777d05a16e4 finished AnnotationsList and started New PolemicWidget
veltr
parents: 870
diff changeset
    33
            width:640,
827
1dc2f85c3b89 BUGFIX: Tooltips are now positioned relative to their parent widget.
veltr
parents: 815
diff changeset
    34
            height:800,              
213
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    35
            container:'LdtPlayer',
810
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    36
			default_options: {
868
a525cc2214e7 Started big refactoring
veltr
parents: 866
diff changeset
    37
				metadata: _metadata
810
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    38
			},
874
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 872
diff changeset
    39
            css:'../../src/css/LdtPlayer-release.css',
213
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    40
            widgets: [
833
33a5d5882be4 Last commit before weekend
veltr
parents: 830
diff changeset
    41
 /*           {type: "PolemicWidget",
33a5d5882be4 Last commit before weekend
veltr
parents: 830
diff changeset
    42
             width: 640,
810
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    43
             height: 50,              
336
8da13562cfea segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents: 302
diff changeset
    44
             requires: [{
8da13562cfea segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents: 302
diff changeset
    45
              type: "TooltipWidget",
8da13562cfea segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents: 302
diff changeset
    46
              width: 180,
827
1dc2f85c3b89 BUGFIX: Tooltips are now positioned relative to their parent widget.
veltr
parents: 815
diff changeset
    47
              height: 160,
1dc2f85c3b89 BUGFIX: Tooltips are now positioned relative to their parent widget.
veltr
parents: 815
diff changeset
    48
             }],
866
3bf7aa8216e5 IriSP.Model.List now inherits from Array
veltr
parents: 842
diff changeset
    49
            }, 
833
33a5d5882be4 Last commit before weekend
veltr
parents: 830
diff changeset
    50
            {type: "StackGraphWidget",
33a5d5882be4 Last commit before weekend
veltr
parents: 830
diff changeset
    51
             height: 150,
33a5d5882be4 Last commit before weekend
veltr
parents: 830
diff changeset
    52
            streamgraph: true,
33a5d5882be4 Last commit before weekend
veltr
parents: 830
diff changeset
    53
             requires: [{
33a5d5882be4 Last commit before weekend
veltr
parents: 830
diff changeset
    54
              type: "TooltipWidget",
33a5d5882be4 Last commit before weekend
veltr
parents: 830
diff changeset
    55
              width: 180,
33a5d5882be4 Last commit before weekend
veltr
parents: 830
diff changeset
    56
              height: 160,
33a5d5882be4 Last commit before weekend
veltr
parents: 830
diff changeset
    57
             }],
827
1dc2f85c3b89 BUGFIX: Tooltips are now positioned relative to their parent widget.
veltr
parents: 815
diff changeset
    58
            },
835
a8af9da7c622 Integrated trace manager
veltr
parents: 833
diff changeset
    59
            {type: "SparklineWidget",
833
33a5d5882be4 Last commit before weekend
veltr
parents: 830
diff changeset
    60
             width: 640,
835
a8af9da7c622 Integrated trace manager
veltr
parents: 833
diff changeset
    61
             height: 50},
810
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    62
            {type: "PlayerWidget"},
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    63
            {type: "SegmentsWidget",
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    64
             requires: [{
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    65
              type: "TooltipWidget",
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    66
			  width: 180,
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    67
              heigh: 160,
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    68
              }],
537
61fd3968ab06 added a widget to select a slice.
hamidouk
parents: 524
diff changeset
    69
            },            
810
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    70
            {type: "SliceWidget"},            
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    71
            {type: "ArrowWidget"},
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    72
            {type: "AnnotationsWidget"},
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    73
            {type: "TweetsWidget"},
829
ae16691d183d Corrected segments widget, added excludePattern option to tagcloud widget
veltr
parents: 827
diff changeset
    74
            {type: "createAnnotationWidget"},
ae16691d183d Corrected segments widget, added excludePattern option to tagcloud widget
veltr
parents: 827
diff changeset
    75
            {type: "TagCloudWidget",
870
2c025db10a10 Migrated playerWidget and started annotationsListWidget
veltr
parents: 868
diff changeset
    76
            excludeWords: ['#museoweb']},, */
833
33a5d5882be4 Last commit before weekend
veltr
parents: 830
diff changeset
    77
//            {type: "TraceWidget"}
870
2c025db10a10 Migrated playerWidget and started annotationsListWidget
veltr
parents: 868
diff changeset
    78
                {
875
43629caa77bc Big refactoring of widget files + started migration of segmentwidget
veltr
parents: 874
diff changeset
    79
                    type: "Sparkline"
874
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 872
diff changeset
    80
                },
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 872
diff changeset
    81
                {
875
43629caa77bc Big refactoring of widget files + started migration of segmentwidget
veltr
parents: 874
diff changeset
    82
                    type: "Slider"
43629caa77bc Big refactoring of widget files + started migration of segmentwidget
veltr
parents: 874
diff changeset
    83
                },
43629caa77bc Big refactoring of widget files + started migration of segmentwidget
veltr
parents: 874
diff changeset
    84
                {
43629caa77bc Big refactoring of widget files + started migration of segmentwidget
veltr
parents: 874
diff changeset
    85
                    type: "Controller"
870
2c025db10a10 Migrated playerWidget and started annotationsListWidget
veltr
parents: 868
diff changeset
    86
                },
2c025db10a10 Migrated playerWidget and started annotationsListWidget
veltr
parents: 868
diff changeset
    87
                {
875
43629caa77bc Big refactoring of widget files + started migration of segmentwidget
veltr
parents: 874
diff changeset
    88
                    type: "Polemic"
872
d777d05a16e4 finished AnnotationsList and started New PolemicWidget
veltr
parents: 870
diff changeset
    89
                },
d777d05a16e4 finished AnnotationsList and started New PolemicWidget
veltr
parents: 870
diff changeset
    90
                {
875
43629caa77bc Big refactoring of widget files + started migration of segmentwidget
veltr
parents: 874
diff changeset
    91
                    type: "Segments"
870
2c025db10a10 Migrated playerWidget and started annotationsListWidget
veltr
parents: 868
diff changeset
    92
                },
2c025db10a10 Migrated playerWidget and started annotationsListWidget
veltr
parents: 868
diff changeset
    93
                {
875
43629caa77bc Big refactoring of widget files + started migration of segmentwidget
veltr
parents: 874
diff changeset
    94
                    type: "HelloWorld"
43629caa77bc Big refactoring of widget files + started migration of segmentwidget
veltr
parents: 874
diff changeset
    95
                },
43629caa77bc Big refactoring of widget files + started migration of segmentwidget
veltr
parents: 874
diff changeset
    96
                {
43629caa77bc Big refactoring of widget files + started migration of segmentwidget
veltr
parents: 874
diff changeset
    97
                    type: "AnnotationsList",
874
38b65761a7d5 TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents: 872
diff changeset
    98
                    ajax_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/api/ldt/segments/{{media}}/{{begin}}/{{end}}?callback=?", 
872
d777d05a16e4 finished AnnotationsList and started New PolemicWidget
veltr
parents: 870
diff changeset
    99
                    foreign_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}}",
d777d05a16e4 finished AnnotationsList and started New PolemicWidget
veltr
parents: 870
diff changeset
   100
                    annotation_type : "tweet",
870
2c025db10a10 Migrated playerWidget and started annotationsListWidget
veltr
parents: 868
diff changeset
   101
                    container: "AnnotationsListContainer"
2c025db10a10 Migrated playerWidget and started annotationsListWidget
veltr
parents: 868
diff changeset
   102
                }
213
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
   103
            ]
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
   104
        },
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
   105
      player:{
870
2c025db10a10 Migrated playerWidget and started annotationsListWidget
veltr
parents: 868
diff changeset
   106
          type:'jwplayer', // player type
708
a4ae99d593e0 swapped tab for spaces.
hamidouk
parents: 696
diff changeset
   107
          live: true, 
a4ae99d593e0 swapped tab for spaces.
hamidouk
parents: 696
diff changeset
   108
          height: 300, 
a4ae99d593e0 swapped tab for spaces.
hamidouk
parents: 696
diff changeset
   109
          width: 640, 
a4ae99d593e0 swapped tab for spaces.
hamidouk
parents: 696
diff changeset
   110
          provider: "rtmp" 
465
daa60afb3a50 added mediafragment module to the polemic tweet example.
hamidouk
parents: 453
diff changeset
   111
      },
daa60afb3a50 added mediafragment module to the polemic tweet example.
hamidouk
parents: 453
diff changeset
   112
      modules: [
866
3bf7aa8216e5 IriSP.Model.List now inherits from Array
veltr
parents: 842
diff changeset
   113
           /*    { type: "MediaFragment",
810
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
   114
                            metadata:{
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
   115
                           format:'cinelab',
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
   116
                             src:file,
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
   117
                             type:'json'}
866
3bf7aa8216e5 IriSP.Model.List now inherits from Array
veltr
parents: 842
diff changeset
   118
                        }*/]
465
daa60afb3a50 added mediafragment module to the polemic tweet example.
hamidouk
parents: 453
diff changeset
   119
213
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
   120
    };
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
   121
    
868
a525cc2214e7 Started big refactoring
veltr
parents: 866
diff changeset
   122
    var _myPlayer = new IriSP.Metadataplayer(_config, _metadata);
213
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
   123
  </script>
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
   124
  
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
   125
  
178
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
   126
 </body>
585
44a4a4a179c1 first version of the AnnotationListWidget.
hamidouk
parents: 566
diff changeset
   127
 <div id="AnnotationsListContainer" style="position: absolute; width: 400px; left: 660px; top: 105px;"></div>
302
c057e5134fa2 update the examples to include the arrowWidget.
hamidouk
parents: 280
diff changeset
   128
 </html>