|
@@ -99,7 +99,7 @@
|
|
|
let vid = (o.e.tagName == 'VIDEO') ? 'video' : 'natural';
|
|
|
o.e.className = (o.e[vid+'Width'] / o.e[vid+'Height'] < this.parent.clientWidth / this.parent.clientHeight) ? 'fillheight' : 'fillwidth';
|
|
|
if (this.parent.firstChild !== o.e) {
|
|
|
- o.e.src = o.e.src;
|
|
|
+ let tmp = o.e.src; o.e.src = ''; o.e.src = tmp;
|
|
|
this.parent.replaceChild(o.e, this.parent.firstChild);
|
|
|
if (vid === 'video') o.e.play();
|
|
|
}
|