Skip to main content
dmitrychernysh
Participant
August 19, 2019
Answered

JSFL: Command script doesn't export video

  • August 19, 2019
  • 1 reply
  • 859 views

The following command does not export any video:

fl.getDocumentDOM().exportVideo("/Users/dimche/Desktop/testVideo.mov");

I can see the temporary .swf file appear and disappear, then the Media Encoder opens, but there's nothing in the queue and no .mov file is created. File > Export Video..., on the other hand, works fine, creating and sending the .mov file to the queue.

I'm on macOS Mojave 10.14.6, latest Adobe Animate 19.2.1, Adobe Media Encoder 13.1.3

Any ideas on why this is not working?

This topic has been closed for replies.
Correct answer JoãoCésar17023019

Hi.

The path must be expressed as as a file:/// URI.

https://help.adobe.com/archive/en_US/flash/cs5/flash_cs5_extending.pdf#G13.1213177

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.

For example:

var platformPath = "C:/Users/joaoc/Desktop/test.mov";

var uri = FLfile.platformPathToURI(platformPath);

fl.getDocumentDOM().exportVideo(uri);

I hope this helps.

Regards,

JC

1 reply

JoãoCésar17023019
Community Expert
JoãoCésar17023019Community ExpertCorrect answer
Community Expert
August 20, 2019

Hi.

The path must be expressed as as a file:/// URI.

https://help.adobe.com/archive/en_US/flash/cs5/flash_cs5_extending.pdf#G13.1213177

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.

For example:

var platformPath = "C:/Users/joaoc/Desktop/test.mov";

var uri = FLfile.platformPathToURI(platformPath);

fl.getDocumentDOM().exportVideo(uri);

I hope this helps.

Regards,

JC