--- a/src/widgets/HtmlPlayer.js Wed Dec 19 19:02:52 2012 +0100
+++ b/src/widgets/HtmlPlayer.js Thu Jan 17 17:25:46 2013 +0100
@@ -6,7 +6,6 @@
IriSP.Widgets.HtmlPlayer.prototype.defaults = {
- aspect_ratio: 14/9
}
IriSP.Widgets.HtmlPlayer.prototype.draw = function() {
@@ -19,19 +18,11 @@
if (this.url_transform) {
this.video = this.url_transform(this.video);
}
-
- if (!this.height) {
- this.height = Math.floor(this.width/this.aspect_ratio);
- this.$.css({
- height: this.height
- });
- }
var videoEl = IriSP.jQuery('<video>');
videoEl.attr({
- id : _tmpId,
width : this.width,
- height : this.height
+ height : this.height || undefined
});
if(typeof this.video === "string"){
videoEl.attr("src",this.video);