Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
changeVideoStream
/**
* Room buttons now changeVideoStream() when clicked.
*/
var registerRoomButton = function registerRoomButton () {
document.getElementById('hallOne' ).addEventListener( 'click', changeVideoStream, false);
document.getElementById('kitchen' ).addEventListener( 'click', changeVideoStream, false);
document.getElementById('entryway' ).addEventListener( 'click', changeVideoStream, false);
document.getElementById('livingroom').addEventListener( 'click', changeVideoStream, false);
document.getElementById('bathroom' ).addEventListener( 'click', changeVideoStream, false);
document.getElementById('bedroom' ).addEventListener( 'click', changeVideoStream, false);
document.getElementById('hallTwo' ).addEventListener( 'click', changeVideoStream, false);
document.getElementById('driveway' ).addEventListener( 'click', changeVideoStream, false);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.