我目前正在尝试在我的 Angular (13) 应用程序中实现 Livekit。
我安装了“livekit-client”:“^1.14.1”,并将“@types/webrtc”:“^0.0.39”添加到了devDependency和tsConfig中。
我目前在 ngServe 时遇到此错误:
Error: node_modules/livekit-client/dist/src/e2ee/utils.d.ts:4:100 - error TS2304: Cannot find name 'RTCEncodedVideoFrame'.
4 export declare function isVideoFrame(frame: RTCEncodedAudioFrame | RTCEncodedVideoFrame): frame is RTCEncodedVideoFrame;
知道如何解决这个问题吗?
这很可能与您的 TypeScript 版本有关。 仅在 4.7
中添加了对
RTCEncodedAudioFrame
的支持