mirror of
https://github.com/eliasstepanik/vdo.ninja.git
synced 2026-01-12 06:08:33 +00:00
Add files via upload
This commit is contained in:
parent
d10fd3c7c5
commit
ddf52dd4ec
16
index.html
16
index.html
@ -54,7 +54,7 @@
|
||||
transition: opacity .1s linear;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="./main.css?ver=150" />
|
||||
<link rel="stylesheet" href="./main.css?ver=151" />
|
||||
<script type="text/javascript" crossorigin="anonymous" src="./thirdparty/adapter.min.js"></script>
|
||||
<style id="lightbox-animations" type="text/css"></style>
|
||||
</head>
|
||||
@ -67,7 +67,7 @@
|
||||
<link itemprop="url" href="./media/vdoNinja_logo_full.png" />
|
||||
</span>
|
||||
<script type="text/javascript" crossorigin="anonymous" src="./thirdparty/CodecsHandler.js?ver=36"></script>
|
||||
<script type="text/javascript" crossorigin="anonymous" src="./webrtc.js?ver=344"></script>
|
||||
<script type="text/javascript" crossorigin="anonymous" src="./webrtc.js?ver=345"></script>
|
||||
<input id="zoomSlider" type="range" style="display: none;" />
|
||||
<div id="header">
|
||||
|
||||
@ -281,7 +281,7 @@
|
||||
<span data-translate="scenes-can-see-director" style="cursor: help;" title="If checked, the director can be added to scenes as if a guest. Otherwise, the director will never appear in a scene." >The director will be performing as well, appearing in group scenes</span>
|
||||
</b>
|
||||
</th>
|
||||
</tr><tr style="display:none;">
|
||||
</tr><tr>
|
||||
<th style="text-align:right; padding: 5px;">
|
||||
|
||||
</th>
|
||||
@ -344,7 +344,7 @@
|
||||
<div class="container-inner">
|
||||
<br />
|
||||
<p>
|
||||
<video id="previewWebcam" class="previewWebcam task" data-menu="context-menu-video" oncanplay="updateStats();" controlsList="nodownload" muted autoplay playsinline ></video>
|
||||
<video id="previewWebcam" class="previewWebcam task" title="Right-click this video for additional options" data-menu="context-menu-video" oncanplay="updateStats();" controlsList="nodownload" muted autoplay playsinline ></video>
|
||||
</p>
|
||||
<div id="infof"></div>
|
||||
<button onclick="this.disabled=true;setTimeout(function(){requestBasicPermissions();},20);" id="getPermissions" style="display:none;" data-ready="false" >
|
||||
@ -1358,7 +1358,7 @@
|
||||
<span data-translate="request-upload"> Request File</span>
|
||||
</button>
|
||||
|
||||
<button class="hidden mainonly" data-cluster="2" data-action-type="create-timer" data-value="0" title="Set a countdown timer that this guest sees" onclick="directTimer(this, event);">
|
||||
<button class="hidden mainonly" data-cluster="2" data-action-type="create-timer" data-value="0" title="Set a countdown timer that this guest sees. CTRL (cmd) + click to pause." onclick="directTimer(this, event);">
|
||||
<i class="las la-clock"></i>
|
||||
<span data-translate="create-timer">Create Timer</span>
|
||||
</button>
|
||||
@ -1872,7 +1872,7 @@
|
||||
|
||||
|
||||
var session = WebRTC.Media; // session is a required global variable if configuring manually. Run before loading main.js but after webrtc.js.
|
||||
session.version = "20.2";
|
||||
session.version = "20.3";
|
||||
session.streamID = session.generateStreamID(); // randomly generates a streamID for this session. You can set your own programmatically if needed
|
||||
|
||||
session.defaultPassword = "someEncryptionKey123"; // Change this password if self-deploying for added security/privacy
|
||||
@ -1937,11 +1937,11 @@
|
||||
// session.introOnClean = true; // this will load the page with the webcam selection screen if &push or &room is in the URL; no need to use &webcam.
|
||||
</script>
|
||||
<script type="text/javascript" crossorigin="anonymous" src="./thirdparty/aes.js"></script>
|
||||
<script type="text/javascript" crossorigin="anonymous" id="lib-js" src="./lib.js?ver=255"></script>
|
||||
<script type="text/javascript" crossorigin="anonymous" id="lib-js" src="./lib.js?ver=256"></script>
|
||||
<!--
|
||||
// If you wish to change branding, blank offers a good clean start.
|
||||
<script type="text/javascript" id="main-js" src="./main.js" data-translation="blank"></script>
|
||||
-->
|
||||
<script type="text/javascript" crossorigin="anonymous" id="main-js" src="./main.js?ver=289"></script>
|
||||
<script type="text/javascript" crossorigin="anonymous" id="main-js" src="./main.js?ver=290"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
17
main.css
17
main.css
@ -201,7 +201,9 @@ button.grey {
|
||||
.red2 {
|
||||
background-color: #840000 !important;
|
||||
}
|
||||
|
||||
.blue {
|
||||
background-color: #000084 !important;
|
||||
}
|
||||
|
||||
.orange {
|
||||
background-color: #673100 !important;
|
||||
@ -576,7 +578,7 @@ hr {
|
||||
left: -1px;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
font-size: 0.55em;
|
||||
font-size: 0.54em;
|
||||
display: none;
|
||||
}
|
||||
|
||||
@ -797,6 +799,10 @@ button.glyphicon-button.active.focus {
|
||||
.roomnotes{
|
||||
display:none!important;
|
||||
}
|
||||
|
||||
#head5 {
|
||||
margin-right: 1px;
|
||||
}
|
||||
}
|
||||
@media only screen and (max-width: 400px){
|
||||
#subControlButtons {
|
||||
@ -3022,7 +3028,7 @@ span#guestTips {
|
||||
|
||||
.video-meter {
|
||||
padding:0.5vh;
|
||||
display:none;
|
||||
display:block;
|
||||
width:0.5vh;
|
||||
height:0.5vh;
|
||||
min-width:10px;
|
||||
@ -3038,7 +3044,7 @@ span#guestTips {
|
||||
|
||||
.video-meter-2 {
|
||||
padding:0;
|
||||
display:none;
|
||||
display:block;
|
||||
width:100%;
|
||||
height:100%;
|
||||
min-width:10px;
|
||||
@ -3059,7 +3065,7 @@ span#guestTips {
|
||||
right: 10px;
|
||||
}
|
||||
.video-meter2 {
|
||||
display:none;
|
||||
display:block;
|
||||
padding:0;
|
||||
width: 4px;
|
||||
height:0%;
|
||||
@ -3497,6 +3503,7 @@ input:checked + .slider:before {
|
||||
.alertModal {
|
||||
width: 90%;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.iframeDetails {
|
||||
|
||||
25
main.js
25
main.js
@ -1463,9 +1463,9 @@ async function main(){ // main asyncronous thread; mostly initializes the user s
|
||||
}
|
||||
}
|
||||
|
||||
//if (navigator.userAgent.indexOf('Mac OS X') != -1) {
|
||||
// session.codec = "h264"; // default the codec to h264 if OBS is on macOS (that's all it supports with hardware) // oct 2021, OBS now supports vp8 and actually breaks with h264 android devices.
|
||||
//}
|
||||
if (navigator.userAgent.indexOf('Mac OS X') != -1) {
|
||||
session.codec = "h264"; // default the codec to h264 if OBS is on macOS (that's all it supports with hardware) // oct 2021, OBS now supports vp8 and actually breaks with h264 android devices.
|
||||
}
|
||||
|
||||
if (session.disableOBS===false){
|
||||
window.addEventListener("obsSourceVisibleChanged", obsSourceVisibleChanged);
|
||||
@ -1482,7 +1482,6 @@ async function main(){ // main asyncronous thread; mostly initializes the user s
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (urlParams.has('chroma')) {
|
||||
log("Chroma ENABLED");
|
||||
getById("main").style.backgroundColor = "#" + (urlParams.get('chroma') || "0F0");
|
||||
@ -2597,21 +2596,25 @@ async function main(){ // main asyncronous thread; mostly initializes the user s
|
||||
session.queue = true;
|
||||
}
|
||||
|
||||
if (urlParams.has('permaid') || urlParams.has('push')) {
|
||||
session.permaid = urlParams.get('push') || urlParams.get('permaid');
|
||||
if (urlParams.has('push') || urlParams.has('id') || urlParams.has('permaid') ) {
|
||||
session.permaid = urlParams.get('push') || urlParams.get('id') || urlParams.get('permaid');
|
||||
|
||||
if (session.permaid) {
|
||||
session.streamID = sanitizeStreamID(session.permaid);
|
||||
} else {
|
||||
session.permaid = null;
|
||||
}
|
||||
|
||||
if (urlParams.has('permaid')) {
|
||||
updateURL("permaid=" + session.streamID, true, false); // I'm not deleting the permaID first tho...
|
||||
|
||||
if (urlParams.has('push')){
|
||||
updateURL("push="+session.streamID, true, false);
|
||||
} else if (urlParams.has('id')){
|
||||
updateURL("id="+session.streamID, true, false); // not 'officially' supporting this yet; we'll see.
|
||||
} else if (urlParams.has('permaid')){
|
||||
updateURL("permaid="+session.streamID, true, false);
|
||||
} else {
|
||||
updateURL("push=" + session.streamID, true, false); // I'm not deleting the permaID first tho...
|
||||
updateURL("push="+session.streamID, true, false);
|
||||
}
|
||||
|
||||
|
||||
if (urlParams.has('director') || urlParams.has('dir')) { // if I do a short form of this, it will cause duplications in the code elsewhere.
|
||||
//var director_room_input = urlParams.get('director');
|
||||
//director_room_input = sanitizeRoomName(director_room_input);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user