4 Replies Latest reply on May 23, 2011 5:32 AM by try67

    Play Movie File Repeatedly

    SASEKUMAR

      Hi All,

       

      I am having a pdf document with .mov file embeded as media object and i need to repeatedly play until page content is invisible. I have read the Acrobat JS document and i could make it with following Javascript and javascript error. Please any help me how to do this with script.

       

      Code i tried

      var nRepeat = event.action.rendition.getPlaySettings().repeat;
      if (nRepeat == 1)
      nRepeat = 2;
      else
      nRepeat = 1;
      var args = { settings: {repeat: nRepeat} };
      app.media.openPlayer(args);

       

      Error

      TypeError: event.action is undefined
      1:Console:Exec
      undefined

       

      Thanks,

      Selvakumar