Fix footer display

This commit is contained in:
Bubka 2020-05-08 11:37:49 +02:00
parent 1c5f12d691
commit 04e513ab0c
2 changed files with 14 additions and 1 deletions

View File

@ -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')
} }
}, },

View File

@ -178,6 +178,11 @@
this.showFooter = true this.showFooter = true
}); });
this.$on('cannotStream', function() {
this.showFooter = true
});
}, },
components: { components: {