Audio problems on IOS Safari/Chrome

If you change the device then I think the already captured track will auto stop and you will have to take fresh track from getUserMedia, and from this point the process is same as I described above.

This has been thoroughly discussed in this topic: