fix video defualt height
This commit is contained in:
parent
d4a193119d
commit
e31ad384bd
2 changed files with 8 additions and 0 deletions
|
@ -61,6 +61,10 @@ class File {
|
|||
video.append(source);
|
||||
source.type = this.content_type;
|
||||
video.controls = !temp;
|
||||
if (this.width) {
|
||||
video.width = this.width;
|
||||
video.height = this.height;
|
||||
}
|
||||
return video;
|
||||
}
|
||||
else if (this.content_type.startsWith('audio/')) {
|
||||
|
|
|
@ -62,6 +62,10 @@ class File{
|
|||
video.append(source);
|
||||
source.type=this.content_type;
|
||||
video.controls=!temp;
|
||||
if(this.width){
|
||||
video.width=this.width;
|
||||
video.height=this.height;
|
||||
}
|
||||
return video;
|
||||
}else if(this.content_type.startsWith('audio/')){
|
||||
const audio=document.createElement("audio");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue