Skip to content

Instantly share code, notes, and snippets.

@phm200
Created May 30, 2018 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phm200/be74a11fc1d1d5c0ddff3a1d91cbd9a7 to your computer and use it in GitHub Desktop.
Save phm200/be74a11fc1d1d5c0ddff3a1d91cbd9a7 to your computer and use it in GitHub Desktop.
Streams PR #64 - Softphone Manager 1
// SoftphoneManager code
connect.contact(function(contact) {
...
contact.onRefresh(function() {
...
session.remoteAudioElement = document.getElementById('remote-audio');
session.connect();
// new code
contact.session = session;
}
}
...
// Streams powered application code
function muteSelf() {
window.myCPP.contact.session.pauseLocalAudio();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment