src/js/init.js
branchpopcorn-port
changeset 204 a5e807f33a67
parent 198 8ffb1b7a9c6b
child 216 d1e891627286
equal deleted inserted replaced
203:9b76fc6564b1 204:a5e807f33a67
    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);