30 Replies Latest reply on Sep 14, 2016 4:40 PM by Premiopolis

    How to enable NodeJs for HTML5 Panels

    emam-dev Level 1

      Hi All,

      We are trying to implement downloading assets from url, in our Premiere pro Panel.

      From the premiere pro sdk forum we came to know that by using NodeJs we can implement this feature(Downloading file with NodeJS in CEP extension )

      Also we have gone through the github sample Nodejs.html (Samples/Nodejs.html at db6086245ee6b64466710056f60ca324fce12880 · Adobe-CEP/Samples · GitHub )

       

      Here is the code and Panel screenshots:

      function isNodeJSEnabled() {

        if (typeof(require) !== 'undefined') {

        $('#result').val("Node.js is enabled");

        } else {

        $('#result').val("Node.js is disabled");

        }

        }

      Nodejs.PNG

       

      But when we run the code from our panel, we are getting the message  "Node.js is disabled".

      We have added the following values in manifest file

      <CEFCommandLine>

        <Parameter>--enable-nodejs</Parameter>

        </CEFCommandLine>

      Downloading file with NodeJS in CEP extensionBut still we get the same result. "Node.js is disabled"

      We are testing the panel in Windows 7,Adobe Premiere pro CC 2015.2 (9.2.0(41))

       

      What are the steps we need to take care in-order to enable NodeJs in our panel?

       

      Thanks and Regards,

      Anoop NR