HTTP request error handling
Opened this issue · 0 comments
friday commented
On the demo package ingest page (ex https://web.whip.eyevinn.technology/) we are not showing any error message if the connection fails. Some ad blockers (like Brave browsers defaults) are blocking cross-site requests to localhost/and or 127.0.0.1 etc from other domains even if the browser actually allows them without CORS issues.
Maybe it would be better to be able to handle/catch these as WHIPClient events, and use that from the demo page to show some modal?
They are thrown from
whip/packages/sdk/src/WHIPProtocol.ts
Line 15 in 7789d20
Possibly related to #106