Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var xnte = 0;
- mute.onclick = function () {
- var cli = "#" + webrtc.getDomId(peer);
- xnte = xnte + 1;
- if (xnte % 2 == 0) {
- $(cli).prop('muted', true);
- img.src = 'muted.png'
- } else {
- $(cli).prop('muted', false);
- img.src = 'speaker.png'
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment