@sigmaott/base-next 1.4.44 → 1.4.46
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
|
@@ -722,7 +722,7 @@ const optionsPreset = computed(() => {
|
|
|
722
722
|
|
|
723
723
|
const codecSelection = computed(() => {
|
|
724
724
|
return {
|
|
725
|
-
video: (encoderValue.value === 'open_h264' || encoderValue.value === 'aurora4')
|
|
725
|
+
video: (encoderValue.value === 'open_h264' || encoderValue.value === 'aurora4' || encoderValue.value === 'netint')
|
|
726
726
|
? { H264: 'h264' }
|
|
727
727
|
: encoderValue.value === 'open_hevc'
|
|
728
728
|
? { HEVC: 'hevc' }
|
|
@@ -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,
|
|
@@ -380,13 +381,32 @@ function setDefaultEncoder() {
|
|
|
380
381
|
}
|
|
381
382
|
function handleChangeEncoderMode(newValue: string) {
|
|
382
383
|
encoderIdValue.value = undefined
|
|
384
|
+
encoderTypeValue.value = undefined
|
|
383
385
|
if (newValue === 'AUTO' && !areAllEncoderTypesSame(profilesValue.value))
|
|
384
386
|
setDefaultEncoder()
|
|
385
387
|
}
|
|
386
388
|
|
|
389
|
+
function handleCheckAIConfig() {
|
|
390
|
+
AIConfigValue.value.censorship.enable = false
|
|
391
|
+
AIConfigValue.value.pte.enable = false
|
|
392
|
+
AIConfigValue.value.forensicWatermarkConfig.enable = false
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
const _encoderMap = computed(() =>
|
|
396
|
+
Object.fromEntries(
|
|
397
|
+
optionsVideoEncoder.value.map(item => [item.id, item])
|
|
398
|
+
)
|
|
399
|
+
)
|
|
400
|
+
|
|
387
401
|
function handleChangeVideoEncoder(newValue: string) {
|
|
402
|
+
const _encoder = _encoderMap.value[newValue]
|
|
403
|
+
encoderTypeValue.value = _encoder?.type
|
|
404
|
+
|
|
388
405
|
if (!areAllEncoderTypesSame(profilesValue.value))
|
|
389
406
|
setDefaultEncoder()
|
|
407
|
+
|
|
408
|
+
if (encoderTypeValue.value === 'NETINT')
|
|
409
|
+
handleCheckAIConfig()
|
|
390
410
|
}
|
|
391
411
|
</script>
|
|
392
412
|
|