progression maybe

master
bel 2020-05-10 20:56:39 -06:00
parent f14a7b5f04
commit 433e47e3f5
2 changed files with 16 additions and 2 deletions

View File

@ -10,11 +10,15 @@
video { video {
width: 100%; width: 100%;
width: 100%; width: 100%;
max-height: 90vh;
/*
max-width: 400px; max-width: 400px;
min-width: 400px; min-width: 400px;
*/
border: 1px solid black; border: 1px solid black;
display: inline-block; display: inline-block;
} }
#preview { display: none; }
</style> </style>
</head> </head>

View File

@ -3,7 +3,16 @@ class Config {
'iceServers': [ 'iceServers': [
{'urls': 'stun:stun.stunprotocol.org:3478'}, {'urls': 'stun:stun.stunprotocol.org:3478'},
{'urls': 'stun:stun.l.google.com:19302'}, {'urls': 'stun:stun.l.google.com:19302'},
] /*
{
'urls': 'turn:turn.home.blapointe.com:5349',
'credentialType': 'password',
'username': 'user',
'credential': 'pass',
},
*/
],
'iceTransportPolicy': 'all', // all for p2p, relay for turn
}; };
static getCookie(cname) { static getCookie(cname) {
@ -33,12 +42,13 @@ class Config {
var uuid = Config.getCookie('uuid'); var uuid = Config.getCookie('uuid');
if (!uuid) { if (!uuid) {
uuid = Config.createUUID(); uuid = Config.createUUID();
Config.setCookie('uuid'); Config.setCookie('uuid', uuid);
} }
return uuid; return uuid;
} }
static createUUID() { static createUUID() {
return "" + new Date();
function s4() { function s4() {
return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1); return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
} }