I have started using navigator.mediaDevices.getUserMedia({audio: true, video:false})
a media stream and it is working fine. Now i want it to stop on a button click but i couldn't find any workable solutions.
As per my research WebRTC has depreciated stream.stop()
but i also found some alternatives like in Stop/Close webcam which is opened by navigator.getUserMedia
but solutions here are not working either.
Is there any workable solution?