简体   繁体   中英

Running AWS NICE DCV releases web client SDK using Nodejs

I tried to follow this example https://docs.aws.amazon.com/dcv/latest/websdkguide/establish-connection.html and I even looked at other stack-overflow questions How to get started using NICE DCV SDK

I'm trying to run the js file using Node. I'm getting the error

/NI-SP-DCVSDK-Demo-1.0/dcvjs/dcv.js:346
     window.hasOwnProperty("webkitAudioContext") &&
     ^

ReferenceError: window is not defined
    at file:///Users/chandu/Downloads/NI-SP-DCVSDK-Demo-1.0/dcvjs/dcv.js:346:6
    at file:///Users/chandu/Downloads/NI-SP-DCVSDK-Demo-1.0/dcvjs/dcv.js:451:5
    at ModuleJob.run (internal/modules/esm/module_job.js:138:23)
    at async Loader.import (internal/modules/esm/loader.js:178:24)

I'm a beginner at nodejs. please let me know if I'm missing anything.

The NICE DCV SDK needs to be executed in a browser as the NICE DCV web client runs in the web browser. It cannot be executed in nodejs.

What are you trying to achieve?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM