src/widgets/JwpPlayer.js
changeset 987 7b65bf78873a
parent 970 b1c3bf6eca78
child 1005 768bd0691ed1
equal deleted inserted replaced
986:f9d51dd4a3fe 987:7b65bf78873a
    34         
    34         
    35     _opts.file = this.video;
    35     _opts.file = this.video;
    36     _opts.flashplayer = IriSP.getLib("jwPlayerSWF");
    36     _opts.flashplayer = IriSP.getLib("jwPlayerSWF");
    37     _opts["controlbar.position"] = "none";
    37     _opts["controlbar.position"] = "none";
    38     _opts.width = this.width;
    38     _opts.width = this.width;
    39     _opts.height = this.height || Math.floor(.643*this.width);
    39     if (this.height) {
       
    40         _opts.height = this.height;
       
    41     }
    40     
    42     
    41     for (var i = 0; i < _props.length; i++) {
    43     for (var i = 0; i < _props.length; i++) {
    42         if (typeof this[_props[i]] !== "undefined") {
    44         if (typeof this[_props[i]] !== "undefined") {
    43             _opts[_props[i]] = this[_props[i]];
    45             _opts[_props[i]] = this[_props[i]];
    44         }
    46         }