Scripting Movie Poster Type

Hello Adobe Community,
I wrote a script that "converts" all streaming videos to embedded videos; however, after I set each video's filePath, it loses its poster.  I have a line of code that is supposed to set the moviePosterType to the first frame of the movie:
myPageItems[i].moviePosterType = 1298558310; //FROM_MOVIE
where myPageItems[i] is an instanceof a Movie from my app.activeDocument.allPageItems
Here is the bulk of the code and all of it appears to work, barring setting the movie poster type.
function embedVideos() {
    var myFilePath = "the real file path would be here";
    var myDelimiter = "/";
    var myPageItems = app.activeDocument.allPageItems;
    var myUrlPath;
    var count = 0;
    for (var i = 0; i < myPageItems.length; i++) {
        if (myPageItems[i] instanceof Movie) {
            if (myPageItems[i].filePath) {
            } else {
                myUrlPath = myPageItems[i].url;
                myUrlPath = myUrlPath.split(myDelimiter);
                myPageItems[i].filePath = myFilePath + myUrlPath[myUrlPath.length-1];
                myPageItems[i].moviePosterType = 1298558310; //FROM_MOVIE
                count++;
    } //end for-loop
    return alert(count + " videos will be converted to embedded.");
} //end function embedVideos
For debugging purposes, after each attempt to set the movie poster type, an alert() says the poster type is "NONE," unless I manually set the poster, then it will say "FROM_MOVIE."  My goal is to automatically set the movie poster type, otherwise someone would need to click on every video to set it.  Thanks in advance for any insight or ideas!

I was thinking a possible solution would be to automate/script the process a user would normally complete through the menu system.  To set a poster to "From Current Frame," a user would open the Media panel, click on the "Poster:" drop-down, and select "From Current Frame."
After looking through the available Menu Names and Menu Actions, the only handles I see available are "Media," "Video from URL...," and "PDF Options...."  Does anyone know if I can access the Media > Poster > From Current Frame option through scripting?
Thanks for any ideas!

Similar Messages

  • Next Inspection Date in case of Mov. Type: 309

    Hi,
    During Transfer posting using Mov. Type: 309, (Inspection Type: 08) the Next Inspection Date is coming as per our logic of UD Date + 365 (Inspection Interval maintained in Material Mst.).
    But our requirement if that, the Next Inspection Date in case of transferred material must be same as from which transfer has been done.
    e.g. suppose material ABC is received with GR (Mov. Type:101) and its Its Next Inspection date is coming as 01/01/2012 (as its UD was done on 01/01/2011 + 365 (Inspection Interval maintained in Mtrl Mst).
    When we transfer this material to XYZ (with Mov. Type:309), its Next Inspection Date is required that of ABC (01/01/2012). But, as per present logic it is coming UD Date + 365 Days = 23/01/2012 (i.e. if UD is performed on 23/01/2011).
    How can I do that ?
    Thanx
    Vivek

    My guess is your batch level is at the plant level.  If the batch level is changed to material level or client level, this problem would go away.  This can have major impacts in other areas so it must be carefully considered.  But if this your requirement, it sounds like you might be at the wrong batch level right now.
    FF

  • Difference between Posting Type 4 and 7 in EBS

    Hi,
    A basic question in EBS. While configuring EBS Posting Rule I find the Posting Type 4 and 7. I want to know what is the difference between them.
    My Senerio is that I want to upload the EBS for Outgoing Payment and also want to Clear the GL account. The Process is first the Invoice is raised to the Vendor and then F110 is used to pay the vendor and then EBS is run to clear the Bank Clearing Account and update the Main Bank Balance.
    Regards,
    Nikhil

    Hi,
    Thanks for your reply. I need one clarification on your point "the system determined the posting key for clearing from the clearing configuration."
    Our initial entry in the current situation is as follows:
    Expenses A/c .... Dr.
       Vendor A/c .....Cr.
    Through F110 we make the payment to vendor and vendor open line item gets cleared.
    Vendor A/c ...... Dr
       Bank Outgoing Clearing A/c..... Cr
    When uploading Bank Statement the following entry is passed:
    Bank Outgoing Clearing A/c ... Dr
       Main an A/c ...... Cr
    Since the bank clearing account remains open  and does not get cleared in the above entries, can it be cleared through automatic Bank reconciliation?
    If yes then what will be the EBS configuration for the same. Or we need to clear the Bank Clearing open items by F.13 T_Code.
    Thanks and regards

  • Apple TV to display Movie Poster sized TV Show Art?

    All of my TV Shows have movie poster sized artwork.  The Apple TV displays movie poster art for Movies, but it displays square CD-style artwork for TV Shows. 
    Is there any way to get the Apple TV to display movie poster sized artwork for TV Shows? 
    Since all my video artwork is movie poster sized, the Apple TV displays a cropped version which isn't that appealing

    No.

  • Posting type 9 reset and reverse clear

    Dear Expert,
    In case of bank statement has information that the transaction is cancelled, how can we handle this kind of transaction?
    I see in posting rule, there is posting type '9' reset and reverse clear. However when I setup and run it foreground, system will calll tcode FBRA in which we have to fill in FI document number. This FI document can't be identified in the bank statement anyway. The business case may be check bounced, for example.
    So how can we setup the posting rule with posting type '9' to cancel the FI document originally posted from the previous transaction?
    Please kindly suggest.
    Rgds,

    Try to find out the mathcing field from Document Header data to identify it.
    Thanks

  • How to change the Discussion board view to facebook posting type view

    hi friends..
    i want to change the discussion board view to facebook posting type.Where multiple discussions and comments on single page as well as all the comments should be in a threaded view and also i want to find a new discussion
    link in same page.
    can any one help me...

    Hi,
    As I understand, you would like to improve discussion board to display all posts on a single page with comments.
    There is no OOB option to customize discussion board. However, there are workarounds:
    You could create a site with Blog site template, and it could meet your requirement. More information about Blog site:
    http://office.microsoft.com/en-in/sharepoint-foundation-help/create-a-blog-HA010378201.aspx
    You could use Note Board web part instead, and customize it to allow reply:
    http://social.technet.microsoft.com/Forums/en-US/f7e466ee-ab53-47c5-9dd9-232e295bca6f/sharepoint-2010-note-board-web-part?forum=sharepointgeneralprevious
    You could customize Discussion Board directly using Content Query Web Part and XSL:
    http://sharepointsolutions.com/sharepoint-help/blog/2013/04/custom-discussion-board-rollup-using-content-query-web-part-and-xsl/
    Regards,
    Rebecca Tu
    TechNet Community Support

  • BAPI_PROCORDCONF_CREATE_TT Goods Movement Posting Problem

    When performing a process order confirmation via the BAPI_PROCORDCONF_CREATE_TT, I'm experiencing some difficulties with the goods movements.  Specifically, when attempting to post a goods receipt to the order via a 101 movement along with a goods issue to the order via a 261 movement, the movements are posting as two separate material documents instead of a single material document.  Secondly, the movements post under the transaction code COGI (from the MKPF-TCODE2 field) which seems a little odd to me as I was expecting something specific to the BAPI or at least COR6N.
    For others utilizing this BAPI with goods movements specified, what transaction code do the materials post under and is there some config or setting directly in the BAPI which I'm missing to ensure goods movement postings occur under a single material document?
    Thanks in advance for any/all assistance,
    Randy Lintz
    Foster Farms
    Livingston, California

    Hi Randy,
    Please check with T-Code CORK & also check hte confirmation configuration in OPK4.
    Check the "All Components" under Generally Valid settings Tab.
    Thanks

  • With Premiere elements 11, when Publish/Share (saving) a finished video, selecting H.264  .mov file type, what are the recommended Codec and Aspect settings for a crisp video and a small file size?

    With Premiere Elements 11, when Publish/Share (saving) a finished video, selecting H.264  .mov file type, what are the recommended Aspect and Codec settings , for a crisp video with a small file size?

    Gary Krouse
    We will customize a very detailed reply, but
    (a) What are the properties of your source media?
    (b) What did you or the program set as the project preset to match the properties of the source media?
    (c) What specific requirements do you have for this H.264.mov export file?
    File size can be a compromise between bitrate, file size, and quality.
    Thanks.
    ATR

  • Movie poster Artwork Out-of-Focus and blurry?

    Is anyone having a problem with movie poster artwork imported into itunes (added in the get info menu area for artwork) that now appears "blurry" or "out-of focus" in cover flow, etc. and the synced version in appletv. This happened right after upgrading to 8.0.1. My previous movie posters are just fine that were imported "prior" to upgrading to itunes 8? What gives? They are somehow blurry or low-res?

    I downloaded photos into iphoto
    From where?  Again, what are typical pixel dimensions of those photos that show blurry, i.e. how small are they?
    OT

  • Can we move char type data to packed decimal

    Hi
    can we move char type data to packed decimal??
    Thanks
    Devi

    Hi..
    that depends on the data in the character variable..
    if that character variable contains onli numbers then it is possible.
    <b>data c type c value '1'.
    data p type p.
    p = c.
    write p.</b>
    here the output is  1.
    If it contains even a single Alphabet , then it goes for a dump.
    <b>data c type c value 'A'.
    data p type p.
    p = c.
    write p.</b>
    here u will get a short dump.
    hope u understood.
    regards,
    sai ramesh

  • Scripted movie won't run outside of firewall...open multiple ports?

    I'm new to Flash and AS3, but with the help of many examples I have managed to created a scripted movie using some time lapse photography.  I load the images from an XML file and use an event listener to add each image as a child of a movie clip.  As the number of children grew, it caused the frame rate to slow, so I figured out that I could remove them after they were viewed and just keep looping through the array.
    This works great on the local machine and when served up from the web server behind the firewall.  However,  if I try to access the file from outside the firewall, it loads the first image or two very slowly (if at all) then hangs.  I've performed a net stat from the server and noticed that it is opening an inordinate number of connections to the remote client on various client ports (from 6 to 60+).
    Any help would be greatly appreciated!  The code I'm using is below...
    // Input Parameters
    var ssxml:String = "myfile.xml"; // file containing images & dates
    // Stage settings
    var swfStage:Stage = this.stage;
    var swfFrameRate:int = 10;
    swfStage.scaleMode = StageScaleMode.NO_SCALE;
    //  Movie Clip
    var mc:MovieClip = new MovieClip();  // initiate movie clip
    mc.x      = 25;     // starting point X
    mc.y      = 50;     // starting point Y
    //  Text Field
    var tf:TextField = this.dtsText;
    // Cropping Rectangle
    var cr:Sprite = new Sprite();
    cr.graphics.beginFill(0x057072);
    cr.graphics.drawRect(25,50,550,7);
    cr.graphics.endFill();
    // Read Flash Variables
    try {
    var keyStr:String;
    var valueStr:String;
    var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
    for (keyStr in paramObj) {
      valueStr = String(paramObj[keyStr]);
      if (keyStr == "srcFile") {
       ssxml = valueStr;
      if (keyStr == "swfFrameRate") {
       swfFrameRate = int(valueStr);
       swfStage.frameRate = swfFrameRate;
    } catch (error:Error) {
    trace (error.message);
    *  Configure a loader to import the list of images and date
    *  time stamps from an XML file. The list of variables will
    *  be stored in arrays.
    var photos_xml:XML
    var xmlLdr:URLLoader = new URLLoader();
    xmlLdr.addEventListener(Event.COMPLETE, completeHandler);
    xmlLdr.load(new URLRequest(ssxml));
    var img_array:Array = new Array(); // images
    var dts_array:Array = new Array(); // date time stamps
    var img_count:int   = 0;
    function completeHandler(event:Event):void {
    try {
      photos_xml = new XML(event.target.data);
      var imgs:XMLList = photos_xml.img;  
      var dtss:XMLList = photos_xml.dts;    
      img_count = imgs.length();
      for (var i=0;i<img_count;i++) {
       img_array.push({src:imgs[i].text()});
       dts_array.push({src:dtss[i].text()});
    } catch(error:Error){
      trace(error.message);
    var nextImg:int = 0;
    var imgLdr:Loader = new Loader();
    imgLdr.contentLoaderInfo.addEventListener(Event.COMPLETE, doneLoad);
    imgLdr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
    imgLdr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, updateInfo);
    stage.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
    function enterFrameHandler(event:Event):void {
    try {
             if (img_array.length > 0 ) {
       loadInitialImage();
    } catch(error:Error){
      trace(error.message);
    function loadInitialImage():void {
    imgLdr.load(new URLRequest(img_array[nextImg].src));
    function doneLoad(event:Event):void {
    var theImage:DisplayObject = event.target.content;
    imgLdr.unload();
    var bm:Bitmap = theImage as Bitmap;
    mc.addChild(bm);
    mc.scaleX = 550/640;
    mc.scaleY = mc.scaleX;
    addChild(mc);
    addChild(cr);
    tf.text = dts_array[nextImg].src;  
    if (mc.numChildren > 1){
      mc.removeChildAt(0);
    nextImg = (nextImg+1)%img_count;
    function loadError($event:IOErrorEvent):void {
    tf.text = "Loading Data.....Please Stand By..........."; 
    //  Loader Progress
    var swfTF:TextField = new TextField();
    swfTF.autoSize = TextFieldAutoSize.LEFT;
    swfTF.border = false;
    addChild(swfTF);
    //swfTF.text = "srcFile: " + ssxml + " FR: " + swfFrameRate;
    function updateInfo($event:ProgressEvent):void {
    swfTF.text =  "srcFile: " + ssxml + " FR: " + swfFrameRate
         + " Loading: " + img_array[nextImg].src + " "
         + Math.floor($event.bytesLoaded/1024)
         + " KB of "
         + Math.floor($event.bytesTotal/1024)
         + " KB.";

    OK I figured it out.  Apparently, the ENTER_FRAME event continues firing even as the image loader is processing.  Outside the firewall, where it was taking longer to load the images, this was causing loadInitialImage() to request the same image over and over again which resulted in the port behavior I was seeing on the server as well as the client "locking up".  The simple fix was to add a variable called currentImg (initialized to -1) which I set equal nextImg in loadInitialImage().  I then modified the if statement in enterFrameHandler() to only call loadInitialImage() if nextImg != currentImage.

  • Cogi error - Pipeline/consignment movement posted without value

    Hi
    I am getting a Cogi error Pipeline/consignment movement posted without value
    This particular material was not having problem till last week and now all the time when confirmation of production order happens it goes to cogi with error
    Price is maintained in info record
    Please suggest

    Dear friend,
    some theory:
    You always have 2 options - delete or process your COGI record.
    Before to make a decision you need to analyse/find a reason why this error has happened.
    run COGI;
    tick your eror;
    hit F6 (display errors) - bell icon
    now you are able to see the reason.
    depends on a reason (information you see now) you do your next steps
    say, for instance, you did something to fix the reason,...
    then
    if you want to process, tick your error and Save
    if everything is okay - system will POST it (cogi record will go away)
    or , say, you do not care about the error -
    tick your error and Delete
    some practice:
    please have a look at your material - probably someone changed it very recently - look at last changes using MM04 or MM03
    good luck

  • Every time I start up Firefox, I receive the following warning/message. Java Script Application. Type Error: Components.classes(cid) is undefined. How do I correct this?

    Question
    Every time I start up Firefox, I receive the following warning/message. Java Script Application. Type Error: Components.classes(cid) is undefined. How do I correct this?

    Do you see a Last 7 days folder?
    If not then older history has been deleted.<br />
    Firefox 5 doesn't use a time limit to store history like previous Firefox 3 versions did.

  • Writing Server Repost Script to post data to Eloqua

    Hello!
    Newbie here.
    Been trying to follow tutorials on form repost and found one article:
    Eloqua Artisan: Using Form Reposts for Advanced Form Integration
    Currently I'm stuck on step#5.
    Can anyone enlighten me on writing a server repost script to post data to Eloqua.
    A sample script will be very much appreciated.
    Thanks in advanced!

    Hey Theresa,
    I can help you out with that. Can you tell me what languages are supported on the server you're trying to re-post from (e.g. PHP, Ruby, ASP, etc.)?
    Thanks,
    Ilya Hoffman
    Synapse Automation

  • Sending any non-POST-type request with data to CFC

    In CF 11 (Developer Edition), non-POST-type requests with data to CFC files seem to get stuck in ColdFusion. I don't believe I've changed anything in CF administration that could affect this, and as far as I can tell I haven't done anything to IIS that would break it either. The issue occurs with both of the CF applications that I'm working on.
    Requests to CFMs that contain data work using any of the CRUD methods (GET, POST, PUT, DELETE), and the IIS handlers are setup to accept all methods for both CFMs and CFCs.
    Can anyone else verify whether this issue with requests to CFCs exists in their environment?
    Example curl requests:
    # Requests to CFC with data
    curl -d 'test=123' -X 'GET' 'http://localhost/myapplication/component.cfc?method=test' # NO RESPONSE (TIMEOUT)
    curl -d 'test=123' -X 'PUT' 'http://localhost/myapplication/component.cfc?method=test' # NO RESPONSE (TIMEOUT)
    curl -d 'test=123' -X 'DELETE' 'http://localhost/myapplication/component.cfc?method=test' # NO RESPONSE (TIMEOUT)
    curl -d 'test=123' -X 'POST' 'http://localhost/myapplication/component.cfc?method=test' # Works fine
    # Requests to CFM with data
    curl -d 'test=123' -X 'GET' 'http://localhost/myapplication/component.cfm' # Works fine
    curl -d 'test=123' -X 'PUT' 'http://localhost/myapplication/component.cfm' # Works fine
    curl -d 'test=123' -X 'DELETE' 'http://localhost/myapplication/component.cfm' # Works fine
    curl -d 'test=123' -X 'POST' 'http://localhost/myapplication/component.cfm' # Works fine
    # Requests without data
    curl -X 'GET' 'http://localhost/myapplication/component.cfc?method=test' # Works fine
    curl -X 'PUT' 'http://localhost/myapplication/component.cfc?method=test' # Works fine
    curl -X 'DELETE' 'http://localhost/myapplication/component.cfc?method=test' # Works fine
    curl -X 'POST' 'http://localhost/myapplication/component.cfc?method=test' # Works fine

    mike124897 wrote:
    In CF 11 (Developer Edition), non-POST-type requests with data to CFC files seem to get stuck in ColdFusion. I don't believe I've changed anything in CF administration that could affect this, and as far as I can tell I haven't done anything to IIS that would break it either. The issue occurs with both of the CF applications that I'm working on.
    Requests to CFMs that contain data work using any of the CRUD methods (GET, POST, PUT, DELETE), and the IIS handlers are setup to accept all methods for both CFMs and CFCs.
    Can anyone else verify whether this issue with requests to CFCs exists in their environment?
    Example curl requests:
    # Requests to CFC with data 
    curl -d 'test=123' -X 'GET' 'http://localhost/myapplication/component.cfc?method=test' # NO RESPONSE (TIMEOUT) 
    curl -d 'test=123' -X 'PUT' 'http://localhost/myapplication/component.cfc?method=test' # NO RESPONSE (TIMEOUT) 
    curl -d 'test=123' -X 'DELETE' 'http://localhost/myapplication/component.cfc?method=test' # NO RESPONSE (TIMEOUT) 
    curl -d 'test=123' -X 'POST' 'http://localhost/myapplication/component.cfc?method=test' # Works fine 
    You complicate things with too many flags. You could just do something like
    Get
    curl "http://localhost/myapplication/component.cfc?method=test&myArg=123"
    Post
    curl --data "myData=someData" "http://localhost/myapplication/component.cfc?method=test&myArg=123"

Maybe you are looking for

  • How do I get my music that was purchased on my Iphone, back after I got the new update?

    I recently got the new update for my 3GS Iphone, and I had purchased some music on the Itunes on my phone. So I synced my phone right before the update, and backed it up. I did the update, and now I have nothing. The music that I purchased on my Ipho

  • Serch and sort A to Z

    I'm new in java and i now how to do a search and a sort to put the numbers in order ( minor to maximum) but i need and I don't know how to do a serch and a sort to order words ( A to Z) if someone can help me i thank you

  • Which versin of Vxvm and LOM compatible on Solaris 10?

    I want to install two packages onSolaris 10. 1. Veritas Volume Manager 2. Lights out Management on Netra 210 Box. Can you please let me know the correct version? Regards, Manabendra

  • My disappointment with Time Machine

    I was really looking forward to Time Machine. But having set it up, I'm somewhat disappointed. Why? Because once again, Apple gets us so close to nirvana, then we hit the brick wall. The software is awesome. I love the interface. It really does make

  • Iphone 3gs displaying NO SERVICE

    i have a iphone 3gs and recently damaged the lcd and digitizer so had them replaced..not through apple. when i picked up the phone all was in good working order. by the time i got home the phone was saying NO SERVICE. and hasnt picked up any since??