Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

JSFL: Command script doesn't export video

New Here ,
Aug 19, 2019 Aug 19, 2019

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?

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

correct answers 1 Correct answer

Community Expert , Aug 19, 2019 Aug 19, 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.getDocumentD

...
Translate
Community Expert ,
Aug 19, 2019 Aug 19, 2019
LATEST

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

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