Mediasoup demo. Doesnt install

Trying to test mediasoup as a productions solution. I’m looking to install the demo and test on my machine. Im using Windows with Visual Studio Code.

I get this error preventing full install:

npm-scripts.js [INFO] running task "postinstall"
npm-scripts.js [INFO] executing command: python ./worker/scripts/configure.py --format=msvs -R mediasoup-worker
['--format=msvs', '-R', 'mediasoup-worker', 'worker\\mediasoup-worker.gyp', '-I', 'worker\\common.gypi', '--depth=worker', '-Dhost_arch=AMD64', '-Dtarget_arch=AMD64', '-Dopenssl_fips=', '-Dmediasoup_asan=false', '-Dnode_byteorder=little']
Warning: Missing input files:
worker\deps\libuv\libuv\common.gypi
worker\deps\libwebrtc\libwebrtc\modules\remote_bitrate_estimator\bwe_defines.h
npm-scripts.js [INFO] executing command: MSBuild ./worker/mediasoup-worker.sln /p:Configuration=Release
'MSBuild' is not recognized as an internal or external command,
operable program or batch file.

Is there a tutorial in the works of getting this setup via Youtube. For Nodejs environments.

No youtube tutorial, sorry.

‘MSBuild’ is not recognized as an internal or external command,
operable program or batch file.

You may want to look for this in google.

Have you read the installation section in the docs?

@jmillan What if Im using VSCode?

You can use whichever code editor you wish.

Great but when following installation to make this work on NodeJS via Windows with VSCode. I get this when installing the demo:

error MSB4126: The specified solution configuration “Release|MCD” is i
nvalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform=“Any CPU”) or leave those properties blank to us
e the default solution configuration.

You know “VSCode” is a code editor, right? I cannot parse your question, sorry.

Sorry for the code dump but it appears to relate to a win32 not being recognized as a platform issue. Is this production ready?

Code error below:

C:\Users\facebook-dev\Downloads\multiparty-meeting-master\multiparty-meeting-master\server\node_modules\clang-tools-prebuilt\install.js:24
if (!platforms[platform]) throw new Error('Unknown platform: ' + platform)
                          ^

Error: Unknown platform: win32
    at Object.<anonymous> (C:\Users\facebook-dev\Downloads\multiparty-meeting-master\multiparty-meeting-master\server\node_modules\clang-tools-prebuilt\install.js:24:33)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)

> mediasoup@3.5.13 postinstall C:\Users\facebook-dev\Downloads\multiparty-meeting-master\multiparty-meeting-master\server\node_modules\mediasoup
> node npm-scripts.js postinstall

npm-scripts.js [INFO] running task "postinstall"
npm-scripts.js [INFO] executing command: python ./worker/scripts/configure.py --format=msvs -R mediasoup-worker
['--format=msvs', '-R', 'mediasoup-worker', 'worker\\mediasoup-worker.gyp', '-I', 'worker\\common.gypi', '--depth=worker', '-Dhost_arch=AMD64', '-Dtarget_arch=AMD64', '-Dopenssl_fips=', '-Dmediasoup_asan=false', '-Dnode_byteorder=little']
Warning: Missing input files:
worker\deps\libuv\libuv\common.gypi
worker\deps\libwebrtc\libwebrtc\modules\remote_bitrate_estimator\bwe_defines.h
npm-scripts.js [INFO] executing command: MSBuild ./worker/mediasoup-worker.sln /p:Configuration=Release
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 5/20/2020 2:05:31 PM.
Project "C:\Users\facebook-dev\Downloads\multiparty-meeting-master\multiparty-meeting-master\server\node_modules\mediasoup\worker\mediasoup-worker.sln" on node 1 (default targets).
C:\Users\facebook-dev\Downloads\multiparty-meeting-master\multiparty-meeting-master\server\node_modules\mediasoup\worker\mediasoup-worker.sln.metaproj : error MSB4126: The specified solution configuration "Release|MCD" is i
nvalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to us 
e the default solution configuration. [C:\Users\facebook-dev\Downloads\multiparty-meeting-master\multiparty-meeting-master\server\node_modules\mediasoup\worker\mediasoup-worker.sln]
Done Building Project "C:\Users\facebook-dev\Downloads\multiparty-meeting-master\multiparty-meeting-master\server\node_modules\mediasoup\worker\mediasoup-worker.sln" (default targets) -- FAILED.


Build FAILED.

"C:\Users\facebook-dev\Downloads\multiparty-meeting-master\multiparty-meeting-master\server\node_modules\mediasoup\worker\mediasoup-worker.sln" (default target) (1) ->
(ValidateSolutionConfiguration target) ->
  C:\Users\facebook-dev\Downloads\multiparty-meeting-master\multiparty-meeting-master\server\node_modules\mediasoup\worker\mediasoup-worker.sln.metaproj : error MSB4126: The specified solution configuration "Release|MCD" is 
 invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to 
use the default solution configuration. [C:\Users\facebook-dev\Downloads\multiparty-meeting-master\multiparty-meeting-master\server\node_modules\mediasoup\worker\mediasoup-worker.sln]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.05
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: clang-tools-prebuilt@0.1.4 (node_modules\clang-tools-prebuilt):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: clang-tools-prebuilt@0.1.4 postinstall: `node install.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mediasoup@3.5.13 postinstall: `node npm-scripts.js postinstall`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mediasoup@3.5.13 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\facebook-dev\AppData\Roaming\npm-cache\_logs\2020-05-20T21_05_34_663Z-debug.log

Yes, mediasoup is production ready. Can you stop ignoring my question? Why do you insist in saying that you install mediasoup with VSCode?

Im using npm install. So Im using npm to install mediasoup. Thought it was a given since I said I was using nodeJS. Also installtion points out Visual Studio so wanted to make it clear the environment.

Ok, so that’s Visual Studio and not VSCode. Good.

Have you read the installation requirements for Windows? Please, answer with a specific question.

Yes.

I also uninstalled Python 3.8 and installed Python 2.7

There are some issues in Windows (not our fault, GYP is not maintained):

We will migrate to CMake to solve those problems:

I see another dev made a temp fix, I’ll try for now.
npm install git+https://github.com/GraphCeppelin/mediasoup.git

Any ETA on that update?

You can try that, but it’s an outdated version of mediasoup.

We’ll do it when possible, no ETA.

Yes it didn’t work anyhow. I’ll stay tuned. Thanks

An advice: Use Docker instead. The mediasoup demo comes with a Docker image.

1 Like

Defeats the purpose to integrate into base API. I noticed someone got it working on Windows. When I asked if he could help, he asked for $100 :smiley:

I’ll use Kurento for now.

He should help you for free because… why?

Nice. Goodbye.

Aww poor baby dont get so upset.
I’ll try this again when its no longer beta.
Show me prod apps using it…I’ll wait :smiley:

Ok, I will answer you:

Fuck you, stupid moron