src/js/init.js
branchpopcorn-port
changeset 402 6148fb647f46
parent 315 4466bf448426
child 404 6c4e5b2fee8c
child 418 06d2aa32c5f4
equal deleted inserted replaced
398:d1883378b822 402:6148fb647f46
    14         will contain the video.
    14         will contain the video.
    15       */
    15       */
    16       case "html5":
    16       case "html5":
    17            var tmpId = Popcorn.guid("video"); 
    17            var tmpId = Popcorn.guid("video"); 
    18            IriSP.jQuery("#" + containerDiv).append("<video src='" + options.file + "' id='" + tmpId + "'></video>");
    18            IriSP.jQuery("#" + containerDiv).append("<video src='" + options.file + "' id='" + tmpId + "'></video>");
       
    19 
       
    20            if (options.hasOwnProperty("width"))
       
    21              IriSP.jQuery("#" + containerDiv).css("width", options.width);
       
    22            
       
    23            if (options.hasOwnProperty("height"))
       
    24              IriSP.jQuery("#" + containerDiv).css("height", options.height);
       
    25 
    19            pop = Popcorn("#" + tmpId).mediafragment({start : 0});
    26            pop = Popcorn("#" + tmpId).mediafragment({start : 0});
    20         break;
    27         break;
    21         
    28         
    22       case "jwplayer":
    29       case "jwplayer":
    23           var opts = IriSP.jQuery.extend({}, options);
    30           var opts = IriSP.jQuery.extend({}, options);