videomail-client 2.18.1 → 2.18.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.browserslistrc +1 -1
- package/TODO.md +4 -4
- package/audit-ci.json +2 -2
- package/package.json +17 -17
- package/prototype/js/videomail-client.js +772 -794
- package/prototype/js/videomail-client.min.js +10 -10
- package/prototype/js/videomail-client.min.js.map +1 -1
- package/src/js/util/browser.js +4 -0
- package/src/js/wrappers/visuals/recorder.js +17 -9
package/src/js/util/browser.js
CHANGED
|
@@ -403,19 +403,27 @@ const Recorder = function (visuals, replay, defaultOptions = {}) {
|
|
|
403
403
|
|
|
404
404
|
connecting = connected = false
|
|
405
405
|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
406
|
+
let videomailError
|
|
407
|
+
|
|
408
|
+
if (browser.isIOS()) {
|
|
409
|
+
// setting custom text since that err object isn't really an error
|
|
410
|
+
// on iphones when locked, and unlocked, this err is actually
|
|
411
|
+
// an event object with stuff we can't use at all (an external bug)
|
|
412
|
+
videomailError = VideomailError.create(
|
|
413
|
+
'Sorry, connection has timed out',
|
|
414
|
+
'iPhones cannot maintain a websocket longer than three minutes.',
|
|
415
|
+
options
|
|
416
|
+
)
|
|
417
|
+
} else {
|
|
418
|
+
// or else it could be a poor wifi connection...
|
|
419
|
+
videomailError = VideomailError.create(
|
|
414
420
|
'Data exchange interrupted',
|
|
415
421
|
'Please check your network connection and reload.',
|
|
416
422
|
options
|
|
417
423
|
)
|
|
418
|
-
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
self.emit(Events.ERROR, videomailError)
|
|
419
427
|
})
|
|
420
428
|
|
|
421
429
|
// just experimental
|