Created
June 16, 2016 00:08
-
-
Save jchang419/a87a0188aaed55de77ddb20f126d1999 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function rePublish() { | |
| session.unpublish(publisher); | |
| // using initPublisher will work once | |
| //publisher = OT.initPublisher(); | |
| session.publish(publisher, function(err) { | |
| if (err) { | |
| console.log(err); | |
| } else { | |
| console.log('republish'); | |
| } | |
| }); | |
| console.log('switched camera'); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment