binarykitchen / videomail-client

A wicked npm package to record videos directly in the browser, wohooo!
https://videomail.io
Creative Commons Zero v1.0 Universal
55 stars 19 forks source link

print a user friendlier warning for that error #145

Closed binarykitchen closed 6 years ago

binarykitchen commented 6 years ago

Webcam has no audio
InvalidStateError: Failed to execute 'createMediaStreamSource' on 'BaseAudioContext': MediaStream has no audio track

happened on URL https://videomail.io/

at origin

(undefined)

error code

code=undefined, type=undefined, name=undefined

Client

{
 "browser": {
  "name": "Chrome",
  "version": "61.0.3163.100",
  "major": "61"
 },
 "device": {},
 "os": {
  "name": "Windows",
  "version": "7"
 },
 "engine": {
  "name": "WebKit",
  "version": "537.36"
 },
 "userAgent": null
}

has cookies

(undefined)

Log lines

[debug] #videomail [13:36:50] > Client: interactive(), previousState = 4, !building = true, !isBuilt() = true
[debug] #videomail [13:36:50] > Container: initEvents()
[debug] #videomail [13:36:50] > Container: buildForm()
[debug] #videomail [13:36:50] > Container: buildChildren()
[debug] #videomail [13:36:50] > Buttons: initEvents()
[debug] #videomail [13:36:50] > Visuals: initEvents()
[debug] #videomail [13:36:50] > Visuals: buildChildren()
[debug] #videomail [13:36:50] > Notifier: build()
[debug] #videomail [13:36:50] > Notifier: initEvents()
[debug] #videomail [13:36:50] > RecorderInsides: build()
[debug] #videomail [13:36:50] > RecorderInsides: initEvents()
[debug] #videomail [13:36:50] > Replay: build()
[debug] #videomail [13:36:50] > Replay: buildElement()
[debug] #videomail [13:36:50] > Replay: built.
[debug] #videomail [13:36:50] > Visuals: built.
[debug] #videomail [13:36:50] > Container: built.
[debug] #videomail [13:36:50] > Container emits: BUILT
[debug] #videomail [13:36:50] > Recorder: initEvents()
[debug] #videomail [13:36:50] > Recorder: initialising web socket to wss://videomail.io
[debug] #videomail [13:36:50] > Recorder emits: CONNECTING
[debug] #videomail [13:36:50] > Notifier: notify()
[debug] #videomail [13:36:50] > Notifier emits: NOTIFYING
[debug] #videomail [13:36:50] > Recorder: clearRetryTimeout()
[debug] #videomail [13:36:50] > Container emits: FORM_READY [ { paused: false } ]
[debug] #videomail [13:36:51] > °º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸ Stream *resume* event emitted
[debug] #videomail [13:36:51] > °º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸ Stream *uncork* event emitted
[debug] #videomail [13:36:51] > °º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸ Stream *connect* event emitted
[debug] #videomail [13:36:51] > Recorder emits: CONNECTED
[debug] #videomail [13:36:51] > Going to ask for webcam permissons now ...
[debug] #videomail [13:36:51] > °º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸ Stream *data* event emitted
[debug] #videomail [13:37:33] > VideomailError: create()

Stack

(undefined)
binarykitchen commented 6 years ago

nah, i think its okay. just ignore it on the server side