diff --git a/resources/js/components/QuickUploader.vue b/resources/js/components/QuickUploader.vue index bd5b5ab0..291026da 100644 --- a/resources/js/components/QuickUploader.vue +++ b/resources/js/components/QuickUploader.vue @@ -134,6 +134,8 @@ this.showStream = false this.$parent.$emit('stopStreaming') + + console.log('stream disabled') }, async onStreamerInit (promise) { @@ -175,15 +177,21 @@ if( this.errorName ) { this.canStream = false - console.log(this.errorText) + this.$parent.$emit('cannotStream') + + console.log('fail to stream : ' + this.errorText) } if( !this.errorName && !this.showStream ) { this.camera = 'off' + + console.log('stream stopped') } if( this.canStream && this.showStream) { this.$parent.$emit('startStreaming') + + console.log('stream started') } }, diff --git a/resources/js/views/Accounts.vue b/resources/js/views/Accounts.vue index f490355c..a5cf71d3 100644 --- a/resources/js/views/Accounts.vue +++ b/resources/js/views/Accounts.vue @@ -178,6 +178,11 @@ this.showFooter = true }); + this.$on('cannotStream', function() { + + this.showFooter = true + }); + }, components: {