webrtc: fix 2 way audio for webrtc devices

This commit is contained in:
Koushik Dutta
2022-11-26 19:44:09 -08:00
parent bbcc8d4d74
commit ac90062e73
3 changed files with 4 additions and 4 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/webrtc",
"version": "0.0.105",
"version": "0.0.106",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/webrtc",
"version": "0.0.105",
"version": "0.0.106",
"dependencies": {
"@koush/werift": "file:../../external/werift/packages/webrtc",
"@scrypted/common": "file:../../common",

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/webrtc",
"version": "0.0.105",
"version": "0.0.106",
"scripts": {
"scrypted-setup-project": "scrypted-setup-project",
"prescrypted-setup-project": "scrypted-package-json",

View File

@@ -144,7 +144,7 @@ export async function startRtpForwarderProcess(console: Console, ffmpegInput: FF
const { rtspMode, onRtspClient, rtspClientForceTcp } = options || {};
const { video, audio } = rtpTracks;
rtpTracks = Object.assign({}, rtpTracks);
const videoCodec = video.codecCopy;
const videoCodec = video?.codecCopy;
const audioCodec = audio?.codecCopy;
const ffmpegPath = await mediaManager.getFFmpegPath();