| author | veltr |
| Mon, 23 Apr 2012 19:11:08 +0200 | |
| branch | new-model |
| changeset 875 | 43629caa77bc |
| parent 874 | 38b65761a7d5 |
| child 881 | f11b234497f7 |
| permissions | -rw-r--r-- |
| 123 | 1 |
/* init.js - initialization and configuration of Popcorn and the widgets |
2 |
exemple json configuration: |
|
| 531 | 3 |
*/ |
|
453
8568e47379a2
added autoconfiguration of the media source for rtmp streams.
hamidouk
parents:
430
diff
changeset
|
4 |
|
| 868 | 5 |
/* The Metadataplayer Object, single point of entry, replaces IriSP.init_player */ |
6 |
||
7 |
IriSP.Metadataplayer = function(config, video_metadata) { |
|
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
8 |
for (var key in IriSP.guiDefaults) { |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
9 |
if (IriSP.guiDefaults.hasOwnProperty(key) && !config.gui.hasOwnProperty('key')) { |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
10 |
config.gui[key] = IriSP.guiDefaults[key] |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
11 |
} |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
12 |
} |
| 868 | 13 |
var _container = document.getElementById(config.gui.container); |
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
14 |
_container.innerHTML = '<div class="Ldt-Loader">Loading... Chargement...</div>'; |
| 868 | 15 |
this.video_metadata = video_metadata; |
16 |
this.sourceManager = new IriSP.Model.Directory(); |
|
17 |
this.config = config; |
|
18 |
this.loadLibs(); |
|
19 |
} |
|
20 |
||
21 |
IriSP.Metadataplayer.prototype.toString = function() { |
|
22 |
return 'A Metadataplayer in DIV #' + this.config.gui.container; |
|
23 |
} |
|
24 |
||
25 |
IriSP.Metadataplayer.prototype.loadLibs = function() { |
|
26 |
// Localize jQuery variable |
|
27 |
IriSP.jQuery = null; |
|
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
28 |
var $L = $LAB.script(IriSP.getLib("underscore")).script(IriSP.getLib("Mustache")).script(IriSP.getLib("jQuery")).script(IriSP.getLib("swfObject")).wait().script(IriSP.getLib("jQueryUI")); |
| 868 | 29 |
|
30 |
if(this.config.player.type === "jwplayer" || this.config.player.type === "allocine" || this.config.player.type === "dailymotion") { |
|
31 |
// load our popcorn.js lookalike |
|
32 |
$L.script(IriSP.getLib("jwplayer")); |
|
33 |
} else { |
|
34 |
// load the real popcorn |
|
35 |
$L.script(IriSP.getLib("popcorn")).script(IriSP.getLib("popcorn.code")); |
|
36 |
// load plugins if necessary |
|
37 |
if(this.config.player.type === "youtube") { |
|
38 |
$L.script(IriSP.getLib("popcorn.youtube")); |
|
39 |
} |
|
40 |
if(this.config.player.type === "vimeo"){ |
|
41 |
$L.script(IriSP.getLib("popcorn.vimeo")); |
|
42 |
} |
|
43 |
} |
|
44 |
||
45 |
/* widget specific requirements */ |
|
46 |
for(var _i = 0; _i < this.config.gui.widgets.length; _i++) { |
|
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
47 |
if(this.config.gui.widgets[_i].type === "Sparkline") { |
| 868 | 48 |
$L.script(IriSP.getLib("raphael")); |
49 |
} |
|
50 |
if(this.config.gui.widgets[_i].type === "TraceWidget") { |
|
51 |
$L.script(IriSP.getLib("tracemanager")) |
|
52 |
} |
|
53 |
} |
|
54 |
|
|
55 |
var _this = this; |
|
56 |
|
|
57 |
$L.wait(function() { |
|
58 |
IriSP.jQuery = window.jQuery.noConflict(true); |
|
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
59 |
IriSP._ = window._.noConflict(); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
60 |
|
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
61 |
IriSP.loadCss(IriSP.getLib("cssjQueryUI")) |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
62 |
IriSP.loadCss(_this.config.gui.css); |
| 868 | 63 |
|
64 |
_this.onLibsLoaded(); |
|
65 |
|
|
66 |
}); |
|
67 |
} |
|
68 |
||
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
69 |
IriSP.Metadataplayer.prototype.onLibsLoaded = function() { |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
70 |
console.log('OnLibsLoaded'); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
71 |
this.videoData = this.loadMetadata(this.video_metadata); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
72 |
this.$ = IriSP.jQuery('#' + this.config.gui.container); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
73 |
this.$.css({ |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
74 |
"width": this.config.gui.width, |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
75 |
"clear": "both" |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
76 |
}); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
77 |
if (typeof this.config.gui.height !== "undefined") { |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
78 |
this.$.css("height", this.config.gui.height); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
79 |
} |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
80 |
|
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
81 |
var _this = this; |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
82 |
this.videoData.onLoad(function() { |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
83 |
_this.onVideoDataLoaded(); |
|
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 |
} |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
86 |
|
| 868 | 87 |
IriSP.Metadataplayer.prototype.loadMetadata = function(_metadataInfo) { |
88 |
if (typeof _metadataInfo.serializer === "undefined" && typeof _metadataInfo.format !== "undefined") { |
|
89 |
_metadataInfo.serializer = IriSP.serializers[_metadataInfo.format]; |
|
90 |
} |
|
91 |
if (typeof _metadataInfo.url === "undefined" && typeof _metadataInfo.src !== "undefined") { |
|
92 |
_metadataInfo.url = _metadataInfo.src; |
|
93 |
} |
|
94 |
if (typeof _metadataInfo.url !== "undefined" && typeof _metadataInfo.serializer !== "undefined") { |
|
95 |
return this.sourceManager.remoteSource(_metadataInfo); |
|
96 |
} else { |
|
97 |
return this.sourceManager.newLocalSource(_metadataInfo); |
|
98 |
} |
|
99 |
} |
|
100 |
||
101 |
IriSP.Metadataplayer.prototype.onVideoDataLoaded = function() { |
|
102 |
if (typeof this.videoData !== "undefined" && typeof this.config.player.video === "undefined") { |
|
103 |
var _media = this.videoData.currentMedia; |
|
104 |
if (typeof _media !== "undefined") { |
|
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
105 |
this.config.player.video = _media.video; |
| 868 | 106 |
if (typeof _media.streamer !== "undefined") { |
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
107 |
this.config.player.streamer = _media.streamer; |
|
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
108 |
this.config.player.video = _media.video.replace(_media.streamer,''); |
| 868 | 109 |
} |
110 |
} |
|
111 |
|
|
112 |
} |
|
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
113 |
this.configurePopcorn(); |
| 868 | 114 |
this.widgets = []; |
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
115 |
var _this = this; |
| 868 | 116 |
for(var i = 0; i < this.config.gui.widgets.length; i++) { |
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
117 |
this.loadWidget(this.config.gui.widgets[i], function(_widget) { |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
118 |
_this.widgets.push(_widget) |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
119 |
}); |
| 868 | 120 |
}; |
|
875
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
121 |
this.$.find('.Ldt-Loader').detach(); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
122 |
} |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
123 |
|
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
124 |
IriSP.Metadataplayer.prototype.loadWidget = function(_widgetConfig, _callback) { |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
125 |
/* Creating containers if needed */ |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
126 |
if (typeof _widgetConfig.container === "undefined") { |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
127 |
var _divs = this.layoutDivs(_widgetConfig.type); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
128 |
_widgetConfig.container = _divs[0]; |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
129 |
} |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
130 |
|
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
131 |
var _this = this; |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
132 |
|
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
133 |
if (typeof IriSP.Widgets[_widgetConfig.type] !== "undefined") { |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
134 |
IriSP._.defer(function() { |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
135 |
_callback(new IriSP.Widgets[_widgetConfig.type](_this, _widgetConfig)); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
136 |
}); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
137 |
} else { |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
138 |
/* Loading Widget CSS */ |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
139 |
IriSP.loadCss(IriSP.widgetsDir + '/' + _widgetConfig.type + '.css'); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
140 |
/* Loading Widget JS */ |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
141 |
$LAB.script(IriSP.widgetsDir + '/' + _widgetConfig.type + '.js').wait(function() { |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
142 |
_callback(new IriSP.Widgets[_widgetConfig.type](_this, _widgetConfig)); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
143 |
}); |
|
43629caa77bc
Big refactoring of widget files + started migration of segmentwidget
veltr
parents:
874
diff
changeset
|
144 |
} |
| 868 | 145 |
} |
146 |
||
147 |
IriSP.Metadataplayer.prototype.configurePopcorn = function() { |
|
148 |
var pop, |
|
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
149 |
ret = this.layoutDivs("video"), |
| 868 | 150 |
containerDiv = ret[0], |
151 |
spacerDiv = ret[1]; |
|
152 |
||
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
153 |
switch(this.config.player.type) { |
| 866 | 154 |
/* |
155 |
todo : dynamically create the div/video tag which |
|
156 |
will contain the video. |
|
157 |
*/ |
|
158 |
case "html5": |
|
159 |
var tmpId = Popcorn.guid("video"); |
|
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
160 |
IriSP.jQuery("#" + containerDiv).append("<video src='" + this.config.player.video + "' id='" + tmpId + "'></video>"); |
|
402
6148fb647f46
html5 video can now set the height and width of the video.
hamidouk
parents:
315
diff
changeset
|
161 |
|
| 866 | 162 |
if(options.hasOwnProperty("width")) |
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
163 |
IriSP.jQuery("#" + containerDiv).css("width", this.config.player.width); |
|
453
8568e47379a2
added autoconfiguration of the media source for rtmp streams.
hamidouk
parents:
430
diff
changeset
|
164 |
|
| 866 | 165 |
if(options.hasOwnProperty("height")) |
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
166 |
IriSP.jQuery("#" + containerDiv).css("height", this.config.player.height); |
| 866 | 167 |
pop = Popcorn("#" + tmpId); |
168 |
break; |
|
|
453
8568e47379a2
added autoconfiguration of the media source for rtmp streams.
hamidouk
parents:
430
diff
changeset
|
169 |
|
| 866 | 170 |
case "jwplayer": |
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
171 |
var opts = IriSP.jQuery.extend({}, this.config.player); |
| 866 | 172 |
delete opts.container; |
173 |
delete opts.type; |
|
174 |
opts.file = opts.video; |
|
175 |
delete opts.video; |
|
|
453
8568e47379a2
added autoconfiguration of the media source for rtmp streams.
hamidouk
parents:
430
diff
changeset
|
176 |
|
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
177 |
if(!opts.hasOwnProperty("flashplayer")) { |
| 866 | 178 |
opts.flashplayer = IriSP.jwplayer_swf_path; |
|
816
e97e22801146
use href or url indiscriminately to get the source of the rtmp.
hamidouk
parents:
811
diff
changeset
|
179 |
} |
| 866 | 180 |
|
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
181 |
if(!opts.hasOwnProperty("controlbar.position")) { |
| 866 | 182 |
opts["controlbar.position"] = "none"; |
183 |
} |
|
184 |
pop = new IriSP.PopcornReplacement.jwplayer("#" + containerDiv, opts); |
|
185 |
break; |
|
|
456
7fcdb501effd
added a switch to choose different options if using rtmp or not.
hamidouk
parents:
453
diff
changeset
|
186 |
|
| 866 | 187 |
case "youtube": |
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
188 |
var opts = IriSP.jQuery.extend({}, this.config.player); |
| 866 | 189 |
delete opts.container; |
190 |
opts.controls = 0; |
|
191 |
opts.autostart = false; |
|
192 |
// Popcorn.youtube wants us to specify the size of the player in the style attribute of its container div. |
|
193 |
IriSP.jQuery("#" + containerDiv).css({ |
|
194 |
width : opts.width + "px", |
|
195 |
height : opts.height + "px" |
|
196 |
}) |
|
197 |
pop = Popcorn.youtube("#" + containerDiv, opts.video, opts); |
|
198 |
break; |
|
|
558
29a370694c53
delete type variable which seemed to sometimes (but not always) confuse the jwplayer,
hamidouk
parents:
557
diff
changeset
|
199 |
|
| 866 | 200 |
case "dailymotion": |
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
201 |
pop = new IriSP.PopcornReplacement.dailymotion("#" + containerDiv, this.config.player); |
| 866 | 202 |
break; |
203 |
||
204 |
case "allocine": |
|
205 |
/* pass the options as-is to the allocine player and let it handle everything */ |
|
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
206 |
pop = new IriSP.PopcornReplacement.allocine("#" + containerDiv, this.config.player); |
| 866 | 207 |
break; |
| 868 | 208 |
|
| 866 | 209 |
default: |
210 |
pop = undefined; |
|
| 123 | 211 |
}; |
| 866 | 212 |
|
| 868 | 213 |
this.popcorn = pop; |
214 |
} |
|
| 866 | 215 |
|
| 868 | 216 |
/** create a subdiv with an unique id, and a spacer div as well. |
217 |
@param widgetName the name of the widget. |
|
218 |
@return an array of the form [createdivId, spacerdivId]. |
|
219 |
*/ |
|
220 |
IriSP.Metadataplayer.prototype.layoutDivs = function(_name) { |
|
221 |
if (typeof(_name) === "undefined") { |
|
222 |
_name = ""; |
|
| 866 | 223 |
} |
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
224 |
var newDiv = IriSP._.uniqueId(this.config.gui.container + "_widget_" + _name + "_"), |
|
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
225 |
spacerDiv = IriSP._.uniqueId("LdtPlayer_spacer_"), |
|
874
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
226 |
divHtml = IriSP.jQuery('<div>') |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
227 |
.attr("id",newDiv) |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
228 |
.css({ |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
229 |
width: this.config.gui.width + "px", |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
230 |
position: "relative", |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
231 |
clear: "both" |
| 868 | 232 |
}), |
|
874
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
233 |
spacerHtml = IriSP.jQuery('<div>') |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
234 |
.attr("id",spacerDiv) |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
235 |
.css({ |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
236 |
width: this.config.gui.width + "px", |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
237 |
height: this.config.gui.spacer_div_height + "px", |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
238 |
position: "relative", |
|
38b65761a7d5
TooltipWidget, SliderWidget, corrections in AnnotationList, CSS are now split
veltr
parents:
870
diff
changeset
|
239 |
clear: "both" |
| 868 | 240 |
}); |
241 |
|
|
|
870
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
242 |
this.$.append(divHtml); |
|
2c025db10a10
Migrated playerWidget and started annotationsListWidget
veltr
parents:
868
diff
changeset
|
243 |
this.$.append(spacerHtml); |
|
743
69a9969daa41
better defaults - paths are now computed at run-time.
hamidouk
parents:
707
diff
changeset
|
244 |
|
| 868 | 245 |
return [newDiv, spacerDiv]; |
| 866 | 246 |
}; |