note: Do not forget to click "Share audio" in Chrome.
(Firefox does not support audio sharing.)

@@ -679,6 +679,17 @@ if (urlParams.has('turn')){
}
+function jumptoroom(){
+ document.getElementById("joinroomID").value;
+
+ var arr = window.location.href.split('?');
+ if (arr.length > 1 && arr[1] !== '') {
+ window.location+="&roomid="+document.getElementById("joinroomID").value;
+ } else {
+ window.location+="?roomid="+document.getElementById("joinroomID").value;
+ }
+}
+
var micvolume = 100;
session.connect();
session.volume = micvolume;
@@ -688,6 +699,11 @@ if (urlParams.has('roomid')){
document.getElementById("videoname1").value = roomid;
document.getElementById("dirroomid").innerHTML = roomid;
document.getElementById("roomid").innerHTML = roomid;
+ document.getElementById("container-1").className = 'column columnfade advanced';
+ document.getElementById("container-4").className = 'column columnfade advanced';
+ document.getElementById("head1").innerHTML = '- Welcome. Please select an option to join the chat room';
+ document.getElementById("add_camera").innerHTML = "Join Room with Camera";
+ document.getElementById("add_screen").innerHTML = "Screenshare with Room";
if (urlParams.has('scene')){
session.scene = urlParams.get('scene');
document.getElementById("container-4").className = 'column columnfade';
@@ -835,6 +851,13 @@ function publishScreen(){
video: {width: width, height: height, cursor: "never", mediaSource: "browser"}
};
+ if (session.roomid){
+ joinRoom(session.roomid,300);
+ document.getElementById("head3").className = 'advanced';
+ } else {
+ document.getElementById("head3").className = '';
+ }
+
session.publishScreen(constraints, title);
log("streamID is: "+session.streamID);
@@ -843,7 +866,6 @@ function publishScreen(){
document.getElementById("head1").className = 'advanced';
document.getElementById("head2").className = 'advanced';
- document.getElementById("head3").className = '';
}
function publishWebcam(){