Releasing Camera After Clearing Local Video src

34 views
Skip to first unread message

Nicholas Hall

unread,
Aug 25, 2014, 6:37:04 PM8/25/14
to eas...@googlegroups.com
Does anyone know if it's possible to release the camera/mic when there are no active calls?

For instance, I call easyrtc.initUserMedia() at some arbitrary point then later I want to "release" it so my camera can be used again by other applications, like Skype (*cringe*).

It seems like once initUserMedia is called, there is no going back.  Is there a way apart from reloading the page?

Eric Davies

unread,
Aug 25, 2014, 7:47:26 PM8/25/14
to eas...@googlegroups.com
Try easyrtc.closeLocalMediaStream()

Nicholas Hall

unread,
Aug 28, 2014, 1:11:20 PM8/28/14
to eas...@googlegroups.com
Thanks!  This is exactly what I was looking for.
Reply all
Reply to author
Forward
0 new messages