mirror of
https://github.com/koush/scrypted.git
synced 2026-02-12 18:12:04 +00:00
webrtc: fix typo
This commit is contained in:
4
plugins/webrtc/package-lock.json
generated
4
plugins/webrtc/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/webrtc",
|
||||
"version": "0.0.26",
|
||||
"version": "0.0.27",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/webrtc",
|
||||
"version": "0.0.26",
|
||||
"version": "0.0.27",
|
||||
"dependencies": {
|
||||
"@koush/werift": "file:../../external/werift/packages/webrtc",
|
||||
"@scrypted/common": "file:../../common",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@scrypted/webrtc",
|
||||
"version": "0.0.26",
|
||||
"version": "0.0.27",
|
||||
"scripts": {
|
||||
"prepublishOnly": "NODE_ENV=production scrypted-webpack",
|
||||
"prescrypted-vscode-launch": "scrypted-webpack",
|
||||
|
||||
@@ -223,7 +223,6 @@ export async function createRTCPeerConnectionSink(
|
||||
const transcode = willTranscode
|
||||
|| mediaStreamOptions?.video?.codec !== 'h264'
|
||||
|| ffmpegInput.h264EncoderArguments?.length;
|
||||
const width = Math.min(options?.screen?.width || 960, 1280);
|
||||
|
||||
if (transcode) {
|
||||
const conservativeDefaultBitrate = 500000;
|
||||
@@ -245,7 +244,7 @@ export async function createRTCPeerConnectionSink(
|
||||
if (filterIndex !== -1)
|
||||
ffmpegInput.inputArguments[filterIndex + 1] = ffmpegInput.inputArguments[filterIndex + 1] + ` [unscaled]; [unscaled] ${scaleFilter}`;
|
||||
else
|
||||
videoArgs.push(scaleFilter)
|
||||
videoArgs.push('-vf', scaleFilter)
|
||||
|
||||
if (!sessionSupportsH264High || maximumCompatibilityMode) {
|
||||
// baseline profile must use libx264, not sure other encoders properly support it.
|
||||
@@ -265,7 +264,7 @@ export async function createRTCPeerConnectionSink(
|
||||
}
|
||||
}
|
||||
else {
|
||||
videoArgs.push('-vf', '-vcodec', 'copy')
|
||||
videoArgs.push('-vcodec', 'copy')
|
||||
}
|
||||
|
||||
if (ffmpegInput.h264FilterArguments)
|
||||
|
||||
Reference in New Issue
Block a user