Skip to content

Commit

Permalink
webrtc: fixup for intercom?
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Jun 19, 2024
1 parent 5dac1de commit 7b19204
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/webrtc/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/webrtc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrypted/webrtc",
"version": "0.2.25",
"version": "0.2.26",
"scripts": {
"scrypted-setup-project": "scrypted-setup-project",
"prescrypted-setup-project": "scrypted-package-json",
Expand Down
3 changes: 2 additions & 1 deletion plugins/webrtc/src/wrtc-to-rtsp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ export async function createRTCPeerConnectionSource(options: {

let destroyProcess: () => void;

const ic: Intercom = {
const ic: Intercom & { __json_copy_serialize_children: true } = {
__json_copy_serialize_children: true,
async startIntercom(media: MediaObject) {
if (!isPeerConnectionAlive(pc))
throw new Error('peer connection is closed');
Expand Down

0 comments on commit 7b19204

Please sign in to comment.