Add files via upload

This commit is contained in:
Steve Seguin 2021-06-23 03:03:20 -04:00 committed by GitHub
parent f57df65c4b
commit 78ac9f961c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 25 deletions

View File

@ -53,7 +53,7 @@ audio{
<hr>
</div>
<script src="https://unpkg.com/@ffmpeg/ffmpeg@0.9.6/dist/ffmpeg.min.js"></script>
<script src="./thirdparty/ffmpeg.min.js"></script>
<script>
function download(data, filename) {

View File

@ -1675,11 +1675,11 @@
/// If wanting to fully-self-host, uncomment the following and deploy your own websocket server; good for air-gapped deployments
// session.wss = "wss://wss.contribute.cam:443"; // https://github.com/steveseguin/websocket_server
// session.pie=true;
// session.customWSS = true;
//////
/////// Or you can use piesocket.com if you wish to have a basic free websocket server hosted for you by a third-party
//session.pie = true; // Set to true to have Piesocket.com
//session.customWSS = true; // Set to true to have Piesocket.com
//var apiKey = "ZCu96UFf9ezeQeClK7BOCkq6Q0x0lxWAPJcgxjz5"; // GET YOUR OWN API KEY at piesocket.com, as using this one is a privacy hazard.
//session.wss = "wss://us-nyc-1.websocket.me/v3/1?api_key="+apiKey;
////////////

36
lib.js
View File

@ -5413,9 +5413,9 @@ function createRoomCallback(passAdd, passAdd2) {
}
var pie = "";
if (session.pie){
if (session.pie!==true){
pie = "&pie="+session.pie;
if (session.customWSS){
if (session.customWSS!==true){
pie = "&pie="+session.customWSS;
}
}
@ -5746,9 +5746,9 @@ function createDirectorOnlyBox() {
}
}
var pie = "";
if (session.pie){
if (session.pie!==true){
pie = "&pie="+session.pie;
if (session.customWSS){
if (session.customWSS!==true){
pie = "&pie="+session.customWSS;
}
}
@ -9576,9 +9576,9 @@ session.publishStream = function(v, title="Stream Sharing Session"){ // stream
}
var pie = "";
if (session.pie){
if (session.pie!==true){
pie = "&pie="+session.pie;
if (session.customWSS){
if (session.customWSS!==true){
pie = "&pie="+session.customWSS;
}
}
@ -9898,9 +9898,9 @@ session.publishScreen = function(constraints, title="Screen Sharing Session", au
} catch (e){}
var pie = "";
if (session.pie){
if (session.pie!==true){
pie = "&pie="+session.pie;
if (session.customWSS){
if (session.customWSS!==true){
pie = "&pie="+session.customWSS;
}
}
@ -10264,9 +10264,9 @@ session.publishFile = function(ele, event, title="Video File Sharing Session"){
} catch (e){}
var pie = "";
if (session.pie){
if (session.pie!==true){
pie = "&pie="+session.pie;
if (session.customWSS){
if (session.customWSS!==true){
pie = "&pie="+session.customWSS;
}
}
@ -12764,9 +12764,9 @@ function generateQRPageCallback(hash) {
}
var pie = "";
if (session.pie){
if (session.pie!==true){
pie = "&pie="+session.pie;
if (session.customWSS){
if (session.customWSS!==true){
pie = "&pie="+session.customWSS;
}
}

View File

@ -655,9 +655,9 @@ async function main(){ // main asyncronous thread; mostly initializes the user s
if (urlParams.has('pie')){
session.pie = urlParams.get('pie') || false; // If session.pie == true, then there is no need to set parameters via URL
if (session.pie){
session.wss = "wss://us-nyc-1.websocket.me/v3/1?api_key="+session.pie; // if URL param is set, it will use the API key.
session.customWSS = urlParams.get('pie') || false; // If session.customWSS == true, then there is no need to set parameters via URL
if (session.customWSS){
session.wss = "wss://us-nyc-1.websocket.me/v3/1?api_key="+session.customWSS; // if URL param is set, it will use the API key.
}
}

File diff suppressed because one or more lines are too long