Explorar o código

fix(back): video cannot be played

Casper Dai %!s(int64=3) %!d(string=hai) anos
pai
achega
1349b86a15
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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()) {