Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>AFAIK you can't bypass the FLV import dialog directly (using the JSFL API).</p> <p>I've tried automating the FLV import wizard using a <a href="http://sikuli.org/" rel="nofollow">Sikuli</a> script. The script can be run from JSFL using the undocumented <a href="http://asvguy.com/2004/07/undocumented_fl.html" rel="nofollow">FLfile.runCommandLine()</a>.</p> <p>I'm using OSX so I'm not sure if this next part applies for Windows too. If I run the sikuli + the script directly:</p> <pre><code>FLfile.runCommandLine("/Applications/Sikuli-IDE.app/Contents/MacOS/JavaApplicationStub /Users/george/Documents/sikuli/importFLV.skl"); </code></pre> <p>Flash will wait for this to run then continue importing the FLV which is a problem. The Sikuli script will timeout since the Import FLV dialog will never appear.</p> <p>Still, I can run this:</p> <pre><code>FLfile.runCommandLine("open -a /Applications/Sikuli-IDE.app/Contents/MacOS/JavaApplicationStub /Users/george/Documents/sikuli/importFLV.skl"); </code></pre> <p>And this seems to open a window of the application and runs the script asynchronously, which is great. Then I run the import. The sikuli script:</p> <ol> <li>waits for the faded out(out of focus) dialog</li> <li>clicks to get focus</li> <li>clicks the <strong>Embed FLV in SWF and play in timeline</strong> option</li> <li>waits for the dialog with the proper option selected</li> <li>clicks <strong>Continue</strong></li> <li>waits for the next screen</li> <li>clicks <strong>Continue</strong></li> <li>waits for the next screen</li> <li>clicks <strong>Finish</strong></li> </ol> <p>Also, on my machine, the script always worked when I had SikuliIDE open (with no particular script) and minimized.</p> <p>The full test script to import a video looks like this:</p> <pre><code>var doc = fl.getDocumentDOM(); FLfile.runCommandLine("open -a /Applications/Sikuli-IDE.app/Contents/MacOS/JavaApplicationStub /Users/george/Documents/sikuli/importFLV.skl"); var path = FLfile.platformPathToURI('Users/george/Desktop/cuePointTest_1.flv'); doc.importFile(path); </code></pre> <p>You can find a recording of the script running <a href="http://lifesine.eu/so/importFLVSikuliTest.mov" rel="nofollow">here</a>. After I run the JSFL script, the rest of the clicks are handled by Sikuli. You can also download the <a href="http://lifesine.eu/so/importFLV.sikuli/" rel="nofollow">source script</a> and the <a href="http://lifesine.eu/so/importFLV.skl" rel="nofollow">Sikuli executable script</a> for my setup, but I imagine it will be different on yours. Sikuli is easy to use: type a command, go to your app and press CMD/Ctrl + Shift + 2 to grab a snapshot and continue.</p> <p>If this does the job for your, then you can probably modify the sikuli script to wait for some time to do the clicks for the next video in the sequence, while Flash loads a new document. There should be other workarounds to manage a list of videos, but that makes sense if this solution works for your setup.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload