mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-25 22:41:57 +02:00
Fix footer display
This commit is contained in:
parent
1c5f12d691
commit
04e513ab0c
@ -134,6 +134,8 @@
|
|||||||
this.showStream = false
|
this.showStream = false
|
||||||
|
|
||||||
this.$parent.$emit('stopStreaming')
|
this.$parent.$emit('stopStreaming')
|
||||||
|
|
||||||
|
console.log('stream disabled')
|
||||||
},
|
},
|
||||||
|
|
||||||
async onStreamerInit (promise) {
|
async onStreamerInit (promise) {
|
||||||
@ -175,15 +177,21 @@
|
|||||||
|
|
||||||
if( this.errorName ) {
|
if( this.errorName ) {
|
||||||
this.canStream = false
|
this.canStream = false
|
||||||
console.log(this.errorText)
|
this.$parent.$emit('cannotStream')
|
||||||
|
|
||||||
|
console.log('fail to stream : ' + this.errorText)
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !this.errorName && !this.showStream ) {
|
if( !this.errorName && !this.showStream ) {
|
||||||
this.camera = 'off'
|
this.camera = 'off'
|
||||||
|
|
||||||
|
console.log('stream stopped')
|
||||||
}
|
}
|
||||||
|
|
||||||
if( this.canStream && this.showStream) {
|
if( this.canStream && this.showStream) {
|
||||||
this.$parent.$emit('startStreaming')
|
this.$parent.$emit('startStreaming')
|
||||||
|
|
||||||
|
console.log('stream started')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -178,6 +178,11 @@
|
|||||||
this.showFooter = true
|
this.showFooter = true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.$on('cannotStream', function() {
|
||||||
|
|
||||||
|
this.showFooter = true
|
||||||
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user