Преглед изворни кода

fix(back): video cannot be played

Casper Dai пре 3 година
родитељ
комит
1349b86a15
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      src/views/device/back/components/Video.vue

+ 3 - 1
src/views/device/back/components/Video.vue

@@ -126,7 +126,9 @@ export default {
       }
     },
     getAuthCode () {
-      authCode({ deviceId: this.device.id }).then(this.createPlayer)
+      authCode({ deviceId: this.device.id }).then(({ data }) => {
+        this.createPlayer(data)
+      })
     },
     createPlayer ({ timestamp, token, expire }) {
       if (flvjs.isSupported()) {