Skip to content

Commit

Permalink
Update Video.js
Browse files Browse the repository at this point in the history
  • Loading branch information
LilyMakesThings authored Aug 14, 2023
1 parent 81cc02e commit 178af5e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions extensions/Lily/Video.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
video: document.createElement('video'),
volume: 1,
skin: 0
}
};

const videoObject = this.videos[videoName];
const video = videoObject.video;
Expand All @@ -287,7 +287,7 @@
deleteVideoURL(args) {
const videoName = Cast.toString(args.NAME);
if (!this.videos[videoName]) return;

for (const id of Object.keys(this.targets)) {
if (this.targets[id].videoName === videoName) {
this.targets[id].target.updateAllDrawableProperties();
Expand Down Expand Up @@ -354,11 +354,11 @@
const skinId = videoObject.skin;
const skin = vm.renderer._allSkins[skinId];

switch(args.ATTRIBUTE) {
case('current time'): return videoObject.video.currentTime;
case('duration'): return videoObject.video.duration;
case('width'): return skin._textureSize[0];
case('height'): return skin._textureSize[1];
switch (args.ATTRIBUTE) {
case ('current time'): return videoObject.video.currentTime;
case ('duration'): return videoObject.video.duration;
case ('width'): return skin._textureSize[0];
case ('height'): return skin._textureSize[1];
default: return 0;
}
}
Expand Down

0 comments on commit 178af5e

Please sign in to comment.