@sigmaott/base-next 1.4.45 → 1.4.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -92,6 +92,7 @@ const [encoderIdValue, encoderIdAttrs] = useElField<string>(getProp('encoderId')
|
|
|
92
92
|
},
|
|
93
93
|
])
|
|
94
94
|
const [encoderTypeValue] = useElField<string>(getProp('encoderType'), [])
|
|
95
|
+
const [AIConfigValue] = useElField<string>('channelConfig', [])
|
|
95
96
|
|
|
96
97
|
const paramsMachine = reactive({
|
|
97
98
|
page: 1,
|
|
@@ -316,6 +317,11 @@ function getEncoderConfig(newEncoderType: string) {
|
|
|
316
317
|
config.videoCodec = 'h264'
|
|
317
318
|
config.videoPreset = 'llhp'
|
|
318
319
|
break
|
|
320
|
+
case 'netint':
|
|
321
|
+
config.videoCodec = 'h264'
|
|
322
|
+
config.videoPreset = 'medium'
|
|
323
|
+
config.videoProfile = 'main'
|
|
324
|
+
break
|
|
319
325
|
case 'aurora4':
|
|
320
326
|
config.videoCodec = 'h264'
|
|
321
327
|
config.videoPreset = 'veryfast'
|
|
@@ -380,13 +386,32 @@ function setDefaultEncoder() {
|
|
|
380
386
|
}
|
|
381
387
|
function handleChangeEncoderMode(newValue: string) {
|
|
382
388
|
encoderIdValue.value = undefined
|
|
389
|
+
encoderTypeValue.value = undefined
|
|
383
390
|
if (newValue === 'AUTO' && !areAllEncoderTypesSame(profilesValue.value))
|
|
384
391
|
setDefaultEncoder()
|
|
385
392
|
}
|
|
386
393
|
|
|
394
|
+
function handleCheckAIConfig() {
|
|
395
|
+
AIConfigValue.value.censorship.enable = false
|
|
396
|
+
AIConfigValue.value.pte.enable = false
|
|
397
|
+
AIConfigValue.value.forensicWatermarkConfig.enable = false
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
const _encoderMap = computed(() =>
|
|
401
|
+
Object.fromEntries(
|
|
402
|
+
optionsVideoEncoder.value.map(item => [item.id, item])
|
|
403
|
+
)
|
|
404
|
+
)
|
|
405
|
+
|
|
387
406
|
function handleChangeVideoEncoder(newValue: string) {
|
|
407
|
+
const _encoder = _encoderMap.value[newValue]
|
|
408
|
+
encoderTypeValue.value = _encoder?.type
|
|
409
|
+
|
|
388
410
|
if (!areAllEncoderTypesSame(profilesValue.value))
|
|
389
411
|
setDefaultEncoder()
|
|
412
|
+
|
|
413
|
+
if (encoderTypeValue.value === 'NETINT')
|
|
414
|
+
handleCheckAIConfig()
|
|
390
415
|
}
|
|
391
416
|
</script>
|
|
392
417
|
|