@sigmaott/base-next 1.4.45 → 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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sigmaott/base-next",
3
3
  "type": "module",
4
- "version": "1.4.45",
4
+ "version": "1.4.46",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -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