Hi Arek, Animate product team is aware of this issue and are working on getting the “After time elapsed” feature back to Animate.
In the interim, “exportVideo” JSAPI can be used to stop exporting video after a particular time is elapsed. The following steps can be followed to achieve a scenario of exporting video for 15 seconds.
1. Open a new 'JSFL Script File' document in Animate 2020 and paste the following script to it :
fl.getDocumentDOM().exportVideo("file:///users/shenoyk/Documents/JOSEPH_1080x1920_Coat_Edit.mov",true,false,false,15000)
2. Modify the file path to the desired file path where MOV should be generated. You can also change other parameters as per your requirement.
3. Open the FLA document in the new Animate tab next to JSFL document.
4. Switch back to JSFL document and click on Run Script (Play button on top right corner).
To know more about JSAPI, please go through the description shared below. Do let me know if any further information is required.
Usage
exportVideo( fileURI , convertInAdobeMediaEncoder , transparent , stopAtFrame , stopAtFrameOrTime )
Parameters
- fileURI : A string, expressed as a file:/// URI, that specifies the fully qualified path to which the video is saved.
- convertInAdobeMediaEncoder : A boolen value that specifies whether or not to send the recorded video to Adobe Media Encoder. The default value is true, which sends the video to Adobe Media Encoder. This parameter is optional.
- transparent : A boolean value that specifies whether or not the background should be included in the video. The default value is false, which includes the movie background in the video. This parameter is optional.
- stopAtFrame : A boolean value that specifies whether the video should be recorded until it reaches a certain frame or a specific time. The default value is true, stop when a certain frame is reached. This parameter is optional.
- stopAtFrameOrTime : If stopAtFrame is true, this is an int specifying the number of frames to record. If stopAtFrame is false, this is the number of milliseconds to record. The default value is 0 which, if stopAtFrame is true, will record all the frames in the main timeline. This parameter is optional.
Thanks,
Sukhesh - Adobe Animate