Highlighted

JSFL: Command script doesn't export video

New Here ,
Aug 19, 2019

Copy link to clipboard

Copied

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?

Adobe Community Professional
Correct answer by JoãoCésar | Adobe Community Professional

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

TOPICS
Discussions

Views

211

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

JSFL: Command script doesn't export video

New Here ,
Aug 19, 2019

Copy link to clipboard

Copied

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?

Adobe Community Professional
Correct answer by JoãoCésar | Adobe Community Professional

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

TOPICS
Discussions

Views

212

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 19, 2019 0
Adobe Community Professional ,
Aug 19, 2019

Copy link to clipboard

Copied

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

__________________________________________
HTML5, JSFL, and AS3 samples: http://bit.ly/2mJgDoG

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 19, 2019 2