0 Replies Latest reply on May 5, 2015 10:20 AM by jfavelle

    After placing a web video the content doesn't stay in the frame when previewing

    jfavelle

      I have a script that places a web video into a rectangle but when I play it in a preview the content doesn't stay in the frame despite putting fit options on it. 

       

      Here is the code

       

      myDocument.pages[0].rectangles.add({geometricBounds: mybounds, strokeWeight: 0, fillColor: "None"});

      myObj = myDocument.pages[0].rectangles[0];

       

       

       

        myObj.movies.add({at:LocationOptions.AT_BEGINNING});

          var myMovie = myObj.movies[0];

             myObj.fit(FitOptions.FILL_PROPORTIONALLY);

             myObj.fit(FitOptions.CONTENT_TO_FRAME);

             myMovie.fit(FitOptions.CONTENT_TO_FRAME);

             myObj.fit(FitOptions.APPLY_FRAME_FITTING_OPTIONS);

         myMovie.url="http://cdnbakmi.kaltura.com/p/1698541/sp/169854100/serveFlavor/entry-Id/" + kalturaId + "/v/2/flavorId/0_3ydkn6j6/name/a.mp4";

       

      Any Help would be most appreciated