Skip to main content
Known Participant
February 10, 2020
Answered

Adobe Animate HTML5/Canvas Component Re-sizing

  • February 10, 2020
  • 1 reply
  • 747 views

Hey everyone,

 

So I have a very odd issue. Basically we're converting courseware for a client and it was very video heavy. tons of .FLV's that were embedded in flash and it's all interactive, very rich media that even tracks if the user is getting steps right or wrong.

 

Anyways, this includes a lot of video's overlapping, often in Graphics/MC's that pause and play. When I try to do this in canvas it simply won't work as it appears that all the video has to be on a single layer due to how the DOM thing works in Canvas (which I admittably barely understand but I can roll with putting my video all on one layer).

 

However between Video's, which are generally a stepped prodecure (Step1, Step,2 etc) the video's flicker white when they unload/load the next. So this isn't an uncommon issue, above that is a layer with .PNG's as " holding frames " to hide the flicker. Though when they swap, they change size? The video is coming at 1110x738, the Video Element is 1110x738, the .PNG is also 1110x738 and yet they always come in at different sizes. 

If I take the .mp4's and .PNG's and slap them into After Effects they all line up perfectly, no weird sizing.. but in Adobe Animate it's like the Video Component is re-sizing my video. 

Any help would be appreciated, if you need anymore background information that would be great! We're stuck on windows 7 for the next month or so.. so I'm hoping I don't know an animate update.

This topic has been closed for replies.
Correct answer ClayUUID

If you need precise control over your videos, you might want to consider forgoing video components and instead manage your video elements directly using raw JavaScript. Video "components" in Canvas documents are just a wrapper around the HTML5 <video> element, and the only real advantage they offer is existing as timeline entities.

1 reply

ClayUUIDCorrect answer
Legend
February 10, 2020

If you need precise control over your videos, you might want to consider forgoing video components and instead manage your video elements directly using raw JavaScript. Video "components" in Canvas documents are just a wrapper around the HTML5 <video> element, and the only real advantage they offer is existing as timeline entities.

Known Participant
February 13, 2020

Alright thank you!

 

I'm trying to figure out if I can GoToAndPlay-style the video but that seems to be the same issues too.

Legend
February 13, 2020

Of course you can, you just set the currentTime property on the video element.

https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement