equal
deleted
inserted
replaced
27 case "youtube": |
27 case "youtube": |
28 var opts = IriSP.jQuery.extend({}, options); |
28 var opts = IriSP.jQuery.extend({}, options); |
29 delete opts.container; |
29 delete opts.container; |
30 opts.controls = 0; |
30 opts.controls = 0; |
31 opts.autostart = false; |
31 opts.autostart = false; |
32 templ = "width: {{width}}px; height: {{height}}px; margin-bottom: 5px;"; |
32 templ = "width: {{width}}px; height: {{height}}px;"; |
33 var str = Mustache.to_html(templ, {width: opts.width, height: opts.height}); |
33 var str = Mustache.to_html(templ, {width: opts.width, height: opts.height}); |
34 // Popcorn.youtube wants us to specify the size of the player in the style attribute of its container div. |
34 // Popcorn.youtube wants us to specify the size of the player in the style attribute of its container div. |
35 IriSP.jQuery("#" + containerDiv).attr("style", str); |
35 IriSP.jQuery("#" + containerDiv).attr("style", str); |
36 |
36 |
37 pop = Popcorn.youtube("#" + containerDiv, opts.video, opts); |
37 pop = Popcorn.youtube("#" + containerDiv, opts.video, opts); |