Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
88f748d2e0 | |||
8bf131b78c |
1
.gitignore
vendored
Executable file
1
.gitignore
vendored
Executable file
@ -0,0 +1 @@
|
|||||||
|
.idea
|
@ -478,11 +478,11 @@ function gotCustomStream(stream) {
|
|||||||
|
|
||||||
function startSharing(){
|
function startSharing(){
|
||||||
if(!window.stream){
|
if(!window.stream){
|
||||||
console.log('windos.stream not found');
|
console.log('window.stream not found');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
socket = io('https://kurento.fishrungames.com/');
|
socket = io('https://stream.gto.to/');
|
||||||
|
|
||||||
socket.on('connect', function(){
|
socket.on('connect', function(){
|
||||||
console.log('Connected to socket');
|
console.log('Connected to socket');
|
||||||
@ -493,7 +493,7 @@ function startSharing(){
|
|||||||
socket.on('disconnect', function(){
|
socket.on('disconnect', function(){
|
||||||
console.log('Disconnected from socket');
|
console.log('Disconnected from socket');
|
||||||
setDefaults();
|
setDefaults();
|
||||||
dispose();
|
chrome.runtime.reload();
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on('presenterResponse', function(data) {
|
socket.on('presenterResponse', function(data) {
|
||||||
@ -505,7 +505,7 @@ function startSharing(){
|
|||||||
socket.on('stopCommunication', function(data) {
|
socket.on('stopCommunication', function(data) {
|
||||||
console.log('stopCommunication');
|
console.log('stopCommunication');
|
||||||
setDefaults();
|
setDefaults();
|
||||||
dispose();
|
chrome.runtime.reload();
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on('iceCandidate', function(data) {
|
socket.on('iceCandidate', function(data) {
|
||||||
@ -558,7 +558,7 @@ function presenterResponse(message) {
|
|||||||
var popup_height = 170;
|
var popup_height = 170;
|
||||||
|
|
||||||
chrome.windows.create({
|
chrome.windows.create({
|
||||||
url: "data:text/html,<title>Unique Room URL</title><h1 style='text-align:center'>Copy following private URL:</h1><input type='text' value='https://kurento.fishrungames.com/?room=" + roomHash + "' style='text-align:center;width:100%;font-size:1.2em;'><p style='text-align:center'>You can share this private-session URI with fellows using email or social networks.</p>",
|
url: "data:text/html,<title>Unique Room URL</title><h1 style='text-align:center'>Copy following private URL:</h1><input type='text' value='https://stream.gto.to/?room=" + roomHash + "' style='text-align:center;width:100%;font-size:1.2em;'><p style='text-align:center'>You can share this private-session URI with fellows using email or social networks.</p>",
|
||||||
type: 'popup',
|
type: 'popup',
|
||||||
width: popup_width,
|
width: popup_width,
|
||||||
height: popup_height,
|
height: popup_height,
|
||||||
|
Loading…
Reference in New Issue
Block a user