test/integration/polemic.htm
author hamidouk
Tue, 14 Feb 2012 17:27:56 +0100
branchpopcorn-port
changeset 811 b9dd62e35e30
parent 810 85a278e12495
child 815 44d34270541c
permissions -rw-r--r--
less useless code - required widgets now support defaultOptions too.
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 -->
504
02daece5dfda fixed the integration tests.
hamidouk
parents: 465
diff changeset
    18
  <script type="text/javascript" src="../../build/LdtPlayer-release.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>
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    21
  <div id="LdtPlayer"></div>
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">
667
2407ecee1169 added parameter to specify json file to load from.
hamidouk
parents: 655
diff changeset
    24
    var file = "twitterized.json";
213
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    25
    var config = {            
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    26
        gui:{
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    27
            width:650,
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    28
            height:2100,              
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    29
            container:'LdtPlayer',
810
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    30
			default_options: {
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    31
				metadata:{
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    32
				  format:'cinelab',
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    33
				  src:file,
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    34
				  type:'json'}
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    35
			},
213
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    36
            css:'../../src/css/LdtPlayer.css',
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    37
            widgets: [
810
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    38
            {type: "PolemicWidget",
524
a06527b99f22 the sparklineWidget height and width are now parametrable.
hamidouk
parents: 523
diff changeset
    39
             width: 640, /* required for this widget */
810
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    40
             height: 50,              
336
8da13562cfea segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents: 302
diff changeset
    41
             requires: [{
8da13562cfea segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents: 302
diff changeset
    42
              type: "TooltipWidget",
8da13562cfea segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents: 302
diff changeset
    43
              width: 180,
8da13562cfea segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents: 302
diff changeset
    44
              heigh: 160,
8da13562cfea segmentsWidget now uses the TooltipWidget instead of the jQuerytools tooltip.
hamidouk
parents: 302
diff changeset
    45
             }],
810
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    46
            },
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    47
            {type: "SparklineWidget",
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    48
             width: 640, /* required for this widget */
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    49
             height: 50},
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    50
            {type: "SliderWidget"},
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    51
            {type: "AnnotationsListWidget",
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    52
             container: "AnnotationsListContainer"},
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    53
            {type: "PlayerWidget"},
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    54
            {type: "SegmentsWidget",
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    55
             requires: [{
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    56
              type: "TooltipWidget",
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    57
			  width: 180,
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    58
              heigh: 160,
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    59
              }],
537
61fd3968ab06 added a widget to select a slice.
hamidouk
parents: 524
diff changeset
    60
            },            
810
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    61
            {type: "SliceWidget"},            
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    62
            {type: "ArrowWidget"},
302
c057e5134fa2 update the examples to include the arrowWidget.
hamidouk
parents: 280
diff changeset
    63
537
61fd3968ab06 added a widget to select a slice.
hamidouk
parents: 524
diff changeset
    64
810
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    65
            {type: "AnnotationsWidget"},
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    66
            {type: "TweetsWidget"},
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    67
            {type: "createAnnotationWidget"}
213
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    68
            ]
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    69
        },
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    70
      player:{
708
a4ae99d593e0 swapped tab for spaces.
hamidouk
parents: 696
diff changeset
    71
          type:'jwplayer', // player type - 
a4ae99d593e0 swapped tab for spaces.
hamidouk
parents: 696
diff changeset
    72
          live: true, 
a4ae99d593e0 swapped tab for spaces.
hamidouk
parents: 696
diff changeset
    73
          height: 300, 
a4ae99d593e0 swapped tab for spaces.
hamidouk
parents: 696
diff changeset
    74
          width: 640, 
a4ae99d593e0 swapped tab for spaces.
hamidouk
parents: 696
diff changeset
    75
          provider: "rtmp" 
465
daa60afb3a50 added mediafragment module to the polemic tweet example.
hamidouk
parents: 453
diff changeset
    76
      },
daa60afb3a50 added mediafragment module to the polemic tweet example.
hamidouk
parents: 453
diff changeset
    77
      modules: [
daa60afb3a50 added mediafragment module to the polemic tweet example.
hamidouk
parents: 453
diff changeset
    78
               { type: "MediaFragment",
810
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    79
                            metadata:{
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    80
                           format:'cinelab',
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    81
                             src:file,
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    82
                             type:'json'}
85a278e12495 added default options for the widgets.
hamidouk
parents: 744
diff changeset
    83
                        }]
465
daa60afb3a50 added mediafragment module to the polemic tweet example.
hamidouk
parents: 453
diff changeset
    84
213
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    85
    };
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    86
    
744
76400fd4ce70 changed the files to follow the simpler embed convention.
hamidouk
parents: 735
diff changeset
    87
    IriSP.initPlayer(config, "polemic_fr.json");
213
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    88
  </script>
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    89
  
d65dafb9273d changed tab to space and added a couple of lines for samuel's keynote.
hamidouk
parents: 208
diff changeset
    90
  
178
83241c5139a7 changed test file to use the museologie stream.
hamidouk
parents: 169
diff changeset
    91
 </body>
585
44a4a4a179c1 first version of the AnnotationListWidget.
hamidouk
parents: 566
diff changeset
    92
 <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
    93
 </html>