ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.
https://antmedia.io
Other
4.29k stars 636 forks source link

Error in WebRTCAdaptor NPM Package when used in angular 15. #6649

Open rahul78275 opened 2 months ago

rahul78275 commented 2 months ago

Short description

I have installed angular 15 for a project. Installed webRTCAdaptor package from NPM. When you use "npm start". It will throw an error in console.

error TS2503: Cannot find namespace 'NodeJS'. 136 blackFrameTimer: NodeJS.Timer | null;

Package Version

2.11.3

Steps to reproduce

  1. Install angular 15.
  2. Install WebRTCAdaptor package (npm i @antmedia/webrtc_adaptor)
  3. Import package in any component.ts file.
  4. run npm start.

Expected behavior

It should work fine without any error

Actual behavior

error TS2503: Cannot find namespace 'NodeJS'. 136 blackFrameTimer: NodeJS.Timer | null;

Have a look here (Reproducible)

Codesandbox

Screenshot

image

burak-58 commented 2 months ago

Hi @rahul78275, Thanks for the report. I have checked the Angular versions here. I saw that 15 is not supported by Angular, is it correct? Do you have any chance to test it newer versions.

rahul7827 commented 2 months ago

Hello @burak-58 abi.

They have dropped the support for angular 15, but those application which are running will continue to work.

You can have a look at the codesandbox url also mentioned in the last thread, It is running on angular 17. Same issue is there also.