|
|
@@ -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()) {
|