Skip to content
Snippets Groups Projects
Commit 23e3034b authored by Anton Georgiev's avatar Anton Georgiev
Browse files

add missing functions for toggling

parent a0fc60ca
No related branches found
No related tags found
No related merge requests found
......@@ -198,16 +198,19 @@ controls.setAttribute('align', 'middle');
controls.setAttribute('float', 'left');
// ****************** Controls *****************************/
function recToggle(){
document.getElementById("client-content").contentWindow.postMessage('c_record', '*');
}
function muteToggle(){
document.getElementById("client-content").contentWindow.postMessage('c_mute', '*');
}
// Node for the control which controls recording functionality of the html5Client
recButton.setAttribute('onClick', 'recToggle();');
controls.appendChild(recButton);
// const muteButton = document.createElement('button');
// muteButton.innerHTML = 'Toggle mute';
muteButton.setAttribute('onClick', 'muteToggle();');
controls.appendChild(muteButton);
// Append the nodes of contents to the body node
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment