Fixed compile error

This commit is contained in:
WolverinDEV 2020-11-22 16:24:32 +01:00
parent 0e030215db
commit 0fc138598b

View file

@ -128,7 +128,7 @@ export class RtpVideoConnection implements VideoConnection {
} }
getBroadcastStatistics(type: VideoBroadcastType): Promise<VideoBroadcastStatistics | undefined> { getBroadcastStatistics(type: VideoBroadcastType): Promise<VideoBroadcastStatistics | undefined> {
return this.rtcConnection.getVideoBroadcastStatistics(type); return this.rtcConnection.getVideoBroadcastStatistics(type === "camera" ? "video" : "video-screen");
} }
getBroadcastingSource(type: VideoBroadcastType): VideoSource | undefined { getBroadcastingSource(type: VideoBroadcastType): VideoSource | undefined {