Created
May 30, 2018 19:52
-
-
Save phm200/be74a11fc1d1d5c0ddff3a1d91cbd9a7 to your computer and use it in GitHub Desktop.
Streams PR #64 - Softphone Manager 1
This file contains 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
// 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