phone.stop() is not working
bryanlimy opened this issue · comments
Bryan M. Li commented
I tried on both v1 and v2, phone.stop()
would be get me TypeError: phone.stop is not a function
.
I wonder if there is a probably to terminate a PHONE
and stop using the camera/mic.
Stephen Blum commented
Checking...
Stephen Blum commented
Try: PHONE.camera.stop()
or phone.camera.stop()
.
Looks like only the session
also has this method. Try using session.stop()
. I'll update the docs to reference this correctly.
Stephen Blum commented
For code reference detail on Camera/Mic Media Access:
PHONE.camera.start = startcamera;
PHONE.camera.stop = stopcamera;
PHONE.camera.video = () => myvideo; // <-- direct access to local media stream
Bryan M. Li commented
just tested
phone.camera.stop()
works fine. it stops the MediaStreamTrack
Thanks!