Skip to content

Commit

Permalink
fix(webcam): remove log outputs
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Sep 1, 2024
1 parent 66e3507 commit e5adef6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/components/webcams/streamers/Mjpegstreamer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ export default class Mjpegstreamer extends Mixins(BaseMixin, WebcamMixin) {
async startStream() {
if (this.streamState) {
this.log('stream already started')
return
}
this.streamState = true
Expand Down Expand Up @@ -143,7 +142,6 @@ export default class Mjpegstreamer extends Mixins(BaseMixin, WebcamMixin) {
this.restartStream()
}, 10000)
this.log('start read stream')
this.reader = response.body?.getReader()
this.readStream()
} catch (error: any) {
Expand All @@ -157,10 +155,7 @@ export default class Mjpegstreamer extends Mixins(BaseMixin, WebcamMixin) {
try {
const { done, value } = await this.reader.read()
if (done) {
this.log('done')
return
}
if (done) return
// stop if the stream has no value
if (!value) {
Expand Down

0 comments on commit e5adef6

Please sign in to comment.