Math.abs(arr[j] - ratio_);
            if(_abs<abs){
                abs = _abs;
                ret = arr[j];
            }
        }
        ratio_ = ret;
        var parent_width = getParentWidth(dom)||max_width,
            width = width > parent_width ? parent_width : width,
            outerW = getOuterW(dom)||0,
            outerH = getOuterH(dom)||0,
            videoW = width - outerW,
            videoH = videoW/ratio_,
            height = videoH + outerH;
        return {w:width,h:height,vh:vide