Переглянути джерело

refactor(record config): min bit rate is 36kb/s, min frame rate is 1

Casper Dai 3 роки тому
батько
коміт
85418d618f

+ 11 - 11
src/views/realm/device/config/components/RecordConfigDialog.vue

@@ -23,21 +23,21 @@
       <div class="l-flex--row c-grid-form__option">
         <el-input-number
           v-model="recordConfig.videoBitRate"
-          :min="100"
+          :min="36"
           :max="999999"
           step-strictly
         />
-        &nbsp;Kbps(最低100Kbps)
+        &nbsp;Kbps(最低36Kbps)
       </div>
       <span class="c-grid-form__label">帧率:</span>
       <div class="l-flex--row c-grid-form__option">
         <el-input-number
           v-model="recordConfig.frameRate"
-          :min="10"
-          :max="60"
+          :min="1"
+          :max="24"
           step-strictly
         />
-        &nbsp;10~60
+        &nbsp;1~24
       </div>
     </div>
   </confirm-dialog>
@@ -69,17 +69,17 @@ export default {
             deviceId: id,
             videoWidth,
             videoHeight,
-            videoBitRate: videoBitRate / 1000,
+            videoBitRate: videoBitRate / 1024 | 0,
             frameRate
           }
         } else {
           this.$has = false
           this.recordConfig = {
             deviceId: id,
-            videoWidth: 1920,
-            videoHeight: 1080,
-            videoBitRate: 2048,
-            frameRate: 30
+            videoWidth: 640,
+            videoHeight: 360,
+            videoBitRate: 36,
+            frameRate: 1
           }
         }
         this.$refs.configDialog.show()
@@ -91,7 +91,7 @@ export default {
         deviceId,
         videoWidth,
         videoHeight,
-        videoBitRate: videoBitRate * 1000,
+        videoBitRate: videoBitRate * 1024,
         frameRate
       }).then(done)
     }