Skip to content

Commit

Permalink
webrtc: fix media conversion failure
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Dec 26, 2024
1 parent c5a7038 commit 92257e4
Show file tree
Hide file tree
Showing 3 changed files with 4 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.56",
"version": "0.2.57",
"scripts": {
"scrypted-setup-project": "scrypted-setup-project",
"prescrypted-setup-project": "scrypted-package-json",
Expand Down
2 changes: 1 addition & 1 deletion plugins/webrtc/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export class WebRTCPlugin extends AutoenableMixinProvider implements DeviceCreat
}

if (fromMimeType === ScryptedMimeTypes.FFmpegInput) {
const ffmpegInput: FFmpegInput = typeof data === 'object' ? data : JSON.parse(data.toString());
const ffmpegInput: FFmpegInput = typeof data === 'object' && !Buffer.isBuffer(data) ? data : JSON.parse(data.toString());
const mo = await mediaManager.createFFmpegMediaObject(ffmpegInput);

class OnDemandSignalingChannel implements RTCSignalingChannel {
Expand Down

0 comments on commit 92257e4

Please sign in to comment.