chore: stopMediaStream on all streams and make sure dispose runs everytime
Description
Looking at https://gitlab.com/famedly/company/product-management/-/issues/743 and https://gitlab.com/famedly/company/product-management/-/issues/607, maybe disposing streams breaks sometimes and closing the peer connection fails. This makes sure that we atleast dispose the peerconnection everytime.
Checklist
-
I read the [Contributor Guide] and followed the process outlined there for submitting PRs. -
I updated/added relevant documentation (doc comments with ///). -
I did not add or update methods, functions or widgets without tests.
Edited by td