92 Commits
8.0 ... 12.1

Author SHA1 Message Date
Steve Seguin
b270267ec9 Delete template.js 2020-09-14 09:58:42 -04:00
Steve Seguin
52ab49158e Add files via upload 2020-09-14 09:36:21 -04:00
Steve Seguin
de23614d69 Release v12
https://www.reddit.com/r/OBSNinja/comments/irz5be/obsninja_version_12_released_change_log_here/
2020-09-14 09:35:42 -04:00
Steve Seguin
308e81cf12 Merge pull request #315 from COOLIGUAY/patch-3
Update es.json
2020-09-12 06:38:41 -04:00
Monsteer
1b9723ebd6 Small fix 2020-09-12 12:33:10 +02:00
Monsteer
523863f29d Update es.json
Updated to the new additions
2020-09-12 12:29:00 +02:00
Steve Seguin
d6f35092f1 Update turnserver.md 2020-09-12 06:06:46 -04:00
Steve Seguin
031fab960a Update turnserver.md 2020-09-12 06:05:28 -04:00
Steve Seguin
34a6bb49d0 Create turnserver2.conf
this one uses a paid SSL cert
2020-09-12 01:41:40 -04:00
Steve Seguin
059a575b33 Merge pull request #314 from theprincy/patch-6
Update Italian
2020-09-11 17:45:48 -04:00
Notelseit.com
7a51c5a826 Update Italian 2020-09-11 23:44:23 +02:00
Steve Seguin
02c93549d6 Update README.md 2020-09-11 07:52:54 -04:00
Steve Seguin
fb10013ca2 Update README.md 2020-09-11 07:52:33 -04:00
Steve Seguin
5cf966b0e8 Update README.md 2020-09-11 07:52:00 -04:00
Steve Seguin
b40e743253 Update README.md 2020-09-11 07:51:30 -04:00
Steve Seguin
1cfadb29e2 Update README.md 2020-09-11 07:50:47 -04:00
Steve Seguin
a787a78892 Update install.md 2020-09-11 07:46:32 -04:00
Steve Seguin
9cd7b23436 Update install.md 2020-09-11 07:32:54 -04:00
Steve Seguin
afc6e4f059 Create install.md 2020-09-11 07:32:30 -04:00
Steve Seguin
df6c147311 Update turnserver.md 2020-09-10 09:49:01 -04:00
Steve Seguin
0d1606833d Update turnserver.md 2020-09-10 09:29:08 -04:00
Steve Seguin
b8cfecb108 Update turnserver.md 2020-09-10 09:17:20 -04:00
Steve Seguin
31b9df5a06 Update turnserver.md 2020-09-10 09:12:03 -04:00
Steve Seguin
905c39a58b Update turnserver.md 2020-09-10 09:09:27 -04:00
Steve Seguin
d52fb0905e Update turnserver.md 2020-09-10 08:51:22 -04:00
Steve Seguin
6d19c082f4 Update README.md 2020-09-10 08:46:40 -04:00
Steve Seguin
bae12cbf73 Update README.md 2020-09-10 08:44:15 -04:00
Steve Seguin
a0031fff0c Update turnserver.md 2020-09-10 08:42:53 -04:00
Steve Seguin
5115ae7735 Update turnserver.md 2020-09-10 08:42:31 -04:00
Steve Seguin
a1aab474fa Update turnserver.md 2020-09-10 08:41:58 -04:00
Steve Seguin
17c2ae5fc6 Update turnserver.md 2020-09-10 06:16:38 -04:00
Steve Seguin
268460dcd5 Update turnserver.md 2020-09-10 02:14:38 -04:00
Steve Seguin
e7ba4f9e8d Update turnserver.conf 2020-09-10 02:04:41 -04:00
Steve Seguin
214c8d2a76 Update turnserver.md 2020-09-10 02:03:21 -04:00
Steve Seguin
c2fea315a6 Update turnserver.md 2020-09-10 02:01:04 -04:00
Steve Seguin
da2b18f642 Update turnserver.md 2020-09-10 02:00:43 -04:00
Steve Seguin
c310afa1f7 Update turnserver.md 2020-09-10 02:00:09 -04:00
Steve Seguin
c801ceb19a Update turnserver.md 2020-09-10 01:25:36 -04:00
Steve Seguin
b0231f4e00 Add files via upload 2020-09-09 03:01:47 -04:00
Steve Seguin
aa24a4be94 did I fix it? 2020-09-09 02:58:34 -04:00
Steve Seguin
d20aa3cd43 Merge pull request #311 from jcalado/update-portuguese
update portuguese translation
2020-09-09 02:14:20 -04:00
Joel Calado
3b411091d4 update portuguese translation 2020-09-09 07:12:04 +01:00
Steve Seguin
bf9e520f1c try try again 2020-09-09 01:23:04 -04:00
Steve Seguin
fb8271142b Delete default.json 2020-09-09 01:06:13 -04:00
Steve Seguin
680535412e Add files via upload 2020-09-09 01:05:51 -04:00
Steve Seguin
c23aaced01 updated language files a small bit 2020-09-09 00:33:10 -04:00
Steve Seguin
d4f29c6491 Update README.md 2020-09-08 03:05:22 -04:00
Steve Seguin
05082022cd Rename turnserver.MD to turnserver.md 2020-09-08 02:31:56 -04:00
Steve Seguin
d2d9e4918d Update turnserver.MD 2020-09-08 02:30:57 -04:00
Steve Seguin
f1f146a8a5 Update turnserver.MD 2020-09-08 02:28:39 -04:00
Steve Seguin
0c60f1fdd6 Update turnserver.MD 2020-09-08 02:27:53 -04:00
Steve Seguin
daa39963e8 Update turnserver.MD 2020-09-08 02:27:24 -04:00
Steve Seguin
5e5c1592bf Update turnserver.MD 2020-09-08 02:26:41 -04:00
Steve Seguin
f3b7e86095 Update turnserver.MD 2020-09-08 02:25:46 -04:00
Steve Seguin
eeaace7788 Update turnserver.MD 2020-09-08 02:25:37 -04:00
Steve Seguin
5868223c35 Create turnserver.MD 2020-09-08 02:25:06 -04:00
Steve Seguin
6be0fcf79b Merge pull request #302 from COOLIGUAY/patch-2
Update es.json
2020-09-07 16:13:55 -04:00
Monsteer
a9ca78ee2a Update es.json
Things I forgot to change...
2020-09-07 20:28:13 +02:00
Monsteer
2a481a8dbe Update es.json
Small fixes/typing errors.
2020-09-07 20:16:47 +02:00
Steve Seguin
472a83870a Add files via upload
speedtest stats fix
title bar updates
stats menu UI updates
electron app tweaked
etc
2020-09-07 06:20:18 -04:00
Steve Seguin
7e839a0a5b Merge pull request #269 from jcalado/new-stats-ui
new stats ui
2020-09-05 23:21:48 -04:00
Joel Calado
61533e8c9e new stats ui 2020-09-05 22:03:19 +01:00
Steve Seguin
c618b91aa5 Merge pull request #268 from COOLIGUAY/patch-1
Update es.json
2020-09-04 18:03:14 -04:00
Monsteer
c15f33934b Update es.json 2020-09-04 23:27:54 +02:00
Steve Seguin
1df852448b reorganized stats page elements
stats menu for view/push videos has been refactored a bit; cleaned up for easier CSS/templating.
2020-09-04 15:56:03 -04:00
Steve Seguin
fb9bfcc12b push to talk, room fixes, minor tweaks
largely Untested -- not a proper release.
2020-09-04 07:33:53 -04:00
Steve Seguin
af516397d8 Merge pull request #266 from jcalado/update-pt-translation
Update pt.json
2020-09-02 17:20:15 -04:00
Joel Calado
b43a21e860 Update pt.json 2020-09-02 21:30:08 +01:00
Steve Seguin
4dbb6613ef Add files via upload
removing the extra tabs I introduced
2020-08-27 04:31:40 -04:00
Steve Seguin
d33f5bef4c Merge pull request #260 from steveseguin/contrib+patches
try #2.
2020-08-27 04:29:06 -04:00
Steve Seguin
5eefa9021d try #2.
Forgot to pull before I merged.
2020-08-27 04:27:45 -04:00
Steve Seguin
05b021e18c Merge pull request #259 from steveseguin/revert-258-pig-latin-and-novideo-fix
Revert "Add files via upload"
2020-08-27 04:18:21 -04:00
Steve Seguin
c7bbfc4b15 Revert "Add files via upload" 2020-08-27 04:18:09 -04:00
Steve Seguin
235908d0e6 Merge pull request #258 from steveseguin/pig-latin-and-novideo-fix
Add files via upload
2020-08-27 04:14:17 -04:00
Steve Seguin
9ad233cfa9 Add files via upload 2020-08-27 04:13:48 -04:00
Steve Seguin
7425fceeec Merge pull request #257 from jcalado/master
Tweak invite like generator UI
2020-08-27 04:06:22 -04:00
Joel Calado
2caf55089f Merge branch 'master' of https://github.com/jcalado/obsninja 2020-08-27 08:39:44 +01:00
Joel Calado
b31248c191 Tweak Reusable Invite generator UI
Separates settings in groups to improve further expansion of available toggles
Increases margins and padding
2020-08-27 08:37:41 +01:00
Joel Calado
3215094833 Tweak Reusable Invite generator UI
Separates settings in groups to improve further expansion of available toggles
Increases margins and padding
2020-08-27 08:30:11 +01:00
Steve Seguin
75ba4f4b4d Version 10.3 - beta
fixed more bugs; minor polish in features
2020-08-26 06:29:17 -04:00
Steve Seguin
8ff1a0f6b2 v10.2 - bug fixes
Fixed a bug with the group room, where videos froze on guest re-join

added &scene=0 (&scene) , which auto-adds videos to the scene without interaction

Updated the &mirror URL flag to have 0, 1, 2, and 3 as options.

-no mirror parameter in the URL is the default.  Local previews are mirrored
-mirror=0 turns off ALL mirroring, for everything.
-mirror=1 inverts the default.  Local previews are not mirrored, but guests are mirrored.
-mirror=2 mirrors ALL videos
-mirror=3 is the same as default, except the entire website is mirrored, including Text (useful for teleprompters?)

Experimental Code Change :  When the data-channel closes, I auto-close the video channels as well, and try to reload the video from scratch.  I do not wait for the video stream to time out.  This *might* fix a 'stacking video' problem, as well as reducing the "frozen frame" video problem when a guest reloads.

This 10.2 release is currently on https://obs.ninja/beta for testing
2020-08-24 03:14:27 -04:00
Steve Seguin
588e99d581 Merge pull request #239 from steveseguin/version-10.1
Release version 10.1
2020-08-23 02:59:00 -04:00
Steve Seguin
4c4bdeb026 Release version 10.1
release notes here
https://www.reddit.com/r/OBSNinja/comments/ib7vhk/version_10_released_text_chat_and_more_added_see/
2020-08-23 02:55:13 -04:00
Steve Seguin
d1d736549d Update FUNDING.yml 2020-08-18 22:15:15 -04:00
Steve Seguin
8af2a94edc Update FUNDING.yml 2020-08-18 21:49:36 -04:00
Steve Seguin
2a31e5508e fixed an issue with advanced audio settings; added meter 2020-07-27 04:08:41 -04:00
Steve Seguin
dd950b1c4e Add files via upload
added translations
2020-07-17 02:25:36 -04:00
Steve Seguin
079b1e8545 Added iFrame communication and an example 2020-07-17 02:25:09 -04:00
Steve Seguin
9d1c466025 Update turnserver.conf 2020-07-05 17:11:57 -04:00
Steve Seguin
be741878e8 tweaked the auto mixer; side by side instead of over/under as default 2020-07-01 22:17:54 -04:00
Steve Seguin
7dcaf7f6f3 Delete IMG_1148.jpg 2020-06-30 04:51:54 -04:00
Steve Seguin
3719f4a4da version 8.01
minor bug fixes
2020-06-28 21:05:33 -04:00
35 changed files with 4953 additions and 1005 deletions

2
.github/FUNDING.yml vendored
View File

@@ -3,4 +3,4 @@
# Thank you <3
github: [steveseguin]
custom: ["https://www.paypal.me/steveseguin", "buymeacoffee.com/steveseguin"]

View File

@@ -19,14 +19,16 @@ MacOS users will face some challenges in using OBS currently, but there are work
This repo contains software for OBS.Ninja, including the HTML landing page for its Electron Capture app offering. A sample config file and instructions for setting up a TURN server (video relay server), is also provided. You may also find the Wiki for the project in this repo, which contains added information on how to use the software.
## How to Deploy this Repo:
To use, just download and host on a HTTPS-enabled webserver. You may want to hide the .html extensions within your HTTP server as well, else the generated links will not work.
To use, just download and host the files on a HTTPS-enabled webserver. You may want to hide the .html extensions within your HTTP server as well, else the generated links will not work. See [here](https://github.com/steveseguin/obsninja/blob/master/install.md) for added details, although I don't really recommend it.
Directions on how to deploy a TURN server are listed in the turnserver.conf file. You may wish to do so if you are having problems with my existing TURN server, although most users will not need one. About 10% of users, those often connected via 4G LTE, will require a TURN server.
Directions on how to deploy a TURN server are listed in the turnserver.md file. You may wish to do so, although not all use cases will not need one. About 10% of remote guests, those often connected via 4G LTE, will require a TURN server however. While OBS.Ninja does host some TURN servers, they are quite expensive to operate and not really for private deployment use. If you are deploying your own version of OBS.Ninja, I'd ask you use your own TURN servers instead.
## Server side / API software?
Since OBS.Ninja uses peer-2-peer technology, video connections are made directly between viewer and publisher in 90% of cases. Hosting a TURN server yourself may help improve performance, but less than 1% of users will see any benefit of this. Details on how to deploy a TURN server are provided. For those capable of hosting their own TURN server, that would be appreciated if possible, as TURN servers are the only real cost incurred by OBS.Ninja at present. (other than time, of course)
Other than TURN servers, OBS.Ninja also uses public STUN servers and a hosted handshake server. These are used to facilitate the initial setup of peer connections and are generally not required after a peer connection is established. Development builds of OBS.Ninja may include debugging software, but in-production releases have this removed.
Other than TURN servers, OBS.Ninja also uses public STUN servers and a hosted handshake server. These are used to facilitate the initial setup of peer connections and are generally not required after a peer connection is established. These servers are free to access and use, even for private deployments.
Development builds of OBS.Ninja may include debugging software, but in-production releases have this removed. Double check to ensure "console.re" debugging is disabled before deployment, just to be safe.
A design goal of OBS.Ninja is to be serverless and we are 99% of the way there. This design objective ensures OBS.Ninja can be offered for free, along with providing increased levels of security and privacy.
@@ -51,7 +53,7 @@ https://steves.app/
A browser-based studio solution and simplified alternative to OBS, with built-in OBS.Ninja functionality. It is a server-based approach to group interactions and live production. Steve Seguin is affiliated with StageTen, yet StageTen is not affiliated with OBS.Ninja.
## Privacy
I try to avoid data collection whenever possible and video streams are generally designed to be private, but use at your own risk. It is best to not share links created with OBS.Ninja with those you do not trust. I've provided instructions on how to deploy a TURN server if IP-address privacy is an issue for you. See: turnserver.conf
I try to avoid data collection whenever possible and video streams are generally designed to be private, but use at your own risk. It is best to not share links created with OBS.Ninja with those you do not trust. I've provided instructions on how to deploy a TURN server if IP-address privacy is an issue for you. See: turnserver.md
https://obs.ninja may unavoidably use cookies that are exempt from EU laws of requiring notice of their use; they are exempt as they are required and necessary for the technical functioning of the web service. Our webserver is cached by Cloudflare and it provides denial of server protection for the users of OBS.Ninja.
@@ -62,4 +64,3 @@ Ideas, feedback, bugs, etc -- all welcomed. I'm dumping many of my ideas as iss
## Licence
OBS.Ninja is available as open-source; please see the LICENCE.md file for details.

View File

@@ -39,26 +39,46 @@ $(".column").on('click', function() {
styles += '}';
/* Add keyframe to CSS */
$("#lightbox-animations").empty();
$("#lightbox-animations").get(0).sheet.insertRule(styles, 0);
/* Hide the window scrollbar */
$("body").css('overflow', 'hidden');
});
/* Click on close button when full-screen */
$(".close").on('click', function(e) {
$(this).hide();
$(".container-inner").hide();
/* Window scrollbar normal */
$("body").css('overflow', 'auto');
$(this).hide();
$(".container-inner").hide();
$("body").css('overflow', 'auto');
var bounding_box = $(this).parent().get(0).getBoundingClientRect();
$(this).parent().css({ top: bounding_box.top + 'px', left: bounding_box.left + 'px' });
var bounding_box = $(this).parent().get(0).getBoundingClientRect();
$(this).parent().css({ top: bounding_box.top + 'px', left: bounding_box.left + 'px' });
/* Show animation */
$(this).parent().addClass('out-animation');
/* Show animation */
$(this).parent().addClass('out-animation');
e.stopPropagation();
try{
var oldstream = getById('previewWebcam').srcObject;
if (oldstream){
log("old stream found");
oldstream.getTracks().forEach(function(track) {
track.stop();
oldstream.removeTrack(track);
log("stopping old track");
});
}
activatedPreview=false;
} catch (e){
errorlog(e);
}
log("Cleaned up Video");
e.stopPropagation();
});
/* On animationend : from normal to full screen & full screen to normal */
@@ -70,34 +90,77 @@ if(e.originalEvent.animationName == 'inlightbox') {
}
/* On animation end from full-screen to normal */
else if(e.originalEvent.animationName == 'outlightbox') {
/* Remove fixed positioning, remove animation rules */
$(this).removeClass('in-animation').removeClass('out-animation').removeClass('columnfade');
/* Remove fixed positioning, remove animation rules */
$(this).removeClass('in-animation').removeClass('out-animation').removeClass('columnfade');
/* Remove the empty container that was earlier added */
$("#empty-container").remove();
/* Remove the empty container that was earlier added */
$("#empty-container").remove();
/* Delete the dynamic keyframe rule that was earlier created */
$("#lightbox-animations").get(0).sheet.deleteRule(0);
/* Delete the dynamic keyframe rule that was earlier created */
$("#lightbox-animations").get(0).sheet.deleteRule(0);
}
});
$('#audioSource').on('mousedown touchend focusin focusout', function(e) {
var state = $('#multiselect-trigger').data('state') || 0;
if( state == 0 ) {
////open the dropdown
$('#multiselect-trigger').data('state', '1').addClass('open').removeClass('closed');
$('#multiselect-trigger').find('.chevron').removeClass('bottom');
$('#multiselect-trigger').parent().find('.multiselect-contents').show();
$('#multiselect-trigger').parent().find('.multiselect-contents').find('input[type="checkbox"]').parent().show();;
$('#multiselect-trigger').parent().find('.multiselect-contents').find('input[type="checkbox"]').show();;
}
// e.preventDefault();
});
$('#audioSource3').on('mousedown touchend focusin focusout', function(e) {
var state = $('#multiselect-trigger3').data('state') || 0;
if( state == 0 ) {
////open the dropdown
$('#multiselect-trigger3').data('state', '1').addClass('open').removeClass('closed');
$('#multiselect-trigger3').find('.chevron').removeClass('bottom');
$('#multiselect-trigger3').parent().find('.multiselect-contents').show();
$('#multiselect-trigger3').parent().find('.multiselect-contents').find('input[type="checkbox"]').parent().show();;
$('#multiselect-trigger3').parent().find('.multiselect-contents').find('input[type="checkbox"]').show();;
}
// e.preventDefault();
});
// multiselect dropdowns
$('.multiselect-trigger').on('mousedown touchend focusin focusout', function(e) {
$('#multiselect-trigger').on('mousedown touchend focusin focusout', function(e) {
var state = $(this).data('state') || 0;
if( state == 0 ) {
// open the dropdown
$(this).data('state', '1').addClass('open').removeClass('closed');
$(this).find('.fa').removeClass('fa-chevron-down').addClass('fa-chevron-up');
$(this).find('.chevron').removeClass('bottom');
$(this).parent().find('.multiselect-contents').show();
$(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').parent().show();;
$(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').show();;
} else {
// close the dropdown
$(this).data('state', '0').addClass('closed').removeClass('open');
$(this).find('.fa').removeClass('fa-chevron-up').addClass('fa-chevron-down');
//$(this).parent().find('.multiselect-contents').hide();
//$(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').hide();
$(this).find('.chevron').addClass('bottom');
$(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').not(":checked").parent().hide();;
$(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').hide();;
}
e.preventDefault();
});
// multiselect dropdowns
$('#multiselect-trigger3').on('mousedown touchend focusin focusout', function(e) {
var state = $(this).data('state') || 0;
if( state == 0 ) {
// open the dropdown
$(this).data('state', '1').addClass('open').removeClass('closed');
$(this).find('.chevron').removeClass('bottom');
$(this).parent().find('.multiselect-contents').show();
$(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').parent().show();;
$(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').show();;
} else {
// close the dropdown
$(this).data('state', '0').addClass('closed').removeClass('open');
$(this).find('.chevron').addClass('bottom');
$(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').not(":checked").parent().hide();;
$(this).parent().find('.multiselect-contents').find('input[type="checkbox"]').hide();;
}
@@ -105,11 +168,5 @@ $('.multiselect-trigger').on('mousedown touchend focusin focusout', function(e)
});
// when no preference is checked, uncheck the others
$('#multiselect1').on('change', function(e) {
if( $(this).is(':checked') ) {
$(this).parent().parent().find('input[type="checkbox"]').not('#multiselect1').prop('checked', false);
}
e.preventDefault();
});

View File

@@ -138,9 +138,12 @@ function generateInvite(){
sendstr+="&quality=2";
}
}
sendstr = 'https://obs.ninja/?push=' + sid + sendstr;
viewstr = 'https://obs.ninja/?view=' + sid + viewstr + title;
var href = window.location.href;
var dir = href.substring(0, href.lastIndexOf('/')) + "/";
sendstr = dir+'?push=' + sid + sendstr;
viewstr = dir+'?view=' + sid + viewstr + title;
getById("container-setup").style.display="none";
getById("container-links").style.display="block";
@@ -162,7 +165,7 @@ document.addEventListener("dragstart", event => {
var streamId = url.split('view=');
var label = url.split('label=');
url += '&layer-name=OBS.Ninja';
url += '&layer-name=OBSN';
if (streamId.length>1) url += ': ' + streamId[1].split('&')[0];
if (label.length>1) url += ' - ' + decodeURI(label[1].split('&')[0]);

331
dual.html Normal file
View File

@@ -0,0 +1,331 @@
<html>
<head><title>Dual Input</title>
<style>
body{
padding:0;
margin:0;
}
iframe {
border:0;
margin:0;
padding:0;
display:block;
margin:0px;
min-height: 100px;
min-width: 100px;
max-height: 95%;
max-width: 99%%;
float: left;
position: fixed;
}
#viewlink {
width:400px;
}
input{
padding:5px;
margin:5px;
}
button{
padding:5px;
margin:5px;
position:relative;
}
.menu {
z-index: 10;
float:right;
right: 20px;
color: #fff;
}
.close {
background-color: #d33;
color: #fff;
}
.reload {
background-color: #0a0;
color: #fff;
}
.popup {
z-index: 9;
background-color: #f1f1f1;
border: 1px solid #d3d3d3;
text-align: center;
min-height: 100px;
min-width: 100px;
max-height: 95%;
max-width: 99%;
scale: 0.5;
}
.popup {
position: absolute;
/*resize: both; !*enable this to css resize*! */
overflow: auto;
}
.popup-header {
cursor: move;
background-color: #2196f3;
}
.popup .resizer-right {
width: 5px;
height: 100%;
background: transparent;
position: absolute;
right: 0;
bottom: 0;
cursor: e-resize;
}
.popup .resizer-bottom {
width: 100%;
height: 5px;
background: transparent;
position: absolute;
right: 0;
bottom: 0;
cursor: n-resize;
}
.popup .resizer-both {
width: 5px;
height: 5px;
background: transparent;
z-index: 10;
position: absolute;
right: 0;
bottom: 0;
cursor: nw-resize;
}
/*NOSELECT*/
.popup * {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
supported by Chrome and Opera */
}
</style>
</head>
<body>
<input placeholder="Enter an OBS.Ninja Room Link" id="viewlink" />
<button onclick="loadIframe();">Load URL</button>You can drag and resize the generated windows; multiple can be created.
<div id="container"></div>
<script>
var currentZIndex = 100;
function initDragElement(popup){
var pos1 = 0,
pos2 = 0,
pos3 = 0,
pos4 = 0;
var elmnt = null;
var header = getHeader(popup);
var iframe = getIFrame(popup);
popup.onmousedown = function() {
this.style.zIndex = "" + ++currentZIndex;
};
if (header) {
header.parentPopup = popup;
header.onmousedown = dragMouseDown;
}
function dragMouseDown(e) {
elmnt = this.parentPopup;
elmnt.style.zIndex = "" + ++currentZIndex;
e = e || window.event;
// get the mouse cursor position at startup:
pos3 = e.clientX;
pos4 = e.clientY;
document.onmouseup = closeDragElement;
// call a function whenever the cursor moves:
document.onmousemove = elementDrag;
}
function elementDrag(e) {
if (!elmnt) {
return;
}
e = e || window.event;
// calculate the new cursor position:
pos1 = pos3 - e.clientX;
pos2 = pos4 - e.clientY;
pos3 = e.clientX;
pos4 = e.clientY;
// set the element's new position:
elmnt.style.top = elmnt.offsetTop - pos2 + "px";
elmnt.style.left = elmnt.offsetLeft - pos1 + "px";
iframe.style.top = elmnt.offsetTop - pos2 + "px";
iframe.style.left = elmnt.offsetLeft - pos1 + "px";
}
function closeDragElement() {
/* stop moving when mouse button is released:*/
document.onmouseup = null;
document.onmousemove = null;
}
function getHeader(element) {
var headerItems = element.getElementsByClassName("popup-header");
if (headerItems.length === 1) {
return headerItems[0];
}
return null;
}
function getIFrame(element) {
var headerItems = element.getElementsByTagName("iframe");
if (headerItems.length === 1) {
return headerItems[0];
}
return null;
}
}
function initResizeElement(p) {
var iframe = getIFrame(p);
var element = null;
var startX, startY, startWidth, startHeight;
var right = document.createElement("div");
right.className = "resizer-right";
p.appendChild(right);
right.addEventListener("mousedown", initDrag, false);
right.parentPopup = p;
var bottom = document.createElement("div");
bottom.className = "resizer-bottom";
p.appendChild(bottom);
bottom.addEventListener("mousedown", initDrag, false);
bottom.parentPopup = p;
var both = document.createElement("div");
both.className = "resizer-both";
p.appendChild(both);
both.addEventListener("mousedown", initDrag, false);
both.parentPopup = p;
function initDrag(e) {
element = this.parentPopup;
startX = e.clientX;
startY = e.clientY;
startWidth = parseInt(
document.defaultView.getComputedStyle(element).width,
10
);
startHeight = parseInt(
document.defaultView.getComputedStyle(element).height,
10
);
document.documentElement.addEventListener("mousemove", doDrag, false);
document.documentElement.addEventListener("mouseup", stopDrag, false);
document.documentElement.addEventListener("click", stopDrag, false)
}
function doDrag(e) {
if (e.buttons==0){
stopDrag(e);
return false;
}
element.style.width = startWidth + e.clientX - startX + "px";
element.style.height = startHeight + e.clientY - startY + "px";
iframe.style.width = startWidth + e.clientX - startX + "px";
iframe.style.height = startHeight + e.clientY - startY + "px";
}
function stopDrag(e) {
document.documentElement.removeEventListener("mousemove", doDrag, false);
document.documentElement.removeEventListener("mouseup", stopDrag, false);
}
function getIFrame(element) {
var headerItems = element.getElementsByTagName("iframe");
if (headerItems.length === 1) {
return headerItems[0];
}
return null;
}
}
function loadIframe(){
var iframeContainer = document.createElement("div");
iframeContainer.className="popup";
iframeContainer.style.zIndex = "" + ++currentZIndex;
iframeContainer.style.width="325px";
iframeContainer.style.height="420px";
var button = document.createElement("button");
button.innerHTML = "Move";
button.className = "popup-header menu";
iframeContainer.appendChild(button);
var button = document.createElement("button");
button.innerHTML = "Close";
button.className = "menu close";
button.onclick = function(){iframe.contentWindow.postMessage({"close":true}, '*');iframe.parentNode.parentNode.removeChild(iframeContainer);}
iframeContainer.appendChild(button);
var button = document.createElement("button");
button.innerHTML = "Reload";
button.className = "menu reload";
button.onclick = function(){iframe.contentWindow.postMessage({"reload":true}, '*');}
iframeContainer.appendChild(button);
var iframe = document.createElement("iframe");
iframe.allow="autoplay";
iframe.src = document.getElementById("viewlink").value || "https://obs.ninja";
iframe.style.width="325px";
iframe.style.height="420px";
iframeContainer.appendChild(iframe);
document.getElementById("container").appendChild(iframeContainer);
initDragElement(iframeContainer);
initResizeElement(iframeContainer);
}
</script>
</body>
</html>

View File

@@ -3,6 +3,8 @@
html {
border:0;
margin:0;
outline:0;
}
video {
@@ -28,8 +30,18 @@ body {
flex-flow: column;
border:0;
margin:0;
outline:0;
}
button.glyphicon-button:focus,
button.glyphicon-button:active:focus,
button.glyphicon-button.active:focus,
button.glyphicon-button.focus,
button.glyphicon-button:active.focus,
button.glyphicon-button.active.focus {
outline: none !important;
}
button{
padding:10px;
font-size: 20px;
@@ -71,6 +83,31 @@ input[type='checkbox'] {
input[type='checkbox']:checked {
background: #1A1;
}
#audioOutput{
font-size: calc(16px + 0.3vw);
max-width:590px
}
@media only screen and (max-width: 1030px) {
body{
zoom: 0.9;
-moz-transform: scale(0.9);
-moz-transform-origin: 0 0;
}
}
@media only screen and (max-width: 940px) {
body{
zoom: 0.64;
-moz-transform: scale(0.64);
-moz-transform-origin: 0 0;
}
#audioOutput{
font-size: calc(14px + 1.4vw);
max-width:486px
}
}
</style></head>
<body >
@@ -97,7 +134,7 @@ input[type='checkbox']:checked {
<input type="text" id="changeText" class="inputfield" value="http://obs.ninja/?view=" onchange="modURL" onkeyup="enterPressed(event, gohere);" />
<button onclick="gohere();" id="gobutton">GO</button>
<br><br>
<label for="audioOutput">Audio output destination: </label><select id="audioOutput" style="max-width:400px"></select>
<label for="audioOutput">Audio output destination: </label><select id="audioOutput"></select>
</center></div>
</div>
@@ -126,11 +163,13 @@ function updateOutputTarget(e){
document.getElementById('changeText').value = url;
}
function getPermssions(e){
function getPermssions(e=null){
if (listed==true){
return;
}
e.currentTarget.blur();
if (e!==null){
e.currentTarget.blur();
}
navigator.mediaDevices.getUserMedia({audio: true,video: false}).then((stream)=>{
navigator.mediaDevices.enumerateDevices().then(gotDevices).catch(console.error); // list all devices
stream.getTracks().forEach(track => {
@@ -186,6 +225,10 @@ var isMobile = false;
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ // does not detect iPad Pros.
isMobile=true; // if iOS, default to H264? meh. let's not.
}
// Windows can show the cursor, since it captures in a different way.
if (navigator.platform.indexOf("Win") != -1){
document.getElementById("showcursor").checked=true;
}
function updateURLParameter(url, param, paramVal){
var TheAnchor = null;
@@ -289,9 +332,10 @@ function modURL(ele=false){
return url;
}
function gohere(){
var url = modURL(true);
window.location = url;
};
var url = modURL(true);
window.location = url;
};
getPermssions();
</script>
</body>
</html>

235
iframe.html Normal file
View File

@@ -0,0 +1,235 @@
<html>
<head><title>IFRAME Example</title>
<style>
body{
padding:0;
margin:0;
background-color: rgb(253,253,253);
}
iframe {
border:0;
margin:0;
padding:0;
display:block;
margin:10px;
width:640px;
height:320px;
}
#viewlink {
width:400px;
}
#container {
display:block;
padding:0px;
}
input{
padding:5px;
margin:5px;
}
button{
padding:5px;
margin:5px;
}
</style>
<script>
function loadIframe(){
var iframe = document.createElement("iframe");
var iframeContainer = document.createElement("div");
var iframesrc = document.getElementById("viewlink").value;
iframe.allow="autoplay;camera;microphone";
iframe.allowtransparency="true"
if (iframesrc==""){
iframesrc="./";
}
if (document.getElementById("clean").checked){
if (iframesrc.includes("?")){
iframesrc+='&';
} else {
iframesrc+='?';
}
iframesrc+="cleanoutput";
}
if (document.getElementById("transparent").checked){
if (iframesrc.includes("?")){
iframesrc+='&';
} else {
iframesrc+='?';
}
iframesrc+="transparent";
}
if (document.getElementById("hidemenu").checked){
if (iframesrc.includes("?")){
iframesrc+='&';
} else {
iframesrc+='?';
}
iframesrc+="hidemenu";
}
iframe.src = iframesrc;
iframeContainer.appendChild(iframe);
document.getElementById("container").appendChild(iframeContainer);
var button = document.createElement("button");
button.innerHTML = "Mute Speaker";
button.onclick = function(){iframe.contentWindow.postMessage({"mute":true}, '*');};
iframeContainer.appendChild(button);
var button = document.createElement("button");
button.innerHTML = "Un-Mute Speaker";
button.onclick = function(){iframe.contentWindow.postMessage({"mute":false}, '*');};
iframeContainer.appendChild(button);
var button = document.createElement("button");
button.innerHTML = "Toggle Speaker";
button.onclick = function(){iframe.contentWindow.postMessage({"mute":"toggle"}, '*');}
iframeContainer.appendChild(button);
var button = document.createElement("button");
button.innerHTML = "Mute Mic";
button.onclick = function(){iframe.contentWindow.postMessage({"mic":false}, '*');};
iframeContainer.appendChild(button);
var button = document.createElement("button");
button.innerHTML = "Un-Mute Mic";
button.onclick = function(){iframe.contentWindow.postMessage({"mic":true}, '*');};
iframeContainer.appendChild(button);
var button = document.createElement("button");
button.innerHTML = "Toggle Mic";
button.onclick = function(){iframe.contentWindow.postMessage({"mic":"toggle"}, '*');};
iframeContainer.appendChild(button);
var button = document.createElement("button");
button.innerHTML = "Disconnect";
button.onclick = function(){iframe.contentWindow.postMessage({"close":true}, '*');};
iframeContainer.appendChild(button);
var button = document.createElement("button");
button.innerHTML = "Low Bitrate";
button.onclick = function(){iframe.contentWindow.postMessage({"bitrate":30}, '*');};
iframeContainer.appendChild(button);
var button = document.createElement("button");
button.innerHTML = "High Bitrate";
button.onclick = function(){iframe.contentWindow.postMessage({"bitrate":5000}, '*');};
iframeContainer.appendChild(button);
var button = document.createElement("button");
button.innerHTML = "Default Bitrate";
button.onclick = function(){iframe.contentWindow.postMessage({"bitrate":-1}, '*');};
iframeContainer.appendChild(button);
var button = document.createElement("button");
button.innerHTML = "Reload";
button.onclick = function(){iframe.contentWindow.postMessage({"reload":true}, '*');};
iframeContainer.appendChild(button);
var button = document.createElement("button");
button.innerHTML = "50% Volume";
button.onclick = function(){iframe.contentWindow.postMessage({"volume":0.5}, '*');};
iframeContainer.appendChild(button);
var button = document.createElement("button");
button.innerHTML = "100% Volume";
button.onclick = function(){iframe.contentWindow.postMessage({"volume":1.0}, '*');};
iframeContainer.appendChild(button);
var button = document.createElement("button");
button.innerHTML = "Request Stats";
button.onclick = function(){iframe.contentWindow.postMessage({"getStats":true}, '*');};
iframeContainer.appendChild(button);
var button = document.createElement("button");
button.innerHTML = "Say Hello";
button.onclick = function(){iframe.contentWindow.postMessage({"sendChat":"Hello!"}, '*');};
iframeContainer.appendChild(button);
var button = document.createElement("button");
button.innerHTML = "previewWebcam()";
button.onclick = function(){iframe.contentWindow.postMessage({"function":"previewWebcam"}, '*');}; // publishScreen
iframeContainer.appendChild(button);
var button = document.createElement("button");
button.innerHTML = "CLOSE IFRAME";
button.onclick = function(){iframeContainer.parentNode.removeChild(iframeContainer);};
iframeContainer.appendChild(button);
//////////// LISTEN FOR EVENTS
var eventMethod = window.addEventListener ? "addEventListener" : "attachEvent";
var eventer = window[eventMethod];
var messageEvent = eventMethod === "attachEvent" ? "onmessage" : "message";
/// If you have a routing system setup, you could have just one global listener for all iframes instead.
eventer(messageEvent, function (e) {
if (e.source != iframe.contentWindow){return} // reject messages send from other iframes
if ("stats" in e.data){
var outputWindow = document.createElement("outputWindow");
console.log(e.data.stats);
var out = "<br />total_inbound_connections:"+e.data.stats.total_inbound_connections;
out += "<br />total_outbound_connections:"+e.data.stats.total_outbound_connections;
for (var streamID in e.data.stats.inbound_stats){
out += "<br /><br /><b>streamID:</b> "+streamID+"<br />";
out += printValues(e.data.stats.inbound_stats[streamID]);
}
outputWindow.innerHTML = out;
iframeContainer.appendChild(outputWindow);
}
if ("gotChat" in e.data){
var outputWindow = document.createElement("outputWindow");
outputWindow.innerHTML = e.data.gotChat.msg;
outputWindow.style.border="1px dotted black";
iframeContainer.appendChild(outputWindow);
}
});
}
function printValues( obj) {
var out = "";
for (var key in obj) {
if (typeof obj[key] === "object") {
out +="<br />";
out += printValues(obj[key]);
} else {
out +="<b>"+key+"</b>: "+obj[key]+"<br />";
}
}
return out;
}
</script>
</head>
<body>
<input placeholder="Enter an OBS.Ninja View URL here" id="viewlink" />
<button onclick="loadIframe();">ADD</button>
<input type="checkbox" id="clean" checked>Clean Output
<input type="checkbox" id="transparent" checked>Transparent
<input type="checkbox" id="hidemenu">Hide Menu
<div id="container">
</div>
</body>
</html>

View File

@@ -1,5 +1,19 @@
<html>
<head>
<script type="text/javascript">
// MS Internet Explorer must not be given a chance to fail before I can give the user an error message.
try {
var msie = window.navigator.userAgent.indexOf("MSIE ");
if (msie>0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)){ // If MSIE or IE 11
alert("Internet Explorer is not supported.\n\nPlease consider using Google Chrome instead\n\nYou will be forwarded to the download page for Google Chrome now.");
console.error("INTERNET EXPLORER IS EVIL");
window.location = "https://www.google.com/chrome/";
}
} catch(e){
console.error(e);
}
</script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<meta content="utf-8" http-equiv="encoding" />
@@ -20,11 +34,11 @@
<meta property="og:url" content="https://obs.ninja/" />
<meta property="og:title" content="OBS.Ninja" />
<meta property="og:description" content="Bring live video from your smartphone, computer, or friends directly into OBS Studio. 100% free." />
<meta property="og:image" itemprop="image" content="./images/obsNinja_logo_full.png" />
<meta property="og:image" itemprop="image" content="https://obs.ninja/images/obsNinja_logo_full.png" />
<meta name="msapplication-TileImage" content="./images/obsNinja_logo_full.png" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="256" />
<meta property="og:image:height" content="256" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://obs.ninja/" />
@@ -33,14 +47,14 @@
<meta property="twitter:image" content="./images/obsNinja_logo_full.png" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#ffffff" />
<!-- <script src="//console.re/connector.js" data-channel="obsninjaalpha" id="consolerescript"></script> -->
<!-- <script src="//console.re/connector.js" data-channel="obsninjaalpha" type="text/javascript" id="consolerescript"></script>-->
<link rel="stylesheet" href="./lineawesome/css/line-awesome.min.css">
<script type="text/javascript" src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<script type="text/javascript" src="./thirdparty/qrcode.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
<link rel="stylesheet" href="./main.css" />
<script type="text/javascript" crossorigin="anonymous" src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<script type="text/javascript" crossorigin="anonymous" src="./thirdparty/qrcode.min.js"></script>
<script type="text/javascript" src="./thirdparty/jquery.min.js"></script>
<link rel="stylesheet" href="./main.css?ver=11" />
</head>
<body id="main" class="cat">
<body id="main" >
<span itemprop="image" itemscope itemtype="image/png">
<link itemprop="url" href="./images/obsNinja_logo_full.png" />
</span>
@@ -48,17 +62,18 @@
<span itemprop="thumbnail" itemscope itemtype="http://schema.org/ImageObject">
<link itemprop="url" href="./images/obsNinja_logo_full.png" />
</span>
<script language="javascript" type="text/javascript" src="./thirdparty/CodecsHandler.js?ver=5"></script>
<script language="javascript" type="text/javascript" src="./webrtc.js?ver=6"></script>
<script type="text/javascript" crossorigin="anonymous" src="./thirdparty/CodecsHandler.js?ver=19"></script>
<script type="text/javascript" crossorigin="anonymous" src="./webrtc.js?ver=60"></script>
<input id="zoomSlider" type="range" style="display: none;" />
<div id="header">
<div id="header"">
<a id="logoname" href="./" style="text-decoration: none; color: white; margin: 2px;">
<span data-translate="logo-header">
<font id="qos">O</font>BS.Ninja
</span>
</a>
<div id="head1" style="display: inline-block; position: relative;">
<div id="head1" style="display: inline-block; padding:1px; position: relative;">
<input id="joinroomID" name="joinroomID" size="22" placeholder="Join by Room Name here" />
<button style="padding:1px;margin:0;" onclick="jumptoroom();">GO</button>
</div>
<div id="head3" style="display: inline-block;" class="advanced">
<font style="color: #888;" id="copythisurl"> &nbsp;
@@ -70,7 +85,7 @@
onclick="popupMessage(event);copyFunction(this)"
class="task"
onmousedown="copyFunction(this)"
style="font-weight: bold; color: #afa; cursor: grab; background-color: #0000; font-size: 115%; min-width: 300px; max-width: 800px;"
style="font-weight: bold; color: #afa; cursor: grab; background-color: #0000; font-size: 115%; min-width: 335px; max-width: 800px;"
/>
<i class="las la-paperclip task" style="color: #DDD;" onclick="popupMessage(event);copyFunction(document.getElementById('reshare'));" onmouseover="this.style.cursor='pointer'"></i>
</div>
@@ -89,32 +104,39 @@
</div>
</div>
<div id="controlButtons">
<div id="controlButtons" >
<div id="chatbutton" title="Toggle the Chat" onclick="toggleChat()" class="advanced float" style="cursor: pointer;" alt="Toggle the Chat">
<i id="chattoggle" class="toggleSize las la-comment-alt my-float"></i>
<div id="chatNotification"></div>
</div>
<div id="mutebutton" title="Mute the Mic" onclick="toggleMute()" class="advanced float" style="cursor: pointer;" alt="Toggle the mic">
<i id="mutetoggle" class="toggleSize las la-microphone my-float"></i>
<i id="mutetoggle" class="toggleSize las la-microphone my-float" style="position: relative; top: 0.5px;"></i>
</div>
<div id="mutevideobutton" title="Disable the Camera" onclick="toggleVideoMute()" class="advanced float" style="cursor: pointer;" alt="Toggle the camera">
<i id="mutevideotoggle" class="toggleSize las la-eye my-float"></i>
</div>
<div
id="helpbutton"
title="Show Help Info"
onclick="alert('Email steve@seguin.email if the system breaks or check https://reddit.com/r/obsninja for support.\n\nThere are some advanced options hidden away, such as persistent stream links and custom resolutions; see the Wiki.')"
class="advanced float"
style="cursor: pointer;"
alt="How to Use This with OBS"
>
<i class="toggleSize las la-question-circle my-float"></i>
<div id="settingsbutton" title="Settings" onclick="toggleSettings()" class="advanced float" style="cursor: pointer;" alt="Toggle the Settings Menu">
<i id="settingstoggle" class="toggleSize las la-cog my-float"></i>
</div>
<div id="hangupbutton" title="Hangup the Call" onclick="hangup()" class="advanced float" style="cursor: pointer;" alt="Disconnect and End">
<i class="toggleSize my-float las la-phone rotate225" aria-hidden="true"></i>
</div>
</div>
<span
id="helpbutton"
title="Show Help Info"
onclick="alert('Email steve@seguin.email if the system breaks or check https://reddit.com/r/obsninja for support.\n\nThere are some advanced options hidden away, such as persistent stream links and custom resolutions; see the Wiki.')"
style="cursor: pointer; display:none;"
alt="How to Use This with OBS"
>
<i class="las la-question-circle " style="float: right; bottom: 0px; cursor: pointer; position: fixed; right: 24px; color: #d9e4eb; padding: 2px; margin: 2px 2px 0 0; font-size: 140%;"></i>
</span>
<span title="Language Options" onclick="toggle(document.getElementById('languages'));" id="translateButton">
<i style="float: right; bottom: 0px; cursor: pointer; position: fixed; right: 10px; color: #d9e4eb; padding: 0; margin: 2px 2px 0 0; font-size: 140%;" class="las la-language" aria-hidden="true"></i>
<i style="float: right; bottom: 0px; cursor: pointer; position: fixed; right: 2px; color: #d9e4eb; padding: 2px; margin: 2px 2px 0 0; font-size: 140%;" class="las la-language" aria-hidden="true"></i>
</span>
<div id="mainmenu" class="row" style="opacity: 0; align: center;">
<div id="container-1" class="column columnfade" style="background-color: #ddd; overflow-y: auto;">
<div id="container-1" class="column columnfade" style=" overflow-y: auto;">
<h2>
<span data-translate="add-group-chat">Add Group Chat to OBS</span>
</h2>
@@ -147,15 +169,15 @@
<br />
<button onclick="toggle(document.getElementById('roomnotes'),this);">
<span data-translate="show-tips">Show me some tips..</span>
</button>
<ul style="padding: 10px; margin: auto auto; max-width: 500px; display: none; text-align: left;" id="roomnotes">
</button><br />
<ul style=" margin: auto auto; max-width: 500px; display: none; text-align: left;" id="roomnotes">
<br />
<span data-translate="added-notes">
<u>
<i>Added Notes:</i>
<i>Important Notes:</i><br /><br />
</u>
<li>Invite only guests to the room you trust.</li>
<li>iOS devices will share just their audio with other guests; this is mainly a hardware limitation</li>
<li>Invite only guests to the room that you trust.</li>
<li>iOS devices will share just their audio with other room guests; not video. This is intended as a way to avoid a hardware limitation with iOS devices.</li>
<li>The "Recording" option is considered experimental.</li>
</span>
</ul>
@@ -168,32 +190,32 @@
</div>
</div>
</div>
<div id="container-3" class="column columnfade" onclick="previewWebcam()" style="background-color: #ddd; overflow-y: auto;">
<div id="container-3" class="column columnfade" onclick="previewWebcam()" style=" overflow-y: auto;">
<h2 id="add_camera">
<span data-translate="add-your-camera">Add your Camera to OBS</span>
</h2>
<div class="container-inner">
<br />
<p>
<video id="previewWebcam" oncanplay="updateStats();" muted controls autoplay playsinline style="max-width: 640px; max-width: 83vw; max-height: 30vh;"></video>
<video id="previewWebcam" class="previewWebcam" oncanplay="updateStats();" disablePictureInPicture controlsList="nodownload" muted autoplay playsinline ></video>
</p>
<div id="infof"></div>
<button onclick="publishWebcam()" id="gowebcam" class="gowebcam" disabled>
<span data-translate="waiting-for-camera">Waiting for Camera to Load</span>
</button>
<br />
<span style="background-color: #f3f3f3; display: inline-block; padding: 5px 10px; border: 1px solid #ccc; vertical-align: middle;">
<span data-translate="video-source">Video source</span>:
<span id="videoMenu" class="videoMenu">
<i class="las la-video"></i><span data-translate="video-source"> Video Source </span>
<select id="videoSource" style="background-color: #FFF; padding:5px; display: display:inline-block;vertical-align: middle;"></select>
<select id="videoSource" ></select>
<span id="gear_webcam" style="display: inline-block;" onclick="toggle(document.getElementById('videoSettings'));">
&nbsp;&nbsp;
<i class="las la-cog" style="font-size: 170%; vertical-align: middle;" aria-hidden="true"></i>
<i class="las la-cog" style="font-size: 140%; vertical-align: middle;" aria-hidden="true"></i>
</span>
</span>
<br />
<center>
<span id="videoSettings" style="margin: auto auto; display: none; background-color: #f3f3f3; max-width: 500px; padding: 10px 0; margin: 0 0 5px 0;">
<span id="videoSettings" style="display: none;">
<form id="webcamquality">
<input type="radio" id="fullhd" name="resolution" value="0" />
<label for="fullhd">
@@ -212,16 +234,16 @@
<div id="webcamstats" style="padding: 5px 0 0 0;"></div>
</form>
</span>
<br />
</center>
<div class="form-group multiselect">
<a class="form-control multiselect-trigger" tabindex="3">
<div id="audioTitle" style="padding: 5px;" class="title">
<span data-translate="select-audio-source">Select Audio Source</span>:
<i class="las la-chevron-down" aria-hidden="true"></i>
<div id="audioMenu" class="form-group multiselect" alt="tip: Hold CTRL (command) to select Multiple" title="tip: Hold CTRL (command) to select Multiple">
<a id="multiselect-trigger" class="form-control multiselect-trigger" tabindex="3">
<div class="audioTitle">
<i class="las la-microphone-alt"></i><span data-translate="select-audio-source"> Audio Source(s) </span>
<i id='chevarrow1' class="chevron bottom" aria-hidden="true"></i>
<div class="meter" id="meter1"></div>
</div>
</a>
<ul id="audioSource" class="multiselect-contents">
<ul id="audioSource" class="multiselect-contents" >
<li>
<input type="checkbox" id="multiselect1" name="multiselect1" style="display: none;" checked value="ZZZ" />
<label for="multiselect1">
@@ -230,6 +252,15 @@
</li>
</ul>
</div>
<br />
<span id="headphonesDiv" style="text-align:left; margin:17px 0; max-width: 550px; min-width: 420px; background-color: #f3f3f3; display: none; padding: 10px 10px; border: 1px solid #ccc; vertical-align: middle;">
<div class="audioTitle2">
<i class="las la-headphones"></i><span data-translate="select-output-source"> Audio Output Destination: <button onclick="playtone()" style="margin:0 0 0 15px;" type="button">Test</button>
</span></div>
<select id="outputSource" ></select>
</span>
</div>
<div class="outer close">
<div class="inner">
@@ -239,7 +270,8 @@
</div>
</div>
</div>
<div id="container-2" class="column columnfade" style="background-color: #ddd; overflow-y: auto;">
<div id="container-2" class="column columnfade" style=" overflow-y: auto;">
<h2 id="add_screen">
<span data-translate="remote-screenshare-obs">Remote Screenshare into OBS</span>
</h2>
@@ -258,7 +290,7 @@
<i class="las la-cog" style="font-size: 170%; vertical-align: middle;" aria-hidden="true"></i>
</span>
<center>
<span id="videoSettings2" style="margin: auto auto; display: none; background-color: white; vertical-aligh: middle; border: 3px solid #ccc; max-width: 500px; padding: 10px 0 5px 0; margin: 10px 0 5px 0;">
<span id="videoSettings2" style="margin: auto auto; display: none; background-color: white; vertical-aligh: middle; border: 3px solid #ccc; max-width: 500px; padding: 10px 10px 5px 10px; margin: 10px 0 5px 0;">
<form id="webcamquality2">
<input type="radio" id="fullhd2" name="resolution2" value="0" />
<label for="fullhd">
@@ -279,10 +311,10 @@
</span>
<br />
</center>
<p>
<span data-translate="audio-sources">Audio Sources</span>:
<p id="audioScreenShare1">
<span data-translate="audio-sources">Audio Sources</span>
<br />
<select id="audioSourceScreenshare" multiple style="height: 60px; width: 200px; resize: both; overflow: auto; padding: 5px;" onchange="requestAudioStream();">
<select id="audioSourceScreenshare" multiple alt="tip: Hold CTRL (command) to select Multiple" title="tip: Hold CTRL (command) to select Multiple" style="height: 60px; min-width: 290px; resize: both; overflow: auto; padding: 5px;" onchange="requestAudioStream();">
<option value="screenshare" selected>
<span data-translate="screen-shrae-audio">Screen Share Audio (default)</span>
</option>
@@ -291,6 +323,18 @@
</option>
</select>
</p>
<br />
<span id="headphonesDiv2" style="background-color: #f3f3f3; min-width: 270px; display: none; padding: 5px 10px; border: 1px solid #ccc; vertical-align: middle;">
<i class="las la-headphones"></i>
<span data-translate="select-output-source"> Audio Output Destination: <button onclick="playtone(true)" style="padding:2px 5px; margin:0;margin-left:15px; position: relative; top: -2px;" type="button">Test</button></span>
<br />
<select id="outputSourceScreenshare" style="background-color: #FFF; padding:10px 5px; min-width: 268px; display:inline-block; vertical-align: middle;" onclick="requestOutputAudioStream();">
<option value="default">
<span data-translate="default">Default Device</span>
</option>
</select>
</span>
</div>
<div class="outer close">
<div class="inner">
@@ -300,7 +344,7 @@
</div>
</div>
</div>
<div id="container-4" class="column columnfade" style="background-color: #ddd; overflow-y: auto;">
<div id="container-4" class="column columnfade" style=" overflow-y: auto;">
<h2>
<span data-translate="create-reusable-invite">Create Reusable Invite</span>
</h2>
@@ -321,73 +365,76 @@
<br />
<br />
<div style="margin: 20px; max-width: 400px; text-align: left; margin: auto auto;">
<br />
<h4 style="padding: 0 0 10px 0;">
<i>
<span data-translate="advanced-paramaters">Advanced Options:</span>
</i>
</h4>
<br />
<input type="checkbox" id="invite_bitrate" />
<label for="invite_bitrate">
<span data-translate="unlock-video-bitrate">Unlock Video Bitrate (20mbps)</span>
</label>
<br />
<input type="checkbox" id="invite_vp9" />
<label for="invite_vp9">
<span data-translate="force-vp9-video-codec">Force VP9 Video Codec (less artifacting)</span>
</label>
<br />
<input type="checkbox" id="invite_stereo" />
<label for="invite_stereo">
<span data-translate="enable-stereo-and-pro">Enable Stereo and Pro HD Audio</span>
</label>
<br />
<br />
<label for="invite_quality" data-translate="video-resolution">Video Resolution: </label>
<select id="invite_quality" name="invite_quality">
<option value="-1" selected>User Selectable</option>
<option value="0">Maximum Resolution</option>
<option value="1">Balanced</option>
<option value="2">Smooth and Cool</option>
</select>
<br />
<br />
<input type="checkbox" id="invite_secure" />
<label for="invite_secure">
<span data-translate="high-security-mode">High Security Mode</span>
</label>
<br />
<input type="checkbox" id="invite_hidescreen" />
<label for="invite_hidescreen">
<span data-translate="hide-screen-share">Hide Screenshare Option</span>
</label>
<br />
<input type="checkbox" id="invite_remotecontrol" />
<label for="invite_remotecontrol">
<span data-translate="allow-remote-control">Remote Control Camera Zoom (android)</span>
</label>
<br />
<br />
<span data-translate="add-a-password-to-stream"> Add a password:</span>
<input id="invite_password" placeholder="Add an optional password" />
<br />
<br />
<span data-translate="add-the-guest-to-a-room"> Add the guest to a room:</span>
<input id="invite_joinroom" placeholder="Enter Room name here" oninput="document.getElementById('invitegroupchat').style.display='block';" />
<br />
<br />
<span id="invitegroupchat" style="display: none;">
<label for="invite_group_chat_type" data-translate="invite-group-chat-type">This room guest can:</label>
<select id="invite_group_chat_type" name="invite_group_chat_type">
<option value="0" selected data-translate="can-see-and-hear">Can see and hear the group chat</option>
<option value="1" data-translate="can-hear-only">Can only hear the group chat</option>
<option value="2" data-translate="cant-see-or-hear">Cannot hear or see the group chat</option>
</select>
</span>
<br />
<br />
<br />
<div class="invite_setting_group">
<h4>
<span data-translate="advanced-paramaters">Advanced Options</span>
</h4>
<div class="invite_setting_item">
<input type="checkbox" id="invite_bitrate" />
<label for="invite_bitrate">
<span data-translate="unlock-video-bitrate">Unlock Video Bitrate (20mbps)</span>
</label>
</div>
<div class="invite_setting_item">
<input type="checkbox" id="invite_vp9" />
<label for="invite_vp9">
<span data-translate="force-vp9-video-codec">Force VP9 Video Codec (less artifacting)</span>
</label>
</div>
<div class="invite_setting_item">
<input type="checkbox" id="invite_stereo" />
<label for="invite_stereo">
<span data-translate="enable-stereo-and-pro">Enable Stereo and Pro HD Audio</span>
</label>
</div>
<div class="invite_setting_item">
<label for="invite_quality" data-translate="video-resolution">Video Resolution: </label>
<select id="invite_quality" name="invite_quality">
<option value="-1" selected>User Selectable</option>
<option value="0">Maximum Resolution</option>
<option value="1">Balanced</option>
<option value="2">Smooth and Cool</option>
</select>
</div>
</div>
<div class="invite_setting_group">
<div class="invite_setting_item">
<input type="checkbox" id="invite_secure" />
<label for="invite_secure">
<span data-translate="high-security-mode">High Security Mode</span>
</label>
</div>
<div class="invite_setting_item">
<input type="checkbox" id="invite_hidescreen" />
<label for="invite_hidescreen">
<span data-translate="hide-screen-share">Hide Screenshare Option</span>
</label>
</div>
<div class="invite_setting_item">
<input type="checkbox" id="invite_remotecontrol" />
<label for="invite_remotecontrol">
<span data-translate="allow-remote-control">Remote Control Camera Zoom (android)</span>
</label>
</div>
<div class="invite_setting_item">
<span data-translate="add-a-password-to-stream"> Add a password:</span>
<input id="invite_password" placeholder="Add an optional password" />
</div>
<div class="invite_setting_item">
<span data-translate="add-the-guest-to-a-room"> Add the guest to a room:</span>
<input id="invite_joinroom" placeholder="Enter Room name here" oninput="document.getElementById('invitegroupchat').style.display='block';" />
</div>
<div class="invite_setting_item">
<span id="invitegroupchat" style="display: none;">
<label for="invite_group_chat_type" data-translate="invite-group-chat-type">This room guest can:</label>
<select id="invite_group_chat_type" name="invite_group_chat_type">
<option value="0" selected data-translate="can-see-and-hear">Can see and hear the group chat</option>
<option value="1" data-translate="can-hear-only">Can only hear the group chat</option>
<option value="2" data-translate="cant-see-or-hear">Cannot hear or see the group chat</option>
</select>
</span>
</div>
</div>
<div>See the
<a style="text-decoration: none; color: blue;" target="_blank" href="https://docs.obs.ninja/advanced">documentation</a> for more options and info.
</div>
@@ -430,13 +477,13 @@
</li>
<li>Some users will have
<a href="https://github.com/steveseguin/obsninja/wiki/FAQ#video-is-pixelated">"pixelation" problems</a> with videos. Adding
<b>&codec=vp9</b> to the OBS links will often correct it.
<a href="https://github.com/steveseguin/obsninja/wiki/FAQ#video-is-pixelated">"pixel smearing"</a> problems with videos. Avoid Wi-Fi to reduce it or add
<b>&codec=vp9</b> to the OBS view links to prevent it.
</li>
<br />
Site last updated: June 28th, 2020. The previous version can be found at
<a href="https://obs.ninja/v7/">https://obs.ninja/v7/</a> if you are having new issues.
🚨 Site Recently Updated: September 12th, 2020. The previous version can be found at
<a href="https://obs.ninja/v11/">https://obs.ninja/v11/</a> if you are having new issues.
<br />
@@ -444,9 +491,8 @@
<h3>
<i>
Check out the
<a href="https://www.reddit.com/r/OBSNinja/">sub-reddit</a>
<i class="lab la-reddit-alien"></i> for help and advanced info. I'm also on
<a href="https://www.reddit.com/r/OBSNinja/">sub-reddit
<i class="lab la-reddit-alien"></i> </a>for help and see the <a href="https://github.com/steveseguin/obsninja/wiki/">Wiki for advanced info</a>. I'm also on
<a href="https://discord.gg/EksyhGA">Discord</a> and you can email me at steve@seguin.email
</i>
@@ -469,30 +515,60 @@
<a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a>
</div>
</div>
<div id="gridlayout"></div>
<span id="electronDragZone" style="pointer-events: none; z-index:-10; position:absolute;top:0;left:0;width:100%;height:20%;-webkit-app-region: drag;"></span>
<div id="gridlayout" ></div>
<div id="controls_blank" style="display: none;">
<center>
<br />
<b>
<span data-translate="remote-control-for-obs">Remote Control for OBS</span>
</b>
<br />
<button data-value="0" style="font-size: 112%;" onclick="directEnable(this);">
<span data-translate="add-to-group">Add to Group Scene</span>
<b>
<button data-value="0" style="padding: 2px 10px 3px 5px;font-weight:display-block;margin: 2px 0 0 5px;" title="Add this Video to any remote '&scene=1'" onclick="directEnable(this, event);">
<span data-translate="add-to-group" view"> Add to Group Scene</span>
</button>
<button style="font-size: 112%;" onclick="directMute(this);">
<span data-translate="mute">Mute</span>
</button>
<button style="font-size: 112%;" onclick="recordVideo(this)">
<span data-translate="record">Record</span>
<button style="padding: 2px 10px 3px 5px;display:inline-block;margin: 2px 0 0 5px;" title="Start Recording this stream. *experimental*' views" onclick="recordVideo(this, event)">
<span data-translate="record">🔴 Record</span>
</button>
<br />
<span data-translate="volume">Volume</span>:
<input type="range" min="1" max="100" value="100" onclick="directVolume(this);" />
<button style="padding: 2px 10px 3px 5px;display:inline-block;margin: 2px 0 0 5px;" title="Remotely Mute this Audio in all remote '&scene' views" onclick="directMute(this, event);">
<span data-translate="mute" >🔇 Mute in all Scenes</span>
</button>
<i style="font-size:2vh; position: relative; top: 3px;" title="Change this Audio's volume in all remote '&scene' views" class="las la-volume-up"></i>
<input type="range" min="1" max="100" value="100" title="Change this Audio's volume in all remote '&scene' views" onclick="directVolume(this);" style="width: 100px; position: relative; top: 4px;"/>
</b>
<br />
<hr style="margin:5px 0 0 0;"/>
</div>
<div id="popupSelector" style="display:none;">
<span id="videoMenu3" class="videoMenu">
<i class="las la-video"></i><span data-translate="video-source"> Video Source </span>
<select id="videoSource3" ></select>
</span>
<br />
<br />
<hr />
</center>
<div class="form-group multiselect" alt="tip: Hold CTRL (command) to select Multiple" title="tip: Hold CTRL (command) to select Multiple" style="padding: 10px; background-color:#f3f3f3;">
<a id="multiselect-trigger3" class="form-control multiselect-trigger" tabindex="3">
<div id="audioTitle2" class="title">
<i class="las la-microphone-alt"></i><span data-translate="select-audio-source"> Audio Source(s) </span>
<i id="chevarrow2" class="chevron bottom" aria-hidden="true"></i>
</div>
</a>
<ul id="audioSource3" style="background-color:white;" class="multiselect-contents">
<li>
</li>
</ul>
</div>
<br />
<span id="headphonesDiv3" style="display: inline-block;">
<div class="title">
<i class="las la-headphones"></i><span data-translate="select-output-source"> Audio Output Destination:
</div>
<select id="outputSource3" ></select>
</span>
<button id="shareScreenGear" style="padding:20px;" onclick="grabScreen()"><b>Share Screen</b><br /><i style="padding:5px; font-size:300%;" class="las la-desktop"></i></button><br />
<button onclick="toggleSettings()" style="background-color:#EFEFEF;padding:10px 12px 12px 2px;"><i class="chevron right" style="font-size:150%;top:3px;position:relative;"></i> <b>Close Settings</b></button>
</p>
</div>
<nav id="context-menu" class="context-menu">
<ul class="context-menu__items">
@@ -505,14 +581,33 @@
<li class="context-menu__item">
<a href="#" class="context-menu__link" data-action="Copy">
<i class="las la-paperclip"></i>
<span data-translate="copy-to-clipboard">Copy to Clipboard</span>
<span data-translate="copy-to-clipboard" >Copy to Clipboard</span>
</a>
</li>
</ul>
</nav>
<div id="chatModule" style="display:none;">
<div id="chatBody">
<div class="inMessage" data-translate='welcome-to-obs-ninja-chat'>
Welcome to OBS.Ninja! You can send text messages directly to connected peers from here.
</div>
<div class="outMessage" data-translate='names-and-labels-coming-soon'>
Names identifying connected peers will be a feature in an upcoming release.
</div>
</div>
<input id="chatInput" placeholder="Enter chat message to send here"onkeypress="EnterButtonChat(event)" />
<button style="width:60px;background-color:#EEE;" onclick="sendChatMessage()" data-translate='send-chat'>Send</button>
</div>
<audio id="testtone" style="display:none;" preload="none">
<source src="tone.mp3" type="audio/mpeg">
<source src="tone.ogg" type="audio/ogg">
</audio>
<div id="messagePopup" class="popup-message"></div>
<div id="languages" class="popup-message" style="display: none; right: 0; bottom: 25px; position: absolute;">
<b>Available Languages:</b>
<b data-translate='available-languages'>Available Languages:</b>
<br />
<u>
<a onclick="changeLg('ru');toggle(document.getElementById('languages'));" style="cursor: pointer;">Russian</a>
@@ -521,40 +616,54 @@
<br />
<a onclick="changeLg('en');toggle(document.getElementById('languages'));" style="cursor: pointer;">English</a>
<br />
<a onclick="changeLg('pt');toggle(document.getElementById('languages'));" style="cursor: pointer;">Portuguese </a>
<a onclick="changeLg('pt');toggle(document.getElementById('languages'));" style="cursor: pointer;">Portuguese</a>
<br />
<a onclick="changeLg('it');toggle(document.getElementById('languages'));" style="cursor: pointer;">Italian </a>
<a onclick="changeLg('it');toggle(document.getElementById('languages'));" style="cursor: pointer;">Italian</a>
<br />
<a onclick="changeLg('de');toggle(document.getElementById('languages'));" style="cursor: pointer;">German</a>
<br />
<a onclick="changeLg('es');toggle(document.getElementById('languages'));" style="cursor: pointer;">Spanish</a>
<br />
<a onclick="changeLg('nl');toggle(document.getElementById('languages'));" style="cursor: pointer;">Dutch</a>
<br />
<a onclick="changeLg('ja');toggle(document.getElementById('languages'));" style="cursor: pointer;">Japanese</a>
<br />
<a onclick="changeLg('pig');toggle(document.getElementById('languages'));" style="cursor: pointer;">Pig Latin</a>
<br />
</u>
<br />
<a href="https://github.com/steveseguin/obsninja/tree/master/translations">Add More Here!</a>
<a href="https://github.com/steveseguin/obsninja/tree/master/translations" data-translate='add-more-here'>Add More Here!</a>
<br />
</div>
<script>
var session = WebRTC.Media; // session is a required global variable if configuring manually. Run before loading main.js but after webrtc.js.
session.streamID = session.generateStreamID(); // randomly generates a streamID for this session. You can set your own programmatically if needed
session.configuration = {
iceServers: [
{ urls: ["stun:stun.l.google.com:19302", "stun:stun4.l.google.com:19302"] }, // more than 4 stun+turn servers may cause issues
],
};
// session.configuration = {
// iceServers: [
// { urls: ["stun:stun.l.google.com:19302", "stun:stun4.l.google.com:19302"] }, // more than 4 stun+turn servers may cause issues
// ],
// sdpSemantics: 'unified-plan'
// };
var turn = {};
turn.username = "steve";
turn.credential = "justtesting";
turn.urls = ["turn:turn.obs.ninja:443"]; // US CENTRAL
session.configuration.iceServers.push(turn);
// var turn = {};
// turn.username = "steve";
// turn.credential = "justtesting";
// turn.urls = ["turn:turn.obs.ninja:443"]; // US CENTRAL
// session.configuration.iceServers.push(turn);
turn = {};
turn.username = "steve";
turn.credential = "justtesting";
turn.urls = ["turn:turn2.obs.ninja:443"]; // US WEST
session.configuration.iceServers.push(turn);
// turn = {};
// turn.username = "steve";
// turn.credential = "justtesting";
// turn.urls = ["turn:turn2.obs.ninja:443"]; // US WEST
// session.configuration.iceServers.push(turn);
// session.configuration.iceTransportPolicy = "relay"; // uncomment to enable "&privacy" and force the TURN server
// session.wss = false;
///// The following lets you set the defaults
// session.webcamonly // true,false
@@ -585,9 +694,11 @@
// session.scene
// session.title // "zzzz"
</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" src="./animations.js"></script>
-->
<script type="text/javascript" crossorigin="anonymous" id="main-js" src="./main.js?ver=40"></script>
<script type="text/javascript" crossorigin="anonymous" src="./animations.js?ver=10"></script>
</body>
</html>

79
install.md Normal file
View File

@@ -0,0 +1,79 @@
Deploying this code. A guide. (INITIAL DRAFT VERSION)
### PREFACE
The code is obvious enough already that someone experienced with the NGINX webserver or with basic site deployments should have no problem getting things running.
I'm concerned at times that less experienced users will be deploying the code without really understanding why or properly how to. There are few cases a person needs to deploy any code.
Those reasons are: wanting custom branding; contributing as a developer to the codebase; or deploying a private TURN server.
For a subset of those users even, they might still have better options available.
I offer https://rtc.ninja for those looking for a brand-free experience already. You can also point your domain to the OBS.Ninja IP address (provided on request), which will also rebrand the site automatically to match your domain name.
For those wanting a private TURN server setup, you can load the settings for those via the URL parameters. If infrequently needing a private TURN, this is a great solution.
There are also misconceptions. Deploying the website code will NOT make the service faster. The service is peer-to-peer based, so deploying servers will not make it faster. Even deploying a TURN server is often not the best choice, as using a VPN, cloud VM for OBS, or disabling any symmetrical firewall will often provide a better end result.
Understanding clearly why you need to deploy any code or server is important. If you do know why, please continue.
### SETUP
I use Cloudflare with Flexible SSL enabled and HTTP Rewrites. If you do not use Cloudflare, you will need to deploy SSL certificates onto your website. You will also have to have Cloudflare or whatever DNS provider you have, point your domain name to the IP address of your webserver. OBS.Ninja REQUIRES a domain name and SSL.
For webservers, I use NGINX on a Ubuntu server; smaller the better. I rely on Cloudflare to provide caching and SSL, so my installation of NGINX is pretty simple.
```
sudo apt-get update
apt-get install nginx -y
sudo vi /etc/nginx/sites-available/default
sudo systemctl restart nginx
```
An example NGINX config file that "hides" the file extensions is as follows. Update the file as needed and
```server {
listen 80;
listen [::]:80;
server_name obs.ninja;
root /var/www/html/obs.ninja;
index index.html;
location ~ ^/([^/]+)/([^/?]+)$ {
root /var/www/html/obs.ninja;
try_files /$1/$2 /$1/$2.html /$1/$2/ /$2 /$2/ /$1/index.html;
add_header Access-Control-Allow-Origin *;
}
location / {
if ($request_uri ~ ^/(.*)\.html$) {
return 302 /$1;
}
try_files $uri $uri.html $uri/ /index.html;
add_header Access-Control-Allow-Origin *;
}
}
```
You'll want to deploy (copy/clone) the GitHub OBS.Ninja files into your NGINX web folder, that is specified in your NGINX config file. Update the NGINX config file to match your domain and and folder, etc. Restart NGINX after.
As for the TURN server, it can run on a single or dual-core computer. It doesn't take much to host many users -- it mainly just needs a good internet connection. Most users will not need a TURN server, but since OBS.Ninja handles many different types of users, the TURN server is there as a failsafe for those occasional problem users. I'm assuming you know why you need and want a TURN server -- if not, you may not actually need one.
A guide and sample config file for the turn server is here:
https://github.com/steveseguin/obsninja/blob/master/turnserver.md
If deploying to GCP or AWS, you might need to make some tweaks to the IP address values to include the internet local IP as well as the external. Please see online guides no setting up a TURN server for your particular setup. Setups will vary.
Once you have your TURN server setup, you can update the index.html of the OBS.Ninja code. Nightly or official releases should be fine to pull. You probably will want to uncomment the lines linked below once deployed, adjusting the default values to your liking and updating the server location address and credentials of your TURN server (if you deployed one that is). Unless your TURN server also provides STUN capabilities, you may want to also use the Google STUN servers, so uncomment that stuff too.
https://github.com/steveseguin/obsninja/blob/df6c147311b9e7d19659ddbb1799d6598f59aa0d/index.html#L644
A newly deployed code deployment should work without any changes to the index.html file. The code needs to be constantly kept up to date though, as after a few months it may become deprecated and stop working. This is the reality of deploying OBS.Ninja -- you will need to update it every few months for it to continue to function well. Keep this in mind when making changes to the OBS.Ninja source code, as heavy custom changes will make updating harder to do. The fewer the changes the better.
My suggestion? Limit changes to images and perhaps the translation files (maybe add a new one); these are good starting points. If making changes to the main.css style sheet or index.html file, you should be mostly okay too, since these files are designed to be changed; I try to keep that in mind when updating the code at least. Making changes to other files though is strongly not recommend and in some cases discouraged. If you find a bug or need to make a change to other files, it might be best to make a Pull Request with the desired changes and hope it gets adopted into the main codebase.
Regards,
Steve

624
main.css
View File

@@ -5,10 +5,21 @@
border:0;
}
.meter {
display: inline-block;
width: 0px;
height: 10px;
background: green;
transition: all 52ms linear;
}
#mynetwork {
width: 600px;
height: 400px;
border: 1px solid lightgray;
width: 600px;
height: 400px;
border: 1px solid lightgray;
}
.email {
@@ -39,38 +50,67 @@ a:active {
input {
border-radius: 4px;
padding:2px;
-webkit-app-region: no-drag;
}
button {
border-radius: 7px;
border: 1px solid #4444;
-webkit-app-region: no-drag;
padding:5px 10px 3px 10px;
margin:10px 0px;
}
#header {
width: 100%;
height: 24px;
min-height: 24px;
background-color:#0F131D;
color:#FFF;
}
.credits {
color:black;
color:#101020;
position:fixed;
bottom:0;
right:0;
z-index:-1;
font-size:80%;
}
.credits >a {
color:black;
color:#101020;
}
.credits >a:visited{
color:black;
color:#101020;
}
.chevron{
padding:0px 6px;
}
.chevron::before {
border-style: solid;
border-width: 0.14em 0.14em 0 0;
content: '';
display: inline-block;
height: 0.32em;
left: 0.15em;
position: relative;
top: .43em;
transform: rotate(-45deg);
vertical-align: top;
width: 0.32em;
}
.chevron.bottom::before {
top: .28em;
transform: rotate(135deg);
}
.chevron.right::before {
top: .28em;
transform: rotate(45deg);
}
.pressed {
background: #e3e3e3;
@@ -89,11 +129,7 @@ hr {
height:2px;border-width:0;color:gray;background-color:gray;
}
#videosource {
max-width:100%;
max-height:100%;
background-color:white;
}
/* Clear floats after the columns */
.row:after {
content: "";
@@ -136,7 +172,18 @@ hr {
margin:0;
}
/* Invite link generator */
.invite_setting_group {
margin: 20px 0px;
background-color: #d2d2d2;
padding: 10px;
}
.invite_setting_group h4 {
margin:10px 0px 20px;
}
.invite_setting_item {
margin: 10px 0px;
}
.directorsgrid {
justify-items: normal;
@@ -146,29 +193,123 @@ hr {
overflow-y: auto !important;
}
.directorsgrid video {
max-width: 400px;
max-height: 225px;
min-width: 300px;
.directorsgrid .vidcon video {
height: 169px;
width: 300px;
padding:10px 10px 0px 10px !important;
}
.directorsgrid .vidcon {
display: inline-block !important;
max-width: 400px !important;
width: 300px !important;
max-height: 500px !important;
background: #E3E4EF;
}
.puslate {
border-radius: 50%;
box-shadow: 0 0 0 0 rgba(14, 19, 26, 1);
transform: scale(1);
animation: pulse 2s infinite;
}
.mirror {
transform: scaleX(-1);
}
.notification {
position: relative;
top: -40px;
right: -33px;
padding: 2px 0;
border-radius: 50%;
background: red;
color: white;
width: 11px;
height: 11px;
margin: 0;
}
button.glyphicon-button:focus,
button.glyphicon-button:active:focus,
button.glyphicon-button.active:focus,
button.glyphicon-button.focus,
button.glyphicon-button:active.focus,
button.glyphicon-button.active.focus {
outline: none !important;
}
#main{
-webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important;
-webkit-tap-highlight-color: transparent !important;
outline: 0px !important;
}
video::-webkit-media-controls-current-time-display{
display:none;
}
video::-webkit-media-controls-time-remaining-display{
display:none;
}
video::-webkit-media-controls-timeline{
display:none;
}
video::-webkit-media-controls-timeline-container{
display:none;
}
video::-webkit-media-controls-toggle-closed-captions-button{
display:none;
}
@keyframes pulse {
0% {
transform: scale(0.95);
box-shadow: 0 0 0 0 rgba(14, 19, 26, 0.7);
}
70% {
transform: scale(1);
box-shadow: 0 0 0 10px rgba(2, 3, 4, 0);
}
100% {
transform: scale(0.95);
box-shadow: 0 0 0 0 rgba(14, 19, 26, 0);
}
}
.icn-spinner {
/* animation: spin-animation 3s infinite; */
display: inline-block;
}
@keyframes spin-animation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(359deg);
}
}
html {
border:0;
margin:0;
outline:0;
}
li {
margin: 0.1em 0;
padding-left: 0.1em;
line-height: 1.4em;
line-height: 1.3em;
}
body {
@@ -193,13 +334,23 @@ body {
}
.previewWebcam{
max-width: 640px;
max-width: 83vw;
max-height: 30vh;
}
.gowebcam {
font-size:110%;
padding:10px;
border:3px solid #DDDDDD;
cursor:pointer;
background-color:#DDDDDD;
margin: 20px;
padding:10px 50px;
}
.mainmenuclass{
display:inherit;
}
.gobutton {
@@ -243,6 +394,7 @@ body {
}
.gowebcam {
padding:5px;
margin: 5px;
}
.infoblob {
@@ -263,11 +415,17 @@ body {
top:0px;
right:0px;
}
}
@media only screen and (max-width: 650px) {
.mainmenuclass{
display:inline-block;
}
.outer {
width:50px;
}
@@ -283,7 +441,7 @@ body {
#reshare{
max-width:650px !important;
font-size:96% !important;
min-width:400px !important;
width:300px !important;
}
.fa-paperclip {
@@ -302,16 +460,79 @@ body {
float:none !important;
padding: 15px 10px 1px 10px !important;
}
input[type=radio]{
b
#videoSettings {
max-width: 100% !important;
min-width: 100% !important;
}
.videoMenu {
max-width: 100% !important;
min-width: 100% !important;
}
div.multiselect {
max-width: 100% !important;
min-width: 100% !important;
}
#headphonesDiv3 {
max-width: 100% !important;
min-width: 100% !important;
overflow: hidden !important;
}
#headphonesDiv {
max-width: 100% !important;
min-width: 100% !important;
overflow: hidden !important;
}
#outputSource {
width: 100% !important;
}
#outputSource3 {
width: 100% !important;
}
#audioSourceScreenshare {
max-width: 90% !important;
min-width: 90% !important;
overflow: hidden !important;
}
#videoSettings2 {
max-width: 90% !important;
min-width: 90% !important;
overflow: hidden !important;
}
#popupSelector{
padding: 20px 5px 0px 15px !important;
font-size:92%;
width: 385px !important
}
}
#popupSelector {
background: linear-gradient(6deg, rgba(221, 221, 221, 0) 4%, rgb(221, 221, 221) 30%, rgba(120,120,100,.5) 100%);
transition: all 0.2s linear 0s;
padding: 20px 20px 0px 20px;
position: fixed;
top: 0px;
height: 90%;
width: 490px;
right:-400px;
}
h2 {
color: white;
-webkit-user-select: none; /* Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+/Edge */
user-select: none; /* Standard */
}
@@ -398,12 +619,19 @@ body {
font-size:100%;
/* Add shadows to create the "card" effect */
box-shadow: 0 4px 8px 0 rgba(0,0,0,.1);
background-color: #ddd;
transition: box-shadow 0.1s ease-in-out;
}
/* On mouse-over, add a deeper shadow */
.column:hover {
box-shadow: 0 8px 16px 0 rgba(0,0,0,.3);
}
.column:active{
box-shadow: 0 8px 16px 0 rgba(0,0,0,.5);
}
.column > h2 {color:black;}
@@ -455,8 +683,15 @@ img {
#container-3{
background-repeat: no-repeat;
background-size: 80px;
transition: background-image 0.3s ease-in-out;
-webkit-transition: background-image 0.3s ease-in-out;
background-position: 50% 65%;
background-image: url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAxMjkgMTI5IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAxMjkgMTI5IiB3aWR0aD0iNTEycHgiIGhlaWdodD0iNTEycHgiPgogIDxnPgogICAgPHBhdGggZD0ibTk2LjYsMjYuOGgtODYuMWMtMi4yLDAtNC4xLDEuOC00LjEsNC4xdjY3LjJjMCwyLjIgMS44LDQuMSA0LjEsNC4xaDg2LjFjMi4yLDAgNC4xLTEuOCA0LjEtNC4xdi0xOS40bDE0LjksMTQuOWMwLjgsMC44IDEuOCwxLjIgMi45LDEuMiAwLjUsMCAxLjEtMC4xIDEuNi0wLjMgMS41LTAuNiAyLjUtMi4xIDIuNS0zLjh2LTUyLjVjMC0xLjYtMS0zLjEtMi41LTMuOC0xLjUtMC42LTMuMy0wLjMtNC40LDAuOWwtMTQuOSwxNC45di0xOS4zYy0wLjEtMi4zLTEuOS00LjEtNC4yLTQuMXptLTQuMSwzMy4zdjguOCAyNS4yaC03OHYtNTkuMmg3OHYyNS4yem0yMS45LTEydjMyLjlsLTEzLjctMTMuN3YtNS40bDEzLjctMTMuOHoiIGZpbGw9IiMwMDAwMDAiLz4KICA8L2c+Cjwvc3ZnPgo=)
}
#container-4 {
@@ -476,9 +711,12 @@ img {
.container-inner {
display: none;
background-color: rgb(221, 221, 221);
padding:0 0 80px 0;
max-height: 100%;
min-height: 90%;
}
#add_screen{
padding-bottom:20px;
}
.float{
opacity: 0.8;
width:45px;
@@ -488,6 +726,7 @@ img {
border-radius:38px;
text-align:center;
margin:5px;
pointer-events: auto;
}
.float2{
@@ -500,10 +739,13 @@ img {
text-align:center;
z-index:10;
margin:5px;
pointer-events: auto;
}
.rotate225 {
transform: rotate(135deg);
position: relative;
top: 1px;
}
@@ -519,7 +761,6 @@ img {
display: block !important;
margin: auto auto !important;
position: relative !important;
transform: translate(0, -50%) !important;
top: 50% !important;
}
@@ -532,11 +773,12 @@ img {
z-index:5;
bottom:5px;
width:100%;
display: flex;
display: none;
justify-content: center;
align-items: center;
height: 60px;
border: 0;
pointer-events: none;
}
@@ -570,6 +812,7 @@ img {
border-radius:38px;
text-align:center;
margin:5px;
pointer-events: auto;
}
.float2{
@@ -582,6 +825,7 @@ img {
text-align:center;
z-index:10;
margin:5px;
pointer-events: auto;
}
}
@@ -689,7 +933,6 @@ img {
}
video {
background-color: transparent !important;
border:0;
margin:0;
@@ -699,7 +942,13 @@ video {
background-image:url("data:image/svg+xml,%3Csvg viewBox='-42 0 512 512.002' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m210.351562 246.632812c33.882813 0 63.222657-12.152343 87.195313-36.128906 23.972656-23.972656 36.125-53.304687 36.125-87.191406 0-33.875-12.152344-63.210938-36.128906-87.191406-23.976563-23.96875-53.3125-36.121094-87.191407-36.121094-33.886718 0-63.21875 12.152344-87.191406 36.125s-36.128906 53.308594-36.128906 87.1875c0 33.886719 12.15625 63.222656 36.132812 87.195312 23.976563 23.96875 53.3125 36.125 87.1875 36.125zm0 0'/%3E%3Cpath d='m426.128906 393.703125c-.691406-9.976563-2.089844-20.859375-4.148437-32.351563-2.078125-11.578124-4.753907-22.523437-7.957031-32.527343-3.308594-10.339844-7.808594-20.550781-13.371094-30.335938-5.773438-10.15625-12.554688-19-20.164063-26.277343-7.957031-7.613282-17.699219-13.734376-28.964843-18.199219-11.226563-4.441407-23.667969-6.691407-36.976563-6.691407-5.226563 0-10.28125 2.144532-20.042969 8.5-6.007812 3.917969-13.035156 8.449219-20.878906 13.460938-6.707031 4.273438-15.792969 8.277344-27.015625 11.902344-10.949219 3.542968-22.066406 5.339844-33.039063 5.339844-10.972656 0-22.085937-1.796876-33.046874-5.339844-11.210938-3.621094-20.296876-7.625-26.996094-11.898438-7.769532-4.964844-14.800782-9.496094-20.898438-13.46875-9.75-6.355468-14.808594-8.5-20.035156-8.5-13.3125 0-25.75 2.253906-36.972656 6.699219-11.257813 4.457031-21.003906 10.578125-28.96875 18.199219-7.605469 7.28125-14.390625 16.121094-20.15625 26.273437-5.558594 9.785157-10.058594 19.992188-13.371094 30.339844-3.199219 10.003906-5.875 20.945313-7.953125 32.523437-2.058594 11.476563-3.457031 22.363282-4.148437 32.363282-.679688 9.796875-1.023438 19.964844-1.023438 30.234375 0 26.726562 8.496094 48.363281 25.25 64.320312 16.546875 15.746094 38.441406 23.734375 65.066406 23.734375h246.53125c26.625 0 48.511719-7.984375 65.0625-23.734375 16.757813-15.945312 25.253906-37.585937 25.253906-64.324219-.003906-10.316406-.351562-20.492187-1.035156-30.242187zm0 0'/%3E%3C/svg%3E");
}
/* context menu */
.mirrorControl::-webkit-media-controls-enclosure {
padding: 0px;
height: 30px;
transform: scaleX(-1);
-webkit-transform: scaleX(-1);
}
.context-menu {
display: none;
@@ -758,6 +1007,15 @@ video {
background-color: #0066aa !important;
}
.audioTitle {
text-align:left;
padding: 7px 0px;
}
.audioTitle2 {
text-align:left;
padding: 0px 10px 10px 1px;
}
.multiselect .multiselect-trigger:hover {
cursor: pointer;
cursor: hand;
@@ -774,34 +1032,131 @@ video {
border-bottom-right-radius: 4px;
}
#headphonesDiv3{
text-align:left;
margin:17px 0;
width: 450px;
background-color: #f3f3f3;
padding: 10px 10px;
border: 1px solid #ccc;
vertical-align: middle;
}
#headphonesDiv{
text-align:left;
margin:17px 0;
width: 450px;
background-color: #f3f3f3;
padding: 10px 10px;
border: 1px solid #ccc;
vertical-align: middle;
}
#videoSettings {
margin: auto auto;
background-color: #f3f3f3;
width: 450px;
padding: 10px 0;
margin: 0px 0 0px 0;
border: 1px solid #ccc;
}
#audioMenu {
margin:15px 0 0 0 ;
}
#videoSource {
background-color: #FFF;
display: inline-block;
vertical-align: middle;
max-width:260px;
max-height:100%;
background-color:white;
padding: 0px;
font-size:93%;
}
#videoSettings3 {
margin: auto auto;
background-color: #f3f3f3;
width: 450px;
padding: 10px 0;
margin: 0 0 5px 0;
border: 1px solid #ccc;
padding: 3px;
font-size: 90%;
}
#videoSource3 {
background-color: #FFF;
display: inline-block;
vertical-align: middle;
padding: 3px;
font-size:93%;
}
#outputSource {
background-color: #FFF;
display: inline-block;
vertical-align: middle;
padding: 4px;
font-size:93%;
max-width: 100%;
}
#outputSource3 {
background-color: #FFF;
display: inline-block;
vertical-align: middle;
padding: 3px;
font-size:93%;
max-width: 100%;
}
.videoMenu{
background-color: #f3f3f3;
width: 450px;
display: inline-block;
padding: 10px 10px;
border: 1px solid #ccc;
vertical-align: middle;
text-align:left;
}
div.multiselect {
background-color:#FFF;
max-width:550px;
width: 450px;
white-space: nowrap;
overflow:hidden;
min-width:100px;
margin:auto auto;
border: 1px solid #ccc;
border-bottom:0;
display: inline-block;
padding: 4px 10px 10px 10px;
background-color:#f3f3f3;
}
.multiselect .multiselect-contents {
display: block;
margin: 0;
font-size:80%;
padding: 5px 5px 5px;
padding: 3px 5px 1px;
border-top: 0;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
text-align:left;
background-color:#f3f3f3;
background-color: white;
}
.multiselect .multiselect-contents li {
list-style: none;
font-size:130%;
font-size:120%;
padding:2px;
overflow:hidden;
}
.select .select-trigger:hover {
cursor: pointer;
@@ -853,12 +1208,13 @@ label {
input[type=checkbox]
{
/* Double-sized Checkboxes */
-ms-transform: scale(1.3); /* IE */
-moz-transform: scale(1.3); /* FF */
-webkit-transform: scale(1.3); /* Safari and Chrome */
-o-transform: scale(1.3); /* Opera */
transform: scale(1.3);
-ms-transform: scale(1.4); /* IE */
-moz-transform: scale(1.4); /* FF */
-webkit-transform: scale(1.4); /* Safari and Chrome */
-o-transform: scale(1.4); /* Opera */
transform: scale(1.4);
padding: 5px;
margin: 0 5px 0 1px;
}
#screenshare {
@@ -875,4 +1231,182 @@ input[type=checkbox]
border-image-width:0;
background-size: contain;
background-color: rgba(0,0,0,0);
}
}
.inMessage{
color: #000;
margin:3px;
border-radius: 5px;
background: #FFF8;
padding: 5px;
text-align:left;
margin: 10px 3px;
}
.outMessage{
color: #000;
margin:3px;
border-radius: 5px;
background: #FFF7;
padding: 5px;
text-align:right;
margin: 10px 3px;
}
#chatBody{
z-index: 12;
background-color: #FFF1;
width: 100%;
border-radius: 5px;
padding: 1px 7px;
}
#chatModule{
bottom:50px;
position:fixed;
margin:10px;
align-self: center;
width:400px;
max-width:100%;
}
#chatInput{
color: #000;
background-color:#FFFE;
max-width:700px;
min-width:320px;
font-size:105%;
margin-left:7px;
padding:3px;
}
.debugStats {
font-size: 0.8rem;
list-style-type: none;
left: 50px;
top: 50px;
width: 300px;
min-height: 200px;
max-height: 90vh;
overflow-y: auto;
background-color: rgba(0,0,0,0.95);
position: absolute;
z-index: 20;
color: white;
padding: 20px;
border: 2px solid #1d1d1d;
}
.debugStats::-webkit-scrollbar {
width: 0.5em;
}
.debugStats::-webkit-scrollbar-track {
background:black;
border-radius: 10px;
}
/* Handle */
.debugStats::-webkit-scrollbar-thumb {
background: rgb(119, 119, 119);
border-radius: 10px;
}
/* Handle on hover */
.debugStats::-webkit-scrollbar-thumb:hover {
background: rgb(158, 158, 158); ;
}
.debugStats h1 {
font-size: 1rem;
text-align: left;
text-transform: uppercase;
margin-bottom: 10px;
margin-top: -5px;
}
.debugStats h2 {
font-size: 0.8rem;
text-align: left;
text-transform: uppercase;
margin-top: 10px;
white-space: nowrap;
text-overflow: ellipsis;
display:block;
overflow: hidden;
}
.viewstats::-webkit-scrollbar-track {
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}
.debugStats li {
display: flex;
margin: 5px 0px;
}
.debugStats li:nth-child(even) {
background: rgba(33,33,33,0.8);
padding: 2px 0px;
}
.debugStats li span:first-child {
flex: 1;
}
.debugStats li span:last-child {
flex: 1;
text-align: right;
}
.debugStats .close {
font-weight: bold;
color:white;
display: block;
background:none;
padding: 0;
margin: 0;
font-size: 1.5rem;
border:none;
top: 10px;
right: 10px;
}
.debugStats button:not(.close) {
margin: 10px 0px;
padding: 10px 0px;
background: #263250;
color: white;
border-radius: 0;
width: 100%;
font-weight: bold;
border-bottom: 2px solid #364c84;
}
@media only screen and (max-width: 390px) {
#chatBody{
z-index: 12;
background-color: #FFF1;
width: 100%;
border-radius: 5px;
padding: 1px 7px;
margin:0px;
}
#chatModule{
bottom:50px;
position:fixed;
margin:0px;
align-self: center;
width:400px;
max-width:100%;
}
#chatInput{
max-width:99%;
min-width: 240px;
margin-left: 11px;
font-size: 100%;
}
}

2804
main.js

File diff suppressed because it is too large Load Diff

176
speedtest.html Normal file
View File

@@ -0,0 +1,176 @@
<html>
<head><title>OBSN Speed Test</title>
<style>
body{
padding:0;
margin:0;
}
iframe {
border:0;
margin:0;
padding:0;
display:inline-block;
margin:0;
width:100%;
height:100%;
}
span {
border:0;
margin:0;
padding:0;
display:inline-block;
margin:0;
width:50%;
height:45%;
}
#viewlink {
width:400px;
}
#container {
display:block;
padding:0px;
}
input{
padding:5px;
margin:5px;
}
button{
padding:5px;
margin:5px;
}
</style>
<script>
(function (w) {
w.URLSearchParams = w.URLSearchParams || function (searchString) {
var self = this;
self.searchString = searchString;
self.get = function (name) {
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(self.searchString);
if (results == null) {
return null;
}
else {
return decodeURI(results[1]) || 0;
}
};
};
})(window);
var urlParams = new URLSearchParams(window.location.search);
function loadIframe(){
var streamID = "";
var possible = "ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnpqrstuvwxyz23456789";
for (var i = 0; i < 7; i++){
streamID += possible.charAt(Math.floor(Math.random() * possible.length));
}
var iframe = document.createElement("iframe");
var iframeContainer = document.createElement("span");
iframe.allow="autoplay";
var srcString = "./?push="+streamID+"&cleanoutput&privacy&audiodevice=0";
if (urlParams.has('turn')){
iframe.src = srcString+"&turn="+urlParams.get("turn");
} else {
iframe.src = srcString;
}
iframeContainer.appendChild(iframe);
document.getElementById("container").appendChild(iframeContainer);
var iframe = document.createElement("iframe");
var iframeContainer = document.createElement("span");
iframe.allow="autoplay";
iframe.src = "./?view="+streamID+"&cleanoutput&privacy&noaudio";
iframeContainer.appendChild(iframe);
document.getElementById("container").appendChild(iframeContainer);
var button = document.createElement("br");
document.getElementById("container").appendChild(button);
var button = document.createElement("button");
button.innerHTML = "Disconnect";
button.onclick = function(){iframe.contentWindow.postMessage({"close":true}, '*');}
document.getElementById("container").appendChild(button);
var button = document.createElement("button");
button.innerHTML = "Low Bitrate";
button.onclick = function(){iframe.contentWindow.postMessage({"bitrate":30}, '*');}
document.getElementById("container").appendChild(button);
var button = document.createElement("button");
button.innerHTML = "High Bitrate";
button.onclick = function(){iframe.contentWindow.postMessage({"bitrate":6000}, '*');}
document.getElementById("container").appendChild(button);
var button = document.createElement("button");
button.innerHTML = "Default Bitrate";
button.onclick = function(){iframe.contentWindow.postMessage({"bitrate":-1}, '*');}
document.getElementById("container").appendChild(button);
setInterval(function(){iframe.contentWindow.postMessage({"getStats":true}, '*');},1000);
var eventMethod = window.addEventListener ? "addEventListener" : "attachEvent";
var eventer = window[eventMethod];
var messageEvent = eventMethod === "attachEvent" ? "onmessage" : "message";
eventer(messageEvent, function (e) {
if ("stats" in e.data){
var out = "";
for (var streamID in e.data.stats.inbound_stats){
out += printValues(e.data.stats.inbound_stats[streamID]);
}
if (out.split("Bitrate_in_kbps").length>1){
document.getElementById("statsdiv").innerHTML = "<b>Bitrate_in_kbps</b>"+out.split("Bitrate_in_kbps")[1];
}
}
});
}
function printValues( obj) {
var out = "";
for (var key in obj) {
if (typeof obj[key] === "object") {
out +="<br />";
out += printValues(obj[key]);
} else {
if (key.startsWith("_")){} else {
out +="<b>"+key+"</b>: "+obj[key]+"<br />";
}
}
}
return out;
}
</script>
</head>
<body onload="loadIframe();">
<div id="container">
</div>
<div style="width:48%;padding:0;margin:0;border:0;display:inline-block;">
<h3>OBS.Ninja Speed Test - prototype version</h3>
(Tests connection to TURN server and back)<br /><br />
<li>1.Select your camera.</li>
<li>2.Hit start</li>
<li>3.Wait for the video to load side-by-side. *If it does not auto-load within 20s, refresh and try again.*</li>
<li>4.Stats will load on the right-hand side of the page here. (or press CTRL + LeftClick on the new video to open stats that way)</li>
<li>5.Bitrate_in_kbps, Buffer_Delay_in_ms, and packetLoss_percentage are important connection quality metrics</li>
<li>6.Increase the video bitrate by pressing <i>High Bitrate</i>; it should approach 6000-kbps if the network allows.</li>
</div>
<div id="statsdiv" style="width:48%;padding:0;margin:0;border:0;display:inline-block;">
</div>
</body>
</html>

28
supports.html Normal file
View File

@@ -0,0 +1,28 @@
<html>
<body>
<pre id="json"><pre>
<script>
var supports = navigator.mediaDevices.getSupportedConstraints();
document.getElementById("json").innerHTML = "BROWSER SUPPORTED OPTIONS<HR>";
document.getElementById("json").innerHTML += JSON.stringify(supports, undefined, 2);
navigator.mediaDevices.getUserMedia({video: { facingMode: { ideal: "environment" }}, audio:false}).then(function(mediaStream){
console.log("worked");
setTimeout(function(){
mediaStream.getVideoTracks().forEach((track)=>{
const capabilities = track.getCapabilities();
const settings = track.getSettings();
document.getElementById("json").innerHTML += "<HR>CAMERA SUPPORTED<HR>";
document.getElementById("json").innerHTML += JSON.stringify(capabilities, undefined, 2);
document.getElementById("json").innerHTML += "<HR>CAMERA SETTINGS <HR>";
document.getElementById("json").innerHTML += JSON.stringify(settings, undefined, 2);
});
},1000);
});
</script>
</body>
</html>

View File

@@ -1,82 +0,0 @@
/* We need to create dynamic keyframes to show the animation from full-screen to normal. So we create a stylesheet in which we can insert CSS keyframe rules */
$("body").append('<style id="lightbox-animations" type="text/css"></style>');
/* Click on the container */
$(".column").on('click', function() {
/* The position of the container will be set to fixed, so set the top & left properties of the container */
var bounding_box = $(this).get(0).getBoundingClientRect();
$(this).css({ top: bounding_box.top + 'px', left: bounding_box.left -20+ 'px' });
/* Set container to fixed position. Add animation */
$(this).addClass('in-animation');
/* An empty container has to be added in place of the lightbox container so that the elements below don't come up
Dimensions of this empty container is the same as the original container */
$("#empty-container").remove();
$('<div id="empty-container" class="column"></div>').insertAfter(this);
/* To animate the container from full-screen to normal, we need dynamic keyframes */
var styles = '';
styles = '@keyframes outlightbox {';
styles += '0% {';
styles += 'height: 100%;';
styles += 'width: 100%;';
styles += 'top: 0px;';
styles += 'left: 0px;';
styles += '}';
styles += '50% {';
styles += 'height: 220px;';
styles += 'top: ' + bounding_box.y + 'px;';
styles += '}';
styles += '100% {';
styles += 'height: 220px;';
styles += 'width: '+bounding_box.width+'px;';
styles += 'top: ' + bounding_box.y + 'px;';
styles += 'left: ' + bounding_box.x + 'px;';
styles += '}';
styles += '}';
/* Add keyframe to CSS */
$("#lightbox-animations").get(0).sheet.insertRule(styles, 0);
/* Hide the window scrollbar */
$("body").css('overflow', 'hidden');
});
/* Click on close button when full-screen */
$(".close").on('click', function(e) {
$(this).hide();
$(".container-inner").hide();
/* Window scrollbar normal */
$("body").css('overflow', 'auto');
var bounding_box = $(this).parent().get(0).getBoundingClientRect();
$(this).parent().css({ top: bounding_box.top + 'px', left: bounding_box.left + 'px' });
/* Show animation */
$(this).parent().addClass('out-animation');
e.stopPropagation();
});
/* On animationend : from normal to full screen & full screen to normal */
$(".column").on('animationend', function(e) {
/* On animation end from normal to full-screen */
if(e.originalEvent.animationName == 'inlightbox') {
$(this).children(".close").show();
$(this).children(".container-inner").show();
}
/* On animation end from full-screen to normal */
else if(e.originalEvent.animationName == 'outlightbox') {
/* Remove fixed positioning, remove animation rules */
$(this).removeClass('in-animation').removeClass('out-animation').removeClass('columnfade');
/* Remove the empty container that was earlier added */
$("#empty-container").remove();
/* Delete the dynamic keyframe rule that was earlier created */
$("#lightbox-animations").get(0).sheet.deleteRule(0);
}
});

View File

@@ -20,6 +20,7 @@ Copyright (c) 2012-2020 [Muaz Khan](https://github.com/muaz-khan)
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
// Sourced from: https://cdn.webrtc-experiment.com/CodecsHandler.js
// *FILE HAS BEEN HEAVILY MODIFIED BY STEVE SEGUIN. ALL RIGHTS RESERVED WHERE APPLICABLE *
@@ -171,10 +172,12 @@ var CodecsHandler = (function() {
function getVideoBitrates(sdp) {
var defaultBitrate = 2500;
var sdpLines = sdp.split('\r\n');
var mLineIndex = findLine(sdpLines, 'm=', 'video');
if (mLineIndex === null) {
return 2500;
return defaultBitrate;
}
var videoMLine = sdpLines[mLineIndex];
var pattern = new RegExp('m=video\\s\\d+\\s[A-Z/]+\\s');
@@ -189,7 +192,7 @@ var CodecsHandler = (function() {
}
if (!codecPayload) {
return 2500;
return defaultBitrate;
}
var rtxIndex = findLine(sdpLines, 'a=rtpmap', 'rtx/90000');
@@ -199,7 +202,7 @@ var CodecsHandler = (function() {
}
if (!rtxIndex) {
return 2500;
return defaultBitrate;
}
var rtxFmtpLineIndex = findLine(sdpLines, 'a=fmtp:' + rtxPayload.toString());
@@ -208,7 +211,7 @@ var CodecsHandler = (function() {
var maxBitrate = parseInt(sdpLines[rtxFmtpLineIndex].split("x-google-max-bitrate=")[1].split(";")[0]);
var minBitrate = parseInt(sdpLines[rtxFmtpLineIndex].split("x-google-min-bitrate=")[1].split(";")[0]);
} catch(e){
return 2500;
return defaultBitrate;
}
if (minBitrate>maxBitrate){
@@ -217,7 +220,7 @@ var CodecsHandler = (function() {
if (maxBitrate<1){maxBitrate=1;}
return maxBitrate
} else {
return 2500;
return defaultBitrate;
}
@@ -245,12 +248,13 @@ var CodecsHandler = (function() {
var sendPayloadType = videoMLine.split(pattern)[1].split(' ')[0];
var fmtpLine = sdpLines[findLine(sdpLines, 'a=rtpmap', sendPayloadType)];
var codecName = fmtpLine.split('a=rtpmap:' + sendPayloadType)[1].split('/')[0];
codec = codecName || codec; // Try to find first Codec; else use expected/default
params = params || {};
var xgoogle_min_bitrate = params.min.toString();
var xgoogle_max_bitrate = params.max.toString();
var min_bitrate = params.min.toString() || '30';
var max_bitrate = params.max.toString() || '2500';
var codecIndex = findLine(sdpLines, 'a=rtpmap', codec+'/90000');
var codecPayload;
@@ -269,26 +273,29 @@ var CodecsHandler = (function() {
}
if (!rtxIndex) {
sdpLines[mLineIndex] += '\r\nb=AS:' + max_bitrate;
sdp = sdpLines.join('\r\n');
return sdp;
}
}
var rtxFmtpLineIndex = findLine(sdpLines, 'a=fmtp:' + rtxPayload.toString());
if (rtxFmtpLineIndex !== null) {
var rtxFmtpLineIndexChromium = findLine(sdpLines, 'a=fmtp:' + rtxPayload.toString());
if (rtxFmtpLineIndexChromium !== null){
var appendrtxNext = '\r\n';
appendrtxNext += 'a=fmtp:' + codecPayload + ' x-google-min-bitrate=' + (xgoogle_min_bitrate || '228') + '; x-google-max-bitrate=' + (xgoogle_max_bitrate || '228');
sdpLines[rtxFmtpLineIndex] = sdpLines[rtxFmtpLineIndex].concat(appendrtxNext);
appendrtxNext += 'a=fmtp:' + codecPayload + ' x-google-min-bitrate=' + min_bitrate + '; x-google-max-bitrate=' + max_bitrate;
sdpLines[rtxFmtpLineIndexChromium] = sdpLines[rtxFmtpLineIndexChromium].concat(appendrtxNext);
sdp = sdpLines.join('\r\n');
}
return sdp;
}
function setOpusAttributes(sdp, params) {
function setOpusAttributes(sdp, params) {
params = params || {};
var sdpLines = sdp.split('\r\n');
// Opus
var opusIndex = findLine(sdpLines, 'a=rtpmap', 'opus/48000');
var opusPayload;
if (opusIndex) {
@@ -305,65 +312,58 @@ var CodecsHandler = (function() {
}
var appendOpusNext = '';
appendOpusNext += '; stereo=' + (typeof params.stereo != 'undefined' ? params.stereo : '1');
appendOpusNext += '; sprop-stereo=' + (typeof params['sprop-stereo'] != 'undefined' ? params['sprop-stereo'] : '1');
// Please see https://tools.ietf.org/html/rfc7587 for more details on OPUS settings
if (typeof params.maxptime != 'undefined') { // max packet size in milliseconds
appendOpusNext += ';maxptime:' + params.maxptime; // 3, 5, 10, 20, 40, 60 and the default is 120. (20 is minimum recommended for webrtc)
}
if (typeof params.ptime != 'undefined') { // packet size; webrtc doesn't support less than 10 or 20 I think.
appendOpusNext += ';ptime:' + params.ptime;
}
if (typeof params.stereo != 'undefined'){
if (params.stereo==0){
appendOpusNext += ';stereo=0;sprop-stereo=0'; // defaults to 0
} else if (params.stereo==1){
appendOpusNext += ';stereo=1;sprop-stereo=1'; // defaults to 0
} else if (params.stereo==2){
sdpLines[opusIndex] = sdpLines[opusIndex].replace("opus/48000/2", "multiopus/48000/6");
appendOpusNext += ';channel_mapping=0,4,1,2,3,5;num_streams=4;coupled_streams=2'; // Multi-channel 5.1 audio
}
}
if (typeof params.maxaveragebitrate != 'undefined') {
appendOpusNext += '; maxaveragebitrate=' + (params.maxaveragebitrate || 128 * 1024 * 8);
appendOpusNext += ';maxaveragebitrate=' + params.maxaveragebitrate; // default 2500 (kbps)
}
if (typeof params.maxplaybackrate != 'undefined') {
appendOpusNext += '; maxplaybackrate=' + (params.maxplaybackrate || 128 * 1024 * 8);
appendOpusNext += ';maxplaybackrate=' + params.maxplaybackrate; // Default should be 48000 (hz) , 8000 to 48000 are valid options
}
if (typeof params.cbr != 'undefined') {
appendOpusNext += '; cbr=' + (typeof params.cbr != 'undefined' ? params.cbr : '1');
appendOpusNext += ';cbr=' + params.cbr; // default is 0 (vbr)
}
if (typeof params.useinbandfec != 'undefined') {
appendOpusNext += '; useinbandfec=' + params.useinbandfec;
//if (typeof params.useinbandfec != 'undefined') { // useful for handling packet loss
// appendOpusNext += '; useinbandfec=' + params.useinbandfec; // Defaults to 0
//}
if (typeof params.usedtx != 'undefined') { // Default is 0
appendOpusNext += ';usedtx=' + params.usedtx; // if decoder prefers the use of DTX.
}
if (typeof params.usedtx != 'undefined') {
appendOpusNext += '; usedtx=' + params.usedtx;
}
if (typeof params.maxptime != 'undefined') {
appendOpusNext += '\r\na=maxptime:' + params.maxptime;
}
sdpLines[opusFmtpLineIndex] = sdpLines[opusFmtpLineIndex].concat(appendOpusNext);
sdp = sdpLines.join('\r\n');
return sdp;
}
// forceStereoAudio => via webrtcexample.com
// requires getUserMedia => echoCancellation:false
function forceStereoAudio(sdp) {
var sdpLines = sdp.split('\r\n');
var fmtpLineIndex = null;
for (var i = 0; i < sdpLines.length; i++) {
if (sdpLines[i].search('opus/48000') !== -1) {
var opusPayload = extractSdp(sdpLines[i], /:(\d+) opus\/48000/i);
break;
}
}
for (var i = 0; i < sdpLines.length; i++) {
if (sdpLines[i].search('a=fmtp') !== -1) {
var payload = extractSdp(sdpLines[i], /a=fmtp:(\d+)/);
if (payload === opusPayload) {
fmtpLineIndex = i;
break;
}
}
}
if (fmtpLineIndex === null) return sdp;
sdpLines[fmtpLineIndex] = sdpLines[fmtpLineIndex].concat('; stereo=1; sprop-stereo=1');
sdp = sdpLines.join('\r\n');
return sdp;
}
return {
disableNACK: disableNACK,
@@ -378,9 +378,7 @@ var CodecsHandler = (function() {
return setOpusAttributes(sdp, params);
},
preferCodec: preferCodec,
forceStereoAudio: forceStereoAudio
preferCodec: preferCodec
};
})();

2
thirdparty/jquery.min.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
tone.mp3 Normal file

Binary file not shown.

BIN
tone.ogg Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 491 KiB

68
translations/de.json Normal file
View File

@@ -0,0 +1,68 @@
{
"GO": "LOS",
"add-group-chat": "Gruppenchat hinzufügen",
"add-to-group": "Zur Gruppen-Szene hinzfügen",
"add-your-camera": "Kamera hinzufügen",
"added-notes": "\n\t\t\t\t<u><i>Weitere Infos:</i></u>\n\t\t\t\t<li>Räume können von allen betreten werden, die den Raumnamen wissen. Vermeiden Sie daher zu einfache Namen.</li>\n\t\t\t\t<li>Je nach Hardwareausstattung können mehr als vier Teilnehmende in einem Raum zu Performance-Problemen führen.</li>\n\t\t\t\t<li>Aufgrund einer Hardware-Einschränkung können iOS-Devices Video nur mit dem Regisseur/Director teilen.</li>\n\t\t\t\t<li>Bitte betrachten Sie die \"Aufnehmen\"-Funktion als neu und experimentell. Sie sollten sie vermutlich nicht in Produktivumgebungen einsetzen.</li>\n\t\t\t\t<li>Damit ein Video-Feed in einer Gruppen-Szene erscheint, müssen Sie ihn zunächst dort hinzufügen.</li>\n\t\t\t\t<li>Der Gäste-View enthält einen neuen \"fortgeschrittenen Fullscreen\"-Button.</li>\n\t\t\t\t",
"advanced-paramaters": "Weitere Einstellungen",
"audio-sources": "Audioquellen",
"back": "Zurück",
"balanced": "Ausgeglichen",
"copy-this-url": "Teilbare Links für dieses Video",
"copy-to-clipboard": "In die Zwischenablage kopieren",
"create-reusable-invite": "Wiederverwendbare Einladung erstellen",
"enable-stereo-and-pro": "Stereo und Pro HD Audio einschalten",
"enter-the-rooms-control": "Control Center für diesen Raum betreten",
"force-vp9-video-codec": "VP9 Video- Codec verwenden (weniger Störungen)",
"generate-invite-link": "EINLADUNGS-LINK ERSTELLEN",
"here-you-can-pre-generate": "Erzeugen Sie einen wiederwendbaren Empfangs-Link und die zugehörigen Einladungslinks für Gäste.",
"high-security-mode": "High Security Modus",
"info-blob": "",
"joining-room": "Sie betreten Raum",
"logo-header": "<font id=\"qos\" style=\"color: white;\">O</font>BS Ninja",
"max-resolution": "Höchste Auflösung",
"mute": "Stummschalten",
"no-audio": "Kein Audio",
"note-share-audio": "\n\t\t\t\t\t<b>note</b>: Vergessen Sie nicht, in Chrome \"Audio teilen\" zu klicken.<br>(Firefox unterstütz das Teilen von Audio nicht.)",
"open-in-new-tab": "In neuem Tab öffnen.",
"record": "Aufnehmen",
"remote-control-for-obs": "Fernsteuerung",
"remote-screenshare-obs": "Bildschirm teilen",
"room-name": "Raum",
"rooms-allow-for": "Räume erlauben einfachen Gruppen-Chat und die gleichzeitige Verwaltung verschiedener Streams.",
"select-audio-source": "Audio-Quellen auswählen",
"select-audio-video": "Wählen Sie die Audio-/Videoquelle unten aus.",
"select-screen-to-share": "ZU TEILENDEN BILDSCHIRM AUSWÄHLEN",
"show-tips": "Ich möchte Tipps..",
"smooth-cool": "Smooth und Cool",
"unlock-video-bitrate": "Video-Bitrate auf Maximum (20mbps)",
"video-source": "Videoquelle",
"volume": "Lautstärke",
"you-are-in-the-control-center": "Sie befinden sich im Control-Center dieses Raums",
"waiting-for-camera": "Kamera lädt. Bitte warten.",
"video-resolution": "Video-Auflösung: ",
"hide-screen-share": "Option zum Bildschirm teilen nicht anzeigen",
"allow-remote-control": "Gast-Kamera zoomen (Android)",
"add-the-guest-to-a-room": " Gast zu diesem Raum hinzufügen:",
"invite-group-chat-type": "Dieser Gast..",
"can-see-and-hear": "..kann den Gruppen-Chat sehen und hören",
"can-hear-only": "..kann den Gruppen-Chat nur hören",
"cant-see-or-hear": "..kann den Gruppen-chat weder hören noch sehen",
"password-input-field": "Password",
"select-output-source": " Audio Output Destination: \n\t\t\t\t\t",
"add-a-password-to-stream": " Add a password:",
"welcome-to-obs-ninja-chat": "\n\t\t\t\t\tWelcome to OBS.Ninja! You can send text messages directly to connected peers from here.\n\t\t\t\t",
"names-and-labels-coming-soon": "\n\t\t\t\t\tNames identifying connected peers will be a feature in an upcoming release.\n\t\t\t\t",
"send-chat": "Send",
"available-languages": "Available Languages:",
"add-more-here": "Add More Here!",
"invite-users-to-join": "Invites users to join the group and broadcast their feed to it. These users will see every feed in the room.",
"link-to-invite-camera": "Link to invite users to broadcast their feeds to the group. These users will not see or hear any feed from the group.",
"this-is-obs-browser-source-link": "This is an OBS Browser Source link that is empty by default. Videos in the room can be manually added to this scene.",
"this-is-obs-browser-souce-link-auto": "Also an OBS Browser Source link. All guest videos in this group chat room will automatically be added into this scene.",
"click-for-quick-room-overview": "❔ Click Here for a quick overview and help",
"push-to-talk-enable": "🔊 Enable Director's Push-to-Talk Mode",
"welcome-to-control-room": "Welcome. This is the control-room for the group-chat. There are different things you can use this room for:<br><br>\t<li>You can host a group chat with friends using a room. Share the blue link to invite guests who will join the chat automatically.</li>\t<li>A group room can handle around 4 to 30 guests, depending on numerous factors, including CPU and available bandwidth of all guests in the room.</li>\t<li>Solo-views of each video are offered under videos as they load. These can be used within an OBS Browser Source.</li>\t<li>You can use the auto-mixing Group Scene, the green link, to auto arrange multiple videos for you in OBS.</li>\t<li>You can use this control room to record isolated video or audio streams, but it is an experimental feature still.</li>\t<li>Videos in the Director's room will be of low quality on purpose; to save bandwidth/CPU</li>\t<li>Guest's in the room will see each other's videos at a very limited quality to conserve bandwidth/CPU.</li>\t<li>OBS will see a guest's video in high-quality; the default video bitrate is 2500kbps.</li>\t<br>\tAs guests join, their videos will appear below. You can bring their video streams into OBS as solo-scenes or you can add them to the Group Scene.\t<br>The Group Scene auto-mixes videos that have been added to the group scene. Please note that the Auto-Mixer requires guests be manually added to it for them to appear in it; they are not added automatically.<br><br>Apple mobile devices, such as iPhones and iPads, do not fully support Video Group Chat. This is a hardware constraint.<br><br>\tFor advanced options and parameters, <a href=\"https://github.com/steveseguin/obsninja/wiki/Guides-and-How-to's#urlparameters\">see the Wiki.</a>",
"guest-will-appaer-here-on-join": "(A video will appear here when a guest joins)",
"SOLO-LINK": "SOLO LINK for OBS:"
}

View File

@@ -1,50 +0,0 @@
{
"logo-header": "<font id=\"qos\" style=\"color: white;\">O</font>BS.Ninja ",
"GO": "GO",
"copy-this-url": "Copy this URL into an OBS \"Browser Source\"",
"you-are-in-the-control-center": "You are in the room's control center",
"joining-room": "You are joining room",
"add-group-chat": "Add Group Chat to OBS",
"rooms-allow-for": "Rooms allow for simplified group-chat and the advanced management of multiple streams at once.",
"room-name": "Room Name",
"enter-the-rooms-control": "Enter the Room's Control Center",
"show-tips": "Show me some tips..",
"added-notes": "\n<u><i>Added Notes:</i></u>\n<li>Anyone can enter a room if they know the name, so keep it unique</li>\n<li>Invite only guests to the room you trust.</li>\n<li>iOS devices will share just their audio with other guests; this is mainly a hardware limitation</li>\n<li>The \"Recording\" option is considered experimental.</li>\n",
"back": "Back",
"add-your-camera": "Add your Camera to OBS",
"waiting-for-camera": "Waiting for Camera to Load",
"video-source": "Video source",
"max-resolution": "1080p (hi-def)",
"balanced": "720p (balanced)",
"smooth-cool": "360p (smooth)",
"select-audio-source": "Select Audio Source",
"no-audio": "No Audio",
"remote-screenshare-obs": "Remote Screenshare into OBS",
"note-share-audio": "\n<b>note</b>: Do not forget to click \"Share audio\" in Chrome.<br>(Firefox does not support audio sharing.)",
"select-screen-to-share": "SELECT SCREEN TO SHARE",
"audio-sources": "Audio Sources",
"create-reusable-invite": "Create Reusable Invite",
"here-you-can-pre-generate": "Here you can pre-generate a reusable Browser Source link and a related guest invite link.",
"generate-invite-link": "GENERATE THE INVITE LINK",
"advanced-paramaters": "Advanced Options:",
"unlock-video-bitrate": "Unlock Video Bitrate (20mbps)",
"force-vp9-video-codec": "Force VP9 Video Codec (less artifacting)",
"enable-stereo-and-pro": "Enable Stereo and Pro HD Audio",
"video-resolution": "Video Resolution: ",
"high-security-mode": "High Security Mode",
"hide-screen-share": "Hide Screenshare Option",
"allow-remote-control": "Remote Control Camera Zoom (android)",
"add-the-guest-to-a-room": " Add the guest to a room:",
"invite-group-chat-type": "This room guest can:",
"can-see-and-hear": "Can see and hear the group chat",
"can-hear-only": "Can only hear the group chat",
"cant-see-or-hear": "Cannot hear or see the group chat",
"info-blob": "\n<h2>What is OBS.Ninja</h2><br>\n<li>100% <b>free</b>; no downloads; no personal data collection; no sign-in</li>\n<li>Bring video from your smartphone, computer, or friends directly into your OBS video stream</li>\n<li>We use cutting edge Peer-to-Peer forwarding technology that offers privacy and ultra-low latency</li>\n<br>\n<li>Youtube video <i class=\"fa fa-youtube-play\" aria-hidden=\"true\"></i> <a href=\"https://www.youtube.com/watch?v=6R_sQKxFAhg\">Demoing it here</a> </li>\n<br>\n<i><font style=\"color:red\">Known issues:</font></i><br>\n<li><i class=\"fa fa-apple\" aria-hidden=\"true\"></i> <a href=\"https://github.com/steveseguin/obsninja/wiki/FAQ#mac-os\">MacOS users</a> need to use OBS v23 or resort to <a href=\"https://github.com/steveseguin/electroncapture\">Window Capturing</a> a browser with OBS v25</li>\n<li>Some users will have <a href=\"https://github.com/steveseguin/obsninja/wiki/FAQ#video-is-pixelated\">\"pixelation\" problems</a> with videos. Adding <b>&amp;codec=vp9</b> to the OBS links will often correct it.</li>\n<br>\n",
"remote-control-for-obs": "Remote Control for OBS",
"add-to-group": "Add to Group Scene",
"mute": "Mute",
"record": "Record",
"volume": "Volume",
"open-in-new-tab": "Open in new Tab",
"copy-to-clipboard": "Copy to Clipboard"
}

View File

@@ -47,5 +47,22 @@
"invite-group-chat-type": "This room guest can:",
"can-see-and-hear": "Can see and hear the group chat",
"can-hear-only": "Can only hear the group chat",
"cant-see-or-hear": "Cannot hear or see the group chat"
"cant-see-or-hear": "Cannot hear or see the group chat",
"password-input-field": "Password",
"select-output-source": " Audio Output Destination: \n\t\t\t\t\t",
"add-a-password-to-stream": " Add a password:",
"welcome-to-obs-ninja-chat": "\n\t\t\t\t\tWelcome to OBS.Ninja! You can send text messages directly to connected peers from here.\n\t\t\t\t",
"names-and-labels-coming-soon": "\n\t\t\t\t\tNames identifying connected peers will be a feature in an upcoming release.\n\t\t\t\t",
"send-chat": "Send",
"available-languages": "Available Languages:",
"add-more-here": "Add More Here!",
"invite-users-to-join": "Invites users to join the group and broadcast their feed to it. These users will see every feed in the room.",
"link-to-invite-camera": "Link to invite users to broadcast their feeds to the group. These users will not see or hear any feed from the group.",
"this-is-obs-browser-source-link": "This is an OBS Browser Source link that is empty by default. Videos in the room can be manually added to this scene.",
"this-is-obs-browser-souce-link-auto": "Also an OBS Browser Source link. All guest videos in this group chat room will automatically be added into this scene.",
"click-for-quick-room-overview": "❔ Click Here for a quick overview and help",
"push-to-talk-enable": "🔊 Enable Director's Push-to-Talk Mode",
"welcome-to-control-room": "Welcome. This is the control-room for the group-chat. There are different things you can use this room for:<br><br>\t<li>You can host a group chat with friends using a room. Share the blue link to invite guests who will join the chat automatically.</li>\t<li>A group room can handle around 4 to 30 guests, depending on numerous factors, including CPU and available bandwidth of all guests in the room.</li>\t<li>Solo-views of each video are offered under videos as they load. These can be used within an OBS Browser Source.</li>\t<li>You can use the auto-mixing Group Scene, the green link, to auto arrange multiple videos for you in OBS.</li>\t<li>You can use this control room to record isolated video or audio streams, but it is an experimental feature still.</li>\t<li>Videos in the Director's room will be of low quality on purpose; to save bandwidth/CPU</li>\t<li>Guest's in the room will see each other's videos at a very limited quality to conserve bandwidth/CPU.</li>\t<li>OBS will see a guest's video in high-quality; the default video bitrate is 2500kbps.</li>\t<br>\tAs guests join, their videos will appear below. You can bring their video streams into OBS as solo-scenes or you can add them to the Group Scene.\t<br>The Group Scene auto-mixes videos that have been added to the group scene. Please note that the Auto-Mixer requires guests be manually added to it for them to appear in it; they are not added automatically.<br><br>Apple mobile devices, such as iPhones and iPads, do not fully support Video Group Chat. This is a hardware constraint.<br><br>\tFor advanced options and parameters, <a href=\"https://github.com/steveseguin/obsninja/wiki/Guides-and-How-to's#urlparameters\">see the Wiki.</a>",
"guest-will-appaer-here-on-join": "(A video will appear here when a guest joins)",
"SOLO-LINK": "SOLO LINK for OBS:"
}

68
translations/es.json Normal file
View File

@@ -0,0 +1,68 @@
{
"GO": "IR",
"add-group-chat": "Agregar grupo de chat a OBS",
"add-to-group": "Agregar a la escena de grupo",
"add-your-camera": "Agregar tu camara a OBS",
"added-notes": "\n\t\t\t\t<u><i>Notas adicionales:</i></u>\n\t\t\t\t<li>Cualquiera puede entrar en una sala si conoce el nombre, así que mantenlo único</li>\n\t\t\t\t<li>Tener más de cuatro (4) personas en una sala no es recomendable debido a razones de rendimiento, pero depende de tu hardware.</li>\n\t\t\t\t<li>Los dispositivos iOS están limitados a tamaños de grupo de no más de dos (2) personas. Esto es una limitación de hardware.</li>\n\t\t\t\t<li>La opción de \"Grabación\" es nueva y se considera experimental.</li>\n\t\t\t\t<li>Tienes que \"Añadir\" una señal de video a la \"Escena de grupo\" para que aparezca allí.</li>\n\t\t\t\t<li>Hay un botón nuevo añadido \"Pantalla completa mejorada\" a la vista de invitados.</li>\n\t\t\t\t",
"advanced-paramaters": "Parámetros Avanzados",
"audio-sources": "Fuentes de Audio",
"back": "Atrás",
"balanced": "Equilibrado",
"copy-this-url": "Copia esta URL a una fuente \"Navegador\" de OBS",
"copy-to-clipboard": "Copia al portapapeles",
"create-reusable-invite": "Crear una invitación reutilizable",
"enable-stereo-and-pro": "Habilitar Estéreo y Pro HD Audio",
"enter-the-rooms-control": "Entrar a la sala de centro de control",
"force-vp9-video-codec": "Forzar VP9 Video Codec (menos artefactos)",
"generate-invite-link": "GENERAR EL LINK DE INVITACIÓN",
"here-you-can-pre-generate": "Aquí puedes pregenerar un enlace reutilizable para la fuente de navegador y un enlace para invitados.",
"high-security-mode": "Modo de alta seguridad",
"info-blob": "\n\t\t\t\t\t\t<h2>Qué es OBS.Ninja</h2><br>\n\t\t\t\t\t\t<li>100% <b>gratis</b>; sin descargas; sin recopilación de datos personales; sin registros</li>\n\t\t\t\t\t\t<li>Lleva video desde tu móbil, portátil, ordenador de sobremesa, o de tus amigos directamente a tu stream en OBS</li>\n\t\t\t\t\t\t<li>Utilizamos tecnología innovadora Peer-to-Peer que ofrece privacidad y ultra baja latencia</li>\n\t\t\t\t\t\t<br>\n\t\t\t\t\t\t<li>Youtube video <i class=\"fa fa-youtube-play\" aria-hidden=\"true\"></i> <a href=\"https://www.youtube.com/watch?v=6R_sQKxFAhg\">Demo aquí</a> </li>\n\t\t\t\t\t\t<li>El cdigo está disponible aquí: <i class=\"fa fa-github\" aria-hidden=\"true\"></i> <a href=\"https://github.com/steveseguin/obsninja\">https://github.com/steveseguin/obsninja</a> </li>\n\t\t\t\t\t\t<br>\n\t\t\t\t\t\t<i><font style=\"color:red\">Problemas conocidos:</font></i><br>\n\n\t\t\t\t\t\t<li><i class=\"fa fa-apple\" aria-hidden=\"true\"></i> Los usuarios de MacOS necesitan utilizar OBS v23 o recurrir a i&gt;Capturar ventana de un navegador Chrome con OBS v25</li>\n\t\t\t\t\t\t<li>Algunos usuarios tendrán problemas de \"pixelación\" con videos. Por favor añade en la URL el parametro <b>&amp;codec=vp9</b> a los enlaces de OBS para corregirlo.</li>\n\t<h3><i>Revisa <a href=\"https://www.reddit.com/r/OBSNinja/\">sub-reddit</a> <i class=\"fa fa-reddit-alien\" aria-hidden=\"true\"></i> para ayuda e información avanzada. También estoy en <a href=\"https://discord.gg/EksyhGA\">Discord</a> y puedes enviarme un email a steve@seguin.email</i></h3>\n\t\t\t\t\t",
"joining-room": "Estás entrado en la sala",
"logo-header": "<font id=\"qos\" style=\"color: white;\">O</font>BS.Ninja ",
"max-resolution": "Max. Resolución",
"mute": "Silenciar",
"no-audio": "Sin Audio",
"note-share-audio": "\n\t\t\t\t\t<b>Nota</b>: No te olvides de hacer clic \"Compartir audio\" en Chrome.<br>(Firefox no soporta compartir audio.)",
"open-in-new-tab": "Abrir en una pestaña nueva",
"record": "Grabar",
"remote-control-for-obs": "Control remoto para OBS",
"remote-screenshare-obs": "Compartir pantalla remota en OBS",
"room-name": "Nombre de sala",
"rooms-allow-for": "Las salas permiten un chat grupal simplificado y la administración avanzada de múltiples transmisiones a la vez.",
"select-audio-source": "Seleccionar fuentes de audio",
"select-audio-video": "Selecciona la fuente de audio/video a continuación",
"select-screen-to-share": "SELECCIONAR PANTALLA PARA COMPARTIR",
"show-tips": "Muéstrame algunos consejos..",
"smooth-cool": "Fluido",
"unlock-video-bitrate": "Desbloquear Video Bitrate (20mbps)",
"video-source": "Fuente de video",
"volume": "Volumen",
"you-are-in-the-control-center": "Estás en la sala de centro de control",
"waiting-for-camera": "Esperando a que se cargue la cámara",
"video-resolution": "Resolución de vídeo: ",
"hide-screen-share": "Ocultar opción compartir pantalla",
"allow-remote-control": "Control remoto del zoom de la cámara (android)",
"add-the-guest-to-a-room": " Añadir al invitado a una sala:",
"invite-group-chat-type": "Este invitado a la sala puede:",
"can-see-and-hear": "Puede ver y oir el chat de grupo",
"can-hear-only": "Sólo puede oir el chat de grupo",
"cant-see-or-hear": "No puede ni oir ni ver el chat de grupo",
"password-input-field": "Password",
"select-output-source": " Destino de la salida de audio: \n\t\t\t\t\t",
"add-a-password-to-stream": " Añadir un password:",
"welcome-to-obs-ninja-chat": "\n\t\t\t\t\tBienvenido a OBS.Ninja! Puedes enviar mensajes de texto directamente a compañeros conectados desde aquí.\n\t\t\t\t",
"names-and-labels-coming-soon": "\n\t\t\t\t\tNombres identificando a los compañeros conectados serán una nueva característica en una próxima versión.\n\t\t\t\t",
"send-chat": "Enviar",
"available-languages": "Idiomas disponibles:",
"add-more-here": "¡Añade más aquí!",
"invite-users-to-join": "Invita a los usuarios a unirse al grupo y transmitir sus señales. Estos usuarios verán todas las señales de la sala.",
"link-to-invite-camera": "Enlace para invitar a los usuarios a transmitir sus señales al grupo. Estos usuarios no verán ni escucharán ninguna señal del grupo.",
"this-is-obs-browser-source-link": "Este es un enlace de una fuente de navegador de OBS que está vacía por defecto. Los videos de la sala se pueden agregar manualmente a esta escena.",
"this-is-obs-browser-souce-link-auto": "También un enlace de fuente de navegador de OBS. Todos los videos de invitados en esta sala de chat grupal se agregarán automáticamente a esta escena.",
"click-for-quick-room-overview": "❔ Haz clic aquí para obtener información general rápida y ayuda",
"push-to-talk-enable": "🔊 Habilitar pulsar para hablar en el modo director",
"welcome-to-control-room": "Bienvenidos. Esta es la sala de control para el chat grupal. Hay diferentes cosas para las que puedes usar esta habitación:<br><br>\t<li>Puedes organizar un chat grupal con amigos usando una sala. Comparte el enlace azul para invitar a los que se unirán al chat automáticamente.</li>\t<li>Una sala de grupo puede manejar de 4 a 30 invitados, dependiendo de numerosos factores, incluida la CPU y el ancho de banda disponible de todos los invitados en la sala.</li>\t<li>Las vistas individuales de cada vídeo se ofrecen según los videos se van cargando. Estos se pueden usar dentro de una fuente de navegador de OBS.</li>\t<li>Puedes usar la escena de grupo de mezcla automática, el enlace verde, para organizar automáticamente varios videos en OBS.</li>\t<li>Puedes usar esta sala de control para grabar transmisiones de vídeo o audio aisladas, pero es una característica experimental.</li>\t<li>Los videos en la sala del Director serán de baja calidad; para ahorrar ancho de banda/CPU</li>\t<li>Los invitados en la sala verán los videos de los demás con una calidad muy limitada para ahorrar ancho de banda/CPU.</li>\t<li>OBS verá el video de un invitado en alta calidad; la bitrate predeterminado es 2500 kbps.</li>\t<br>\tA medida que los invitados se unen, sus videos aparecerán a continuación. Puedes llevar sus transmisiones de vídeo a OBS como escenas individuales o puedes agregarlas a la escena de grupo.\t<br>La escena de grupo mezcla automáticamente los videos que se han agregado a la escena. Ten en cuenta que el Auto-Mixer requiere que los invitados se agreguen manualmente para que aparezcan en él; no se agregan automáticamente.<br><br>Los dispositivos móviles de Apple, como iPhones y iPads, no son totalmente compatibles con el videochat de grupo. Esta es una restricción de hardware.<br><br>\tPara opciones y parámetros avanzados, <a href=\"https://github.com/steveseguin/obsninja/wiki/Guides-and-How-to's#urlparameters\">ver la Wiki.</a>",
"guest-will-appaer-here-on-join": "(Aparecerá un video aquí cuando un invitado se una)",
"SOLO-LINK": "SOLO LINK para OBS:"
}

View File

@@ -47,5 +47,22 @@
"invite-group-chat-type": "This room guest can:",
"can-see-and-hear": "Can see and hear the group chat",
"can-hear-only": "Can only hear the group chat",
"cant-see-or-hear": "Cannot hear or see the group chat"
"cant-see-or-hear": "Cannot hear or see the group chat",
"password-input-field": "Password",
"select-output-source": " Audio Output Destination: \n\t\t\t\t\t",
"add-a-password-to-stream": " Add a password:",
"welcome-to-obs-ninja-chat": "\n\t\t\t\t\tWelcome to OBS.Ninja! You can send text messages directly to connected peers from here.\n\t\t\t\t",
"names-and-labels-coming-soon": "\n\t\t\t\t\tNames identifying connected peers will be a feature in an upcoming release.\n\t\t\t\t",
"send-chat": "Send",
"available-languages": "Available Languages:",
"add-more-here": "Add More Here!",
"invite-users-to-join": "Invites users to join the group and broadcast their feed to it. These users will see every feed in the room.",
"link-to-invite-camera": "Link to invite users to broadcast their feeds to the group. These users will not see or hear any feed from the group.",
"this-is-obs-browser-source-link": "This is an OBS Browser Source link that is empty by default. Videos in the room can be manually added to this scene.",
"this-is-obs-browser-souce-link-auto": "Also an OBS Browser Source link. All guest videos in this group chat room will automatically be added into this scene.",
"click-for-quick-room-overview": "❔ Click Here for a quick overview and help",
"push-to-talk-enable": "🔊 Enable Director's Push-to-Talk Mode",
"welcome-to-control-room": "Welcome. This is the control-room for the group-chat. There are different things you can use this room for:<br><br>\t<li>You can host a group chat with friends using a room. Share the blue link to invite guests who will join the chat automatically.</li>\t<li>A group room can handle around 4 to 30 guests, depending on numerous factors, including CPU and available bandwidth of all guests in the room.</li>\t<li>Solo-views of each video are offered under videos as they load. These can be used within an OBS Browser Source.</li>\t<li>You can use the auto-mixing Group Scene, the green link, to auto arrange multiple videos for you in OBS.</li>\t<li>You can use this control room to record isolated video or audio streams, but it is an experimental feature still.</li>\t<li>Videos in the Director's room will be of low quality on purpose; to save bandwidth/CPU</li>\t<li>Guest's in the room will see each other's videos at a very limited quality to conserve bandwidth/CPU.</li>\t<li>OBS will see a guest's video in high-quality; the default video bitrate is 2500kbps.</li>\t<br>\tAs guests join, their videos will appear below. You can bring their video streams into OBS as solo-scenes or you can add them to the Group Scene.\t<br>The Group Scene auto-mixes videos that have been added to the group scene. Please note that the Auto-Mixer requires guests be manually added to it for them to appear in it; they are not added automatically.<br><br>Apple mobile devices, such as iPhones and iPads, do not fully support Video Group Chat. This is a hardware constraint.<br><br>\tFor advanced options and parameters, <a href=\"https://github.com/steveseguin/obsninja/wiki/Guides-and-How-to's#urlparameters\">see the Wiki.</a>",
"guest-will-appaer-here-on-join": "(A video will appear here when a guest joins)",
"SOLO-LINK": "SOLO LINK for OBS:"
}

View File

@@ -20,12 +20,12 @@
"select-audio-source": "Seleziona sorgente audio",
"no-audio": "No Audio",
"remote-screenshare-obs": "Screenshare remoto dentro OBS",
"note-share-audio": "\n<b>note</b>: Do not forget to click \"Share audio\" in Chrome.<br>(Firefox does not support audio sharing.)",
"note-share-audio": "\n<b>note</b>: Do not forget to click \"Condividi audio\" in Chrome.<br>(Firefox non supporta la condivisione dell'audio..)",
"select-screen-to-share": "Seleziona lo schermo da condividere",
"audio-sources": "Sorgenti Audio",
"create-reusable-invite": "Crea un invito riutilizzabile",
"here-you-can-pre-generate": "Qui è possibile pre-generare un collegamento Sorgente del browser riutilizzabile e un collegamento di invito ospite correlato.",
"generate-invite-link": "GENERATE THE INVITE LINK",
"generate-invite-link": "Genera Link invito",
"advanced-paramaters": "Opzioni avanzate:",
"unlock-video-bitrate": "Sblocca Video Bitrate (20mbps)",
"force-vp9-video-codec": "Forza VP9 Video Codec (less artifacting)",
@@ -46,5 +46,22 @@
"record": "Registra",
"volume": "Volume",
"open-in-new-tab": "Apri in una nuova Tab",
"copy-to-clipboard": "Copia negli appunti"
"copy-to-clipboard": "Copia negli appunti",
"password-input-field": "Password",
"select-output-source": " Destinazione Output Audio : \n\t\t\t\t\t",
"add-a-password-to-stream": " Aggiungi Password:",
"welcome-to-obs-ninja-chat": "\n\t\t\t\t\tBenvenuto in OBS.Ninja! Da qui puoi inviare messaggi di testo direttamente ai peer connessi.\n\t\t\t\t",
"names-and-labels-coming-soon": "\n\t\t\t\t\tI nomi che identificano i peer connessi saranno una funzionalità in una prossima versione..\n\t\t\t\t",
"send-chat": "Invia",
"available-languages": "Lingue Disponibili:",
"add-more-here": "Aggiungi altro qui!",
"invite-users-to-join": "Invita gli utenti a unirsi al gruppo e a trasmettere il proprio feed. Questi utenti vedranno ogni feed nella stanza.",
"link-to-invite-camera": "Link per invitare gli utenti a trasmettere i propri feed al gruppo. Questi utenti non vedranno né sentiranno alcun feed dal gruppo.",
"this-is-obs-browser-source-link": "Questo è un collegamento all'origine del browser OBS che è vuoto per impostazione predefinita. I video nella stanza possono essere aggiunti manualmente a questa scena.",
"this-is-obs-browser-souce-link-auto": "Anche un collegamento alla sorgente del browser OBS. Tutti i video degli ospiti in questa chat room di gruppo verranno aggiunti automaticamente a questa scena.",
"click-for-quick-room-overview": "❔ Fare clic qui per una rapida panoramica e assistenza ",
"push-to-talk-enable": "🔊 Abilita Director's Push-to-Talk Mode",
"welcome-to-control-room": "Benvenuto. Questa è la sala di controllo per la chat di gruppo. Ci sono diverse cose per cui puoi usare questa stanza:<br><br>\t<li>Puoi ospitare una chat di gruppo con gli amici utilizzando una stanza. Condividi il link blu per invitare gli ospiti che si uniranno automaticamente alla chat.</li>\t<li>Una sala per gruppi può ospitare da 4 a 30 persone, a seconda di numerosi fattori, tra cui CPU e larghezza di banda disponibile di tutti gli ospiti nella stanza.</li>\t<li>Solo-views of each video are offered under videos as they load. These can be used within an OBS Browser Source.</li>\t<li>You can use the auto-mixing Group Scene, the green link, to auto arrange multiple videos for you in OBS.</li>\t<li>You can use this control room to record isolated video or audio streams, but it is an experimental feature still.</li>\t<li>Videos in the Director's room will be of low quality on purpose; to save bandwidth/CPU</li>\t<li>Guest's in the room will see each other's videos at a very limited quality to conserve bandwidth/CPU.</li>\t<li>OBS will see a guest's video in high-quality; the default video bitrate is 2500kbps.</li>\t<br>\tAs guests join, their videos will appear below. You can bring their video streams into OBS as solo-scenes or you can add them to the Group Scene.\t<br>The Group Scene auto-mixes videos that have been added to the group scene. Please note that the Auto-Mixer requires guests be manually added to it for them to appear in it; they are not added automatically.<br><br>Apple mobile devices, such as iPhones and iPads, do not fully support Video Group Chat. This is a hardware constraint.<br><br>\tFor advanced options and parameters, <a href=\"https://github.com/steveseguin/obsninja/wiki/Guides-and-How-to's#urlparameters\">see the Wiki.</a>",
"guest-will-appaer-here-on-join": "(Quando un ospite si unisce, verrà visualizzato un video qui)",
"SOLO-LINK": "SOLO LINK for OBS:"
}

68
translations/ja.json Normal file
View File

@@ -0,0 +1,68 @@
{
"GO": "GO",
"add-group-chat": "OBSにグループミーティングを追加",
"add-to-group": "グループシーンに追加",
"add-your-camera": "OBSに自分のカメラを追加",
"added-notes": "<i><u>追加情報:<u></u></u></i><li><u><u>ルーム名を知っている人は誰でもルームに入れるため、ユニークなルーム名にして下さい。</u></u></li><li><u><u>ハードウェア性能にもよりますが、パフォーマンス上の理由から、4人以上のルーム利用はおすすめできません。</u></u></li><li><u><u>iOSデバイスでは、2人以下のグループサイズに制限されます。これはハードウェアによる制限です。</u></u></li><li><u><u>\"Recording\" オプションは実験的な新機能です。</u></u></li><li><u><u>ビデオフィードを「グループシーン」に表示するには、そこに「追加」する必要があります。</u></u></li><li><u><u>ゲストのビューに、新しい「強化されたフルスクリーン」ボタンが追加されました。</u></u></li>",
"advanced-paramaters": "高度なパラメータ",
"audio-sources": "音声ソース",
"back": "戻る",
"balanced": "バランス",
"copy-this-url": "このURLをOBSの「ブラウザソース」に追加",
"copy-to-clipboard": "クリップボードにコピー",
"create-reusable-invite": "再利用可能な招待リンクを作成",
"enable-stereo-and-pro": "ステレオ・プロHDオーディオを有効にする",
"enter-the-rooms-control": "ルーム管理センターに入る",
"force-vp9-video-codec": "VP9ビデオコーデックの使用を強制 (less artifacting)",
"generate-invite-link": "招待リンクを作成",
"here-you-can-pre-generate": "再利用可能なブラウザソースリンクと、関連するゲスト招待リンクを、事前に作成できます。",
"high-security-mode": "高セキュリティモード",
"info-blob": "<h2>OBS.Ninja とは?</h2><br><li>超低遅延でプライバシーが保護された、ビデオストリームサービスです。</li><li>ライブ配信でゲストとの対話を配信したり、少人数のグループミーティングにも利用できます。</li><li>100% <strong>無料</strong>、ダウンロード不要、サインイン不要、個人情報を一切収集しません。</li><li>あなたや友人のスマートフォン、タブレット、PCなどから、直接OBSビデオストリームに映像を取り込めます。</li><li>プライバシーと超低遅延を実現するために、最先端のピアツーピア転送技術を使用しています。</li><br><li>YouTube: <i class=\"fa fa-youtube-play\" aria-hidden=\"true\"></i> <a href=\"https://www.youtube.com/watch?v=6R_sQKxFAhg\">デモ動画を見る</a> </li><li>Github: <i class=\"fa fa-github\" aria-hidden=\"true\"></i> <a href=\"https://github.com/steveseguin/obsninja\">https://github.com/steveseguin/obsninja</a> </li><br><i><font style=\"color:red\">既知の問題点:</font></i><br><li><i class=\"fa fa-apple\" aria-hidden=\"true\"></i>MacOSユーザーは、OBS v23を使用するか、OBS v25でChromeブラウザーを<i>ウィンドウキャプチャー</i>する必要があります。</li><li>一部のユーザーは「ピクセレーション」問題が発生します。その場合、URLパラメータに <code>&amp;codec=vp9</code> を追加して下さい。</li><br><i>フォーラムや連絡先:</i><br><li>ヘルプや高度な情報は、<a href=\"https://www.reddit.com/r/OBSNinja/\">sub-reddit</a><i class=\"fa fa-reddit-alien\" aria-hidden=\"true\"> でチェックして下さい。</i></li><li><i class=\"fa fa-reddit-alien\" aria-hidden=\"true\"><a href=\"https://discord.gg/EksyhGA\">Discord</a> もあります。</i></li><li><i class=\"fa fa-reddit-alien\" aria-hidden=\"true\">メール <a href=\"mailto:steve@seguin.email\">steve@seguin.email</a> でも連絡できます。</i></li>",
"joining-room": "ルームに参加しています",
"logo-header": "<font id=\"qos\" style=\"color: white;\">O</font>BS.Ninja ",
"max-resolution": "最大解像度",
"mute": "ミュート",
"no-audio": "音声なし",
"note-share-audio": "<strong>注意</strong>: Chromeの「音声の共有」を必ずクリックして下さい。<br>(Firefox は音声の共有をサポートしていません)",
"open-in-new-tab": "新しいタブで開く",
"record": "録画",
"remote-control-for-obs": "OBS用リモートコントロール",
"remote-screenshare-obs": "OBSに画面共有を追加",
"room-name": "ルーム名",
"rooms-allow-for": "ルームを利用すると、グループミーティングや複数ストリームを、一つの画面で管理できます。",
"select-audio-source": "音声ソースを選択",
"select-audio-video": "映像/音声ソースを下から選んで下さい",
"select-screen-to-share": "共有する画面を選択",
"show-tips": "ヒントを表示",
"smooth-cool": "スムーズ&クール",
"unlock-video-bitrate": "ビデオビットレートをアンロック (20mbps)",
"video-source": "映像ソース",
"volume": "ボリューム",
"you-are-in-the-control-center": "ルーム管理センター",
"waiting-for-camera": "カメラがロードされるのを待っています...",
"video-resolution": "ビデオ解像度: ",
"hide-screen-share": "画面共有オプションを非表示",
"allow-remote-control": "カメラズームのリモートコントロール (android)",
"add-the-guest-to-a-room": "ゲストをルームに追加:",
"invite-group-chat-type": "このルームのゲストは、次のことができる:",
"can-see-and-hear": "グループミーティングの映像・音声を視聴できる",
"can-hear-only": "グループミーティングの音声のみ聞ける",
"cant-see-or-hear": "グループミーティングの映像・音声を視聴できない",
"password-input-field": "Password",
"select-output-source": "音声出力先:",
"add-a-password-to-stream": "パスワードを追加:",
"welcome-to-obs-ninja-chat": "\n\t\t\t\t\tWelcome to OBS.Ninja! You can send text messages directly to connected peers from here.\n\t\t\t\t",
"names-and-labels-coming-soon": "\n\t\t\t\t\tNames identifying connected peers will be a feature in an upcoming release.\n\t\t\t\t",
"send-chat": "Send",
"available-languages": "Available Languages:",
"add-more-here": "Add More Here!",
"invite-users-to-join": "Invites users to join the group and broadcast their feed to it. These users will see every feed in the room.",
"link-to-invite-camera": "Link to invite users to broadcast their feeds to the group. These users will not see or hear any feed from the group.",
"this-is-obs-browser-source-link": "This is an OBS Browser Source link that is empty by default. Videos in the room can be manually added to this scene.",
"this-is-obs-browser-souce-link-auto": "Also an OBS Browser Source link. All guest videos in this group chat room will automatically be added into this scene.",
"click-for-quick-room-overview": "❔ Click Here for a quick overview and help",
"push-to-talk-enable": "🔊 Enable Director's Push-to-Talk Mode",
"welcome-to-control-room": "Welcome. This is the control-room for the group-chat. There are different things you can use this room for:<br><br>\t<li>You can host a group chat with friends using a room. Share the blue link to invite guests who will join the chat automatically.</li>\t<li>A group room can handle around 4 to 30 guests, depending on numerous factors, including CPU and available bandwidth of all guests in the room.</li>\t<li>Solo-views of each video are offered under videos as they load. These can be used within an OBS Browser Source.</li>\t<li>You can use the auto-mixing Group Scene, the green link, to auto arrange multiple videos for you in OBS.</li>\t<li>You can use this control room to record isolated video or audio streams, but it is an experimental feature still.</li>\t<li>Videos in the Director's room will be of low quality on purpose; to save bandwidth/CPU</li>\t<li>Guest's in the room will see each other's videos at a very limited quality to conserve bandwidth/CPU.</li>\t<li>OBS will see a guest's video in high-quality; the default video bitrate is 2500kbps.</li>\t<br>\tAs guests join, their videos will appear below. You can bring their video streams into OBS as solo-scenes or you can add them to the Group Scene.\t<br>The Group Scene auto-mixes videos that have been added to the group scene. Please note that the Auto-Mixer requires guests be manually added to it for them to appear in it; they are not added automatically.<br><br>Apple mobile devices, such as iPhones and iPads, do not fully support Video Group Chat. This is a hardware constraint.<br><br>\tFor advanced options and parameters, <a href=\"https://github.com/steveseguin/obsninja/wiki/Guides-and-How-to's#urlparameters\">see the Wiki.</a>",
"guest-will-appaer-here-on-join": "(A video will appear here when a guest joins)",
"SOLO-LINK": "SOLO LINK for OBS:"
}

68
translations/nl.json Normal file
View File

@@ -0,0 +1,68 @@
{
"GO": "START",
"add-group-chat": "Voeg Groepsgesprek toe",
"add-to-group": "Voeg toe aan Groepsscene",
"add-your-camera": "Voeg je Camera toe",
"added-notes": "\n\t\t\t\t<u><i>Notities:</i></u>\n\t\t\t\t<li>Iedereen kan de kamer binnenkomen als ze de naam kennen, dus hou hem uniek</li>\n\t\t\t\t<li>Meer dan vier (4) mensen in een kamer is niet aan te raden vanwege prestatie redenen, maar is afhankelijk van uw hardware.</li>\n\t\t\t\t<li>Bij iOS apparaten is de video alleen zichtbaar voor de regiseur. Dit is een hardware beperking.</li>\n\t\t\t\t<li>De \"Opname\" optie is nieuw en is experimenteel.</li>\n\t\t\t\t<li>U moet een video stroom \"Toevoegen\" aan de \"Groeps Scene\" om het hier te tonen.</li>\n\t\t\t\t<li>Er is een nieuwe \"uitgebreid volledig scherm\" knop toegevoegd aan het Gasten scherm.</li>\n\t\t\t\t",
"advanced-paramaters": "Geavanceerde Parameters",
"audio-sources": "Geluidsbronnen",
"back": "Terug",
"balanced": "Gebalanceerd",
"copy-this-url": "Deelbare Link naar deze video",
"copy-to-clipboard": "Kopiëren naar Clipboard",
"create-reusable-invite": "Maak Herbruikbare Uitnodiging",
"enable-stereo-and-pro": "Activeer Stereo en Pro HD Geluid",
"enter-the-rooms-control": "Ga de Kamer's Controle Centrum in",
"force-vp9-video-codec": "Forceer VP9 Video Codec (minder verstoring)",
"generate-invite-link": "GENEREER DE UITNODIGINGS LINK",
"here-you-can-pre-generate": "Hier kan u vooraf een herbruikbare weergave link en een bijbehorende gast uitnodigingslink aanmaken.",
"high-security-mode": "Hoge Beveilingsstand",
"info-blob": "\n\t\t\t\t\t\t<h2>Wat is OBS.Ninja</h2><br>\n\t\t\t\t\t\t<li>100% <b>gratis</b>; geen downloads; geen persoonlijke gegevens verzamelen; niet inloggen</li>\n\t\t\t\t\t\t<li>Breng video van uw smartphone, laptop, computer, of van uw vrienden direct in uw OBS video stroom</li>\n\t\t\t\t\t\t<li>We gebruiken vooruitstrevende Peer-to-Peer technologie die privacy en ultra lage vertraging biedt</li>\n\t\t\t\t\t\t<br>\n\t\t\t\t\t\t<li>Youtube video <i class=\"fa fa-youtube-play\" aria-hidden=\"true\"></i> <a href=\"https://www.youtube.com/watch?v=6R_sQKxFAhg\">Demonstratie</a> </li>\n\t\t\t\t\t\t<li>Code is beschikbaar op: <i class=\"fa fa-github\" aria-hidden=\"true\"></i> <a href=\"https://github.com/steveseguin/obsninja\">https://github.com/steveseguin/obsninja</a> </li>\n\t\t\t\t\t\t<br>\n\t\t\t\t\t\t<i><font style=\"color:red\">Bekende problemen:</font></i><br>\n\n\t\t\t\t\t\t<li><i class=\"fa fa-apple\" aria-hidden=\"true\"></i> MacOS gebruikers moeten OBS v23 gebruiken of terugvallen op <i>Window Capturing</i> van een Chrome Browser met OBS v25</li>\n\t\t\t\t\t\t<li>Sommige gebruikers kunnen \"pixelatie\" problemen met videos ervaren. Voeg dan de URL parameter <b>&amp;codec=vp9</b> toe aan de OBS Links om dit te corrigeren.</li>\n\t<h3><i>Kijk ook op <a href=\"https://www.reddit.com/r/OBSNinja/\">sub-reddit</a> <i class=\"fa fa-reddit-alien\" aria-hidden=\"true\"></i> voor hulp en uitgebreide informatie. Ik zit ook op <a href=\"https://discord.gg/EksyhGA\">Discord</a> en u kan me mailen op steve@seguin.email</i></h3>\n\t\t\t\t\t",
"joining-room": "U neemt deel aan de kamer",
"logo-header": "<font id=\"qos\" style=\"color: white;\">O</font>BS Ninja",
"max-resolution": "Max Resolutie",
"mute": "Demp",
"no-audio": "Geen Geluid",
"note-share-audio": "\n\t\t\t\t\t<b>Noot</b>: Vergeet niet op \"Deel geluid\" te klikken in Chrome.<br>(Firefox ondersteung geen geluid delen.)",
"open-in-new-tab": "Open in nieuwe Tab",
"record": "Neem op",
"remote-control-for-obs": "Afstandsbediening",
"remote-screenshare-obs": "Deel externe scherm",
"room-name": "Kamer Naam",
"rooms-allow-for": "Kamers maken eenvoudige groepsgespreken en geavanceerd beheer van meerdere streams tegelijk mogelijk.",
"select-audio-source": "Selecteer Geluidsbronnen",
"select-audio-video": "Selecteer de geluid/video bron hieronder",
"select-screen-to-share": "SELECTEER SCHERM OM TE DELEN",
"show-tips": "Toon me wat tips..",
"smooth-cool": "Soepel en Koel",
"unlock-video-bitrate": "Ontsluit Video Bitrate (20mbps)",
"video-source": "Video bron",
"volume": "Volume",
"you-are-in-the-control-center": "U bent in het kamer beheers centrum",
"waiting-for-camera": "Wachten op het Laden van de Camera",
"video-resolution": "Video Resolutie: ",
"hide-screen-share": "Verberg Scherm Delen Optie",
"allow-remote-control": "Afstandsbediening Camera Zoom (android)",
"add-the-guest-to-a-room": " Voeg de gast toe aan een kamer:",
"invite-group-chat-type": "Deze kamer gast kan:",
"can-see-and-hear": "Het groepsgesprek zien en horen",
"can-hear-only": "Alleen het groepsgesprek horen",
"cant-see-or-hear": "Het groepsgesprek niet horen en zien",
"password-input-field": "Password",
"select-output-source": " Audio Output Destination: \n\t\t\t\t\t",
"add-a-password-to-stream": " Add a password:",
"welcome-to-obs-ninja-chat": "\n\t\t\t\t\tWelcome to OBS.Ninja! You can send text messages directly to connected peers from here.\n\t\t\t\t",
"names-and-labels-coming-soon": "\n\t\t\t\t\tNames identifying connected peers will be a feature in an upcoming release.\n\t\t\t\t",
"send-chat": "Send",
"available-languages": "Available Languages:",
"add-more-here": "Add More Here!",
"invite-users-to-join": "Invites users to join the group and broadcast their feed to it. These users will see every feed in the room.",
"link-to-invite-camera": "Link to invite users to broadcast their feeds to the group. These users will not see or hear any feed from the group.",
"this-is-obs-browser-source-link": "This is an OBS Browser Source link that is empty by default. Videos in the room can be manually added to this scene.",
"this-is-obs-browser-souce-link-auto": "Also an OBS Browser Source link. All guest videos in this group chat room will automatically be added into this scene.",
"click-for-quick-room-overview": "❔ Click Here for a quick overview and help",
"push-to-talk-enable": "🔊 Enable Director's Push-to-Talk Mode",
"welcome-to-control-room": "Welcome. This is the control-room for the group-chat. There are different things you can use this room for:<br><br>\t<li>You can host a group chat with friends using a room. Share the blue link to invite guests who will join the chat automatically.</li>\t<li>A group room can handle around 4 to 30 guests, depending on numerous factors, including CPU and available bandwidth of all guests in the room.</li>\t<li>Solo-views of each video are offered under videos as they load. These can be used within an OBS Browser Source.</li>\t<li>You can use the auto-mixing Group Scene, the green link, to auto arrange multiple videos for you in OBS.</li>\t<li>You can use this control room to record isolated video or audio streams, but it is an experimental feature still.</li>\t<li>Videos in the Director's room will be of low quality on purpose; to save bandwidth/CPU</li>\t<li>Guest's in the room will see each other's videos at a very limited quality to conserve bandwidth/CPU.</li>\t<li>OBS will see a guest's video in high-quality; the default video bitrate is 2500kbps.</li>\t<br>\tAs guests join, their videos will appear below. You can bring their video streams into OBS as solo-scenes or you can add them to the Group Scene.\t<br>The Group Scene auto-mixes videos that have been added to the group scene. Please note that the Auto-Mixer requires guests be manually added to it for them to appear in it; they are not added automatically.<br><br>Apple mobile devices, such as iPhones and iPads, do not fully support Video Group Chat. This is a hardware constraint.<br><br>\tFor advanced options and parameters, <a href=\"https://github.com/steveseguin/obsninja/wiki/Guides-and-How-to's#urlparameters\">see the Wiki.</a>",
"guest-will-appaer-here-on-join": "(A video will appear here when a guest joins)",
"SOLO-LINK": "SOLO LINK for OBS:"
}

51
translations/pig.json Normal file
View File

@@ -0,0 +1,51 @@
{
"GO": "OGAY",
"add-group-chat": "Addway Oupgray Atchay",
"add-to-group": "Addway Oupgray Atchay",
"add-your-camera": "Addway ouryay Ameracay",
"added-notes": "\n\t\t\t\t<u><i>Addedway Otesnay:</i></u>\n\t\t\t\t<li>Anyoneway ancay enterway away oomray ifway eythay owknay ethay amenay, osay eepkay itway uniqueway</li>\n\t\t\t\t<li>Avinghay oremay anthay ourfay (4) eoplepay inway away oomray isway otnay advisableway ueday otay erformancepay easonsray, utbay itway ependsday onway ouryay ardwarehay.</li>\n\t\t\t\t<li>iOSWAY evicesday illway avehay eirthay ideovay onlyway ebay isiblevay otay ethay irectorday. Isthay isway away ardwarehay imitationlay.</li>\n\t\t\t\t<li>Ethay \"Ecordingray\" optionway isway ewnay andway isway onsideredcay experimentalway.</li>\n\t\t\t\t",
"advanced-paramaters": "Advancedway Arameterspay",
"audio-sources": "Audioway Ourcessay",
"back": "Ackbay",
"balanced": "Alancedbay",
"copy-this-url": "Arableshay Inklay otay isthay ideovay",
"copy-to-clipboard": "Opycay otay Ipboardclay",
"create-reusable-invite": "Eatecray Eusableray Inviteway",
"enable-stereo-and-pro": "Enableway Ereostay andway Opray HDAY Audioway",
"enter-the-rooms-control": "Enterway ethay Oom'sray Ontrolcay Entercay",
"force-vp9-video-codec": "Orcefay VPAY9 Ideovay Odeccay (esslay artifactingway)",
"generate-invite-link": "ENERATEGAY ETHAY INVITEWAY INKLAY",
"here-you-can-pre-generate": "Erehay ouyay ancay epray-enerategay away eusableray iewvay inklay andway away elatedray uestgay inviteway inklay.",
"high-security-mode": "Ighhay Ecuritysay Odemay",
"info-blob": "",
"joining-room": "Ouyay areway oiningjay oomray",
"logo-header": "<font id=\"qos\" style=\"color: white;\">O</font>BS Ninja - Pig Latin",
"max-resolution": "Axmay Esolutionray",
"mute": "Utemay",
"no-audio": "Onay Audioway",
"note-share-audio": "\n",
"open-in-new-tab": "Openway inway ewnay Abtay",
"record": "Ecordray",
"remote-control-for-obs": "Emoteray Ontrolcay",
"remote-screenshare-obs": "Emoteray Eensharescray",
"room-name": "Oomray Amenay",
"rooms-allow-for": "Oomsray allowway orfay implifiedsay oupgray-atchay andway ethay advancedway anagementmay ofway ultiplemay eamsstray atway onceway.",
"select-audio-source": "Electsay Audioway Ourcessay",
"select-audio-video": "Electsay ethay audioway/ideovay ourcesay elowbay",
"select-screen-to-share": "ELECTSAY EENSCRAY OTAY ARESHAY",
"show-tips": "Owshay emay omesay ipstay..",
"smooth-cool": "Oothsmay andway Oolcay",
"unlock-video-bitrate": "Unlockway Ideovay Itratebay (20mbpsay)",
"video-source": "Ideovay ourcesay",
"volume": "Olumevay",
"you-are-in-the-control-center": "Ouyay areway inway ethay oom'sray ontrolcay entercay",
"waiting-for-camera": "Aitingway orfay Ameracay otay Oadlay",
"video-resolution": "Ideovay Esolutionray: ",
"hide-screen-share": "Idehay Eensharescray Optionway",
"allow-remote-control": "Emoteray Ontrolcay Ameracay Oomzay (androidway)",
"add-the-guest-to-a-room": " Addway ethay uestgay otay away oomray:",
"invite-group-chat-type": "Isthay oomray uestgay ancay:",
"can-see-and-hear": "Ancay eesay andway earhay ethay oupgray atchay",
"can-hear-only": "Ancay onlyway earhay ethay oupgray atchay",
"cant-see-or-hear": "Annotcay earhay orway eesay ethay oupgray atchay"
}

View File

@@ -39,13 +39,30 @@
"video-source": "Fonte de vídeo",
"volume": "Volume",
"you-are-in-the-control-center": "Está no Centro de Controlo da Sala",
"waiting-for-camera": "Waiting for Camera to Load",
"video-resolution": "Video Resolution: ",
"hide-screen-share": "Hide Screenshare Option",
"allow-remote-control": "Remote Control Camera Zoom (android)",
"add-the-guest-to-a-room": " Add the guest to a room:",
"invite-group-chat-type": "This room guest can:",
"can-see-and-hear": "Can see and hear the group chat",
"can-hear-only": "Can only hear the group chat",
"cant-see-or-hear": "Cannot hear or see the group chat"
"waiting-for-camera": "Esperando pela câmera",
"video-resolution": "Resolução de Vídeo: ",
"hide-screen-share": "Esconder opção de partilhar ecrã",
"allow-remote-control": "Controlo remoto do zoom da câmera (android)",
"add-the-guest-to-a-room": " Adicionar convidado a uma sala:",
"invite-group-chat-type": "Este convidado pode:",
"can-see-and-hear": "Pode ver e ouvir o chat de grupo",
"can-hear-only": "Pode apenas ouvir o chat de grupo",
"cant-see-or-hear": "Não pode ver ou ouvir o chat de grupo",
"password-input-field": "Password",
"select-output-source": " Saída de áudio: \n\t\t\t\t\t",
"add-a-password-to-stream": " Adicionar uma password:",
"welcome-to-obs-ninja-chat": "\n\t\t\t\t\tBem vindo ao OBS.Ninja! Pode enviar mensagens diretas a quem estiver aqui ligado a partir daqui.\n\t\t\t\t",
"names-and-labels-coming-soon": "\n\t\t\t\t\tNomes a identificar as ligações será uma funcionalidade futura.\n\t\t\t\t",
"send-chat": "Enviar",
"available-languages": "Línguas disponíveis:",
"add-more-here": "Adicionar mais aqui!",
"invite-users-to-join": "Invites users to join the group and broadcast their feed to it. These users will see every feed in the room.",
"link-to-invite-camera": "Link to invite users to broadcast their feeds to the group. These users will not see or hear any feed from the group.",
"this-is-obs-browser-source-link": "This is an OBS Browser Source link that is empty by default. Videos in the room can be manually added to this scene.",
"this-is-obs-browser-souce-link-auto": "Also an OBS Browser Source link. All guest videos in this group chat room will automatically be added into this scene.",
"click-for-quick-room-overview": "❔ Click Here for a quick overview and help",
"push-to-talk-enable": "🔊 Enable Director's Push-to-Talk Mode",
"welcome-to-control-room": "Welcome. This is the control-room for the group-chat. There are different things you can use this room for:<br><br>\t<li>You can host a group chat with friends using a room. Share the blue link to invite guests who will join the chat automatically.</li>\t<li>A group room can handle around 4 to 30 guests, depending on numerous factors, including CPU and available bandwidth of all guests in the room.</li>\t<li>Solo-views of each video are offered under videos as they load. These can be used within an OBS Browser Source.</li>\t<li>You can use the auto-mixing Group Scene, the green link, to auto arrange multiple videos for you in OBS.</li>\t<li>You can use this control room to record isolated video or audio streams, but it is an experimental feature still.</li>\t<li>Videos in the Director's room will be of low quality on purpose; to save bandwidth/CPU</li>\t<li>Guest's in the room will see each other's videos at a very limited quality to conserve bandwidth/CPU.</li>\t<li>OBS will see a guest's video in high-quality; the default video bitrate is 2500kbps.</li>\t<br>\tAs guests join, their videos will appear below. You can bring their video streams into OBS as solo-scenes or you can add them to the Group Scene.\t<br>The Group Scene auto-mixes videos that have been added to the group scene. Please note that the Auto-Mixer requires guests be manually added to it for them to appear in it; they are not added automatically.<br><br>Apple mobile devices, such as iPhones and iPads, do not fully support Video Group Chat. This is a hardware constraint.<br><br>\tFor advanced options and parameters, <a href=\"https://github.com/steveseguin/obsninja/wiki/Guides-and-How-to's#urlparameters\">see the Wiki.</a>",
"guest-will-appaer-here-on-join": "(A video will appear here when a guest joins)",
"SOLO-LINK": "SOLO LINK for OBS:"
}

View File

@@ -1,42 +1,68 @@
{
"GO": "ВОЙТИ",
"add-group-chat": "Добавить групповой чат в OBS",
"add-to-group": "Добавить в групповую сцену",
"add-your-camera": "Добавьте свою камеру в OBS",
"added-notes": "\n\t\t\t\t<u><i>Добавленные заметки:</i></u>\n\t\t\t\t<li>Любой может войти в комнату, если знает имя, поэтому оставьте его уникальным</li>\n\t\t\t\t<li>Наличие более четырех (4) человек в комнате не рекомендуется по причинам производительности, но это зависит от вашего оборудования.</li>\n\t\t\t\t<li>Устройства iOS ограничены размерами группы не более двух (2) человек. Это аппаратное ограничение.</li>\n\t\t\t\t",
"advanced-paramaters": "Расширенные параметры",
"audio-sources": "Источники звука",
"back": "Назад",
"balanced": "Сбалансированный",
"copy-this-url": "Скопируйте этот URL-адрес в OBS \"Браузер\"",
"copy-to-clipboard": "Скопировано в буфер обмена",
"create-reusable-invite": "Создать многоразовое приглашение",
"enable-stereo-and-pro": "Включить стерео и Pro HD Audio",
"enter-the-rooms-control": "Войдите в центр управления комнатой",
"force-vp9-video-codec": "Видеокодек Force VP9 (меньше артефактов)",
"generate-invite-link": "СГЕНЕРИРОВАТЬ ССЫЛКУ-ПРИГЛАШЕНИЕ",
"here-you-can-pre-generate": "Здесь вы можете предварительно сгенерировать повторно используемую ссылку на источник браузера и связанную гостевую ссылку для приглашения..",
"high-security-mode": "Режим повышенной безопасности",
"info-blob": "\n\t\t\t\t\t\t<h2>Что такое OBS.Ninja</h2><br>\n\t\t\t\t\t\t<li><b>бесплатно</b> на 100%; нет загрузок; нет сбора личных данных; нет входа</li>\n\t\t\t\t\t\t<li>Добавляйте видео со своего смартфона, ноутбука, компьютера или друзей прямо в видеопоток OBS</li>\n\t\t\t\t\t\t<li>Мы используем передовую технологию переадресации Peer-to-Peer, которая обеспечивает конфиденциальность и сверхнизкую задержку</li>\n\t\t\t\t\t\t<br>\n\t\t\t\t\t\t<li>Пользователям MacOS необходимо использовать OBS v23 или использовать <i>захват окна</ i> в браузере Google Chrome с OBS v25</li>\n\t\t\t\t\t\t<br><h3><i>Проверьте <a href=\"https://www.reddit.com/r/OBSNinja/\">sub-reddit</a> <i class=\"fa fa-reddit-alien\" aria-hidden=\"true\"></i> для помощи и дополнительной информации.</i></h3>\n\t\t\t\t\t",
"joining-room": "Вы присоединяетесь к комнате",
"logo-header": "<font id=\"qos\" style=\"color: white;\">O</font>BS.Ninja (RU)",
"max-resolution": "Максимальное разрешение",
"mute": "Отключить звук",
"no-audio": "Нет звука",
"note-share-audio": "\n\t\t\t\t\tFirefox не поддерживает обмен аудио",
"open-in-new-tab": "Открыть в новой вкладке",
"record": "Запись",
"remote-control-for-obs": "Пульт дистанционного управления для OBS",
"remote-screenshare-obs": "Удаленный просмотр экрана в OBS",
"room-name": "Название комнаты",
"rooms-allow-for": "В комнатах предусмотрены упрощенный групповой чат и расширенное управление несколькими потоками одновременно.",
"select-audio-source": "Выберите источники звука",
"select-audio-video": "Выберите источник аудио / видео ниже",
"select-screen-to-share": "Выберите экран, чтобы поделиться",
"show-tips": "Покажите мне несколько советов..",
"smooth-cool": "Гладко и круто",
"unlock-video-bitrate": "Разблокировать битрейт видео (20 Мбит/с)",
"video-source": "Источники видео",
"volume": "Громкость",
"you-are-in-the-control-center": "Вы находитесь в центре управления комнатой"
}
{
"GO": "ВОЙТИ",
"add-group-chat": "Добавить групповой чат в OBS",
"add-to-group": "Добавить в групповую сцену",
"add-your-camera": "Добавьте свою камеру в OBS",
"added-notes": "\n\t\t\t\t<u><i>Добавленные заметки:</i></u>\n\t\t\t\t<li>Любой может войти в комнату, если знает имя, поэтому оставьте его уникальным</li>\n\t\t\t\t<li>Наличие более четырех (4) человек в комнате не рекомендуется по причинам производительности, но это зависит от вашего оборудования.</li>\n\t\t\t\t<li>Устройства iOS ограничены размерами группы не более двух (2) человек. Это аппаратное ограничение.</li>\n\t\t\t\t",
"advanced-paramaters": "Расширенные параметры",
"audio-sources": "Источники звука",
"back": "Назад",
"balanced": "Сбалансированный",
"copy-this-url": "Скопируйте этот URL-адрес в OBS \"Браузер\"",
"copy-to-clipboard": "Скопировано в буфер обмена",
"create-reusable-invite": "Создать многоразовое приглашение",
"enable-stereo-and-pro": "Включить стерео и Pro HD Audio",
"enter-the-rooms-control": "Войдите в центр управления комнатой",
"force-vp9-video-codec": "Видеокодек Force VP9 (меньше артефактов)",
"generate-invite-link": "СГЕНЕРИРОВАТЬ ССЫЛКУ-ПРИГЛАШЕНИЕ",
"here-you-can-pre-generate": "Здесь вы можете предварительно сгенерировать повторно используемую ссылку на источник браузера и связанную гостевую ссылку для приглашения..",
"high-security-mode": "Режим повышенной безопасности",
"info-blob": "\n\t\t\t\t\t\t<h2>Что такое OBS.Ninja</h2><br>\n\t\t\t\t\t\t<li><b>бесплатно</b> на 100%; нет загрузок; нет сбора личных данных; нет входа</li>\n\t\t\t\t\t\t<li>Добавляйте видео со своего смартфона, ноутбука, компьютера или друзей прямо в видеопоток OBS</li>\n\t\t\t\t\t\t<li>Мы используем передовую технологию переадресации Peer-to-Peer, которая обеспечивает конфиденциальность и сверхнизкую задержку</li>\n\t\t\t\t\t\t<br>\n\t\t\t\t\t\t<li>Пользователям MacOS необходимо использовать OBS v23 или использовать <i>захват окна<!-- i--> в браузере Google Chrome с OBS v25</i></li><i>\n\t\t\t\t\t\t<br><h3><i>Проверьте <a href=\"https://www.reddit.com/r/OBSNinja/\">sub-reddit</a> <i class=\"fa fa-reddit-alien\" aria-hidden=\"true\"></i> для помощи и дополнительной информации.</i></h3>\n\t\t\t\t\t</i>",
"joining-room": "Вы присоединяетесь к комнате",
"logo-header": "<font id=\"qos\" style=\"color: white;\">O</font>BS.Ninja (RU)",
"max-resolution": "Максимальное разрешение",
"mute": "Отключить звук",
"no-audio": "Нет звука",
"note-share-audio": "\n\t\t\t\t\tFirefox не поддерживает обмен аудио",
"open-in-new-tab": "Открыть в новой вкладке",
"record": "Запись",
"remote-control-for-obs": "Пульт дистанционного управления для OBS",
"remote-screenshare-obs": "Удаленный просмотр экрана в OBS",
"room-name": "Название комнаты",
"rooms-allow-for": "В комнатах предусмотрены упрощенный групповой чат и расширенное управление несколькими потоками одновременно.",
"select-audio-source": "Выберите источники звука",
"select-audio-video": "Выберите источник аудио / видео ниже",
"select-screen-to-share": "Выберите экран, чтобы поделиться",
"show-tips": "Покажите мне несколько советов..",
"smooth-cool": "Гладко и круто",
"unlock-video-bitrate": "Разблокировать битрейт видео (20 Мбит/с)",
"video-source": "Источники видео",
"volume": "Громкость",
"you-are-in-the-control-center": "Вы находитесь в центре управления комнатой",
"password-input-field": "Password",
"waiting-for-camera": "Waiting for Camera to Load",
"select-output-source": " Audio Output Destination: \n\t\t\t\t\t",
"video-resolution": "Video Resolution: ",
"hide-screen-share": "Hide Screenshare Option",
"allow-remote-control": "Remote Control Camera Zoom (android)",
"add-a-password-to-stream": " Add a password:",
"add-the-guest-to-a-room": " Add the guest to a room:",
"invite-group-chat-type": "This room guest can:",
"can-see-and-hear": "Can see and hear the group chat",
"can-hear-only": "Can only hear the group chat",
"cant-see-or-hear": "Cannot hear or see the group chat",
"welcome-to-obs-ninja-chat": "\n\t\t\t\t\tWelcome to OBS.Ninja! You can send text messages directly to connected peers from here.\n\t\t\t\t",
"names-and-labels-coming-soon": "\n\t\t\t\t\tNames identifying connected peers will be a feature in an upcoming release.\n\t\t\t\t",
"send-chat": "Send",
"available-languages": "Available Languages:",
"add-more-here": "Add More Here!",
"invite-users-to-join": "Invites users to join the group and broadcast their feed to it. These users will see every feed in the room.",
"link-to-invite-camera": "Link to invite users to broadcast their feeds to the group. These users will not see or hear any feed from the group.",
"this-is-obs-browser-source-link": "This is an OBS Browser Source link that is empty by default. Videos in the room can be manually added to this scene.",
"this-is-obs-browser-souce-link-auto": "Also an OBS Browser Source link. All guest videos in this group chat room will automatically be added into this scene.",
"click-for-quick-room-overview": "❔ Click Here for a quick overview and help",
"push-to-talk-enable": "🔊 Enable Director's Push-to-Talk Mode",
"welcome-to-control-room": "Welcome. This is the control-room for the group-chat. There are different things you can use this room for:<br><br>\t<li>You can host a group chat with friends using a room. Share the blue link to invite guests who will join the chat automatically.</li>\t<li>A group room can handle around 4 to 30 guests, depending on numerous factors, including CPU and available bandwidth of all guests in the room.</li>\t<li>Solo-views of each video are offered under videos as they load. These can be used within an OBS Browser Source.</li>\t<li>You can use the auto-mixing Group Scene, the green link, to auto arrange multiple videos for you in OBS.</li>\t<li>You can use this control room to record isolated video or audio streams, but it is an experimental feature still.</li>\t<li>Videos in the Director's room will be of low quality on purpose; to save bandwidth/CPU</li>\t<li>Guest's in the room will see each other's videos at a very limited quality to conserve bandwidth/CPU.</li>\t<li>OBS will see a guest's video in high-quality; the default video bitrate is 2500kbps.</li>\t<br>\tAs guests join, their videos will appear below. You can bring their video streams into OBS as solo-scenes or you can add them to the Group Scene.\t<br>The Group Scene auto-mixes videos that have been added to the group scene. Please note that the Auto-Mixer requires guests be manually added to it for them to appear in it; they are not added automatically.<br><br>Apple mobile devices, such as iPhones and iPads, do not fully support Video Group Chat. This is a hardware constraint.<br><br>\tFor advanced options and parameters, <a href=\"https://github.com/steveseguin/obsninja/wiki/Guides-and-How-to's#urlparameters\">see the Wiki.</a>",
"guest-will-appaer-here-on-join": "(A video will appear here when a guest joins)",
"SOLO-LINK": "SOLO LINK for OBS:"
}

View File

@@ -1,7 +1,7 @@
// Copy and paste this code into OBS.Ninja's developer's console to generate new Translation files
function downloadTranslation(filename, trans={}){ // downloads the current translation to a file
document.querySelectorAll('[data-translate]').forEach(function(ele){
allItems.forEach(function(ele){
trans[ele.dataset.translate] = ele.innerHTML;
});
@@ -12,42 +12,54 @@ function downloadTranslation(filename, trans={}){ // downloads the current tran
hiddenElement.target = '_blank';
hiddenElement.download = filename+".json";
hiddenElement.click();
return trans;
}
function updateTranslation(filename){ // updates the website with a specific translation
return fetch("./translations/"+filename+'.json').then(function(response){
if (response.status !== 200) {
log('Looks like there was a problem. Status Code: ' +
response.status);
return false;
var request = new XMLHttpRequest();
request.open('GET', "./translations/"+filename+'.json?'+(Math.random()*100).toString(), false); // `false` makes the request synchronous
request.send(null);
if (request.status !== 200) {
return;
}
try{
data = JSON.parse(request.responseText);
} catch(e){
console.log(request.responseText);
console.error(e);
return false;
}
allItems.forEach(function(ele){
if (ele.dataset.translate in data){
ele.innerHTML = data[ele.dataset.translate];
}
return response.json().then(function(data) {
document.querySelectorAll('[data-translate]').forEach(function(ele){
if (ele.dataset.translate in data){
ele.innerHTML = data[ele.dataset.translate];
}
});
getById("mainmenu").style.opacity = 1;;
return [filename, data];
}).catch(function(err){
errorlog(err);
getById("mainmenu").style.opacity = 1;
return false;
});
});
return [filename, data];
}
var updateList = ["en", "ru", "fr", "pl", "ar", "de", "it", "nl", "jp", "pt", "zh", "blank"]; // list of languages to update
var updateList = ["en", "de", "es", "ru", "fr", "pl", "ja", "ar", "it", "nl", "pt"]; // list of languages to update. Update this if you add a new language.
var allItems = document.querySelectorAll('[data-translate]');
var defaultTrans = {};
allItems.forEach(function(ele){
defaultTrans[ele.dataset.translate] = ele.innerHTML;
});
downloadTranslation("default");
console.log(defaultTrans);
for (var i in updateList){
var ln = updateList[i];
updateTranslation(ln).then(function(res){
if (res[0]){
console.log(res[0]);
downloadTranslation(res[0], res[1]);
res = updateTranslation(ln);
if (res==false){continue;}
if (res[0]){
console.log(res[0]);
downloadTranslation(res[0], res[1]);
}
allItems.forEach(function(ele){
if (ele.dataset.translate in defaultTrans){
ele.innerHTML = defaultTrans[ele.dataset.translate];
}
});
});
}

View File

@@ -1,4 +1,6 @@
## How to setup a TURN server for free (or near free)
## This file is a bit out of day now; see turnserver.md for a newer one.
## You can still reference this file/settings when deploying onto Google Cloud or AWS servers.
# Create a VM instance on Google Cloud (Free Tier available)
# Use Ubuntu and Open all PORTS for ingress/egress for TCP/UDP
@@ -15,35 +17,38 @@
# Use with obs.ninja by adding: https://obs.ninja/?streamid=XXXXXXXXXXX&turn=steve;justtesting;turn:turn.obs.ninja:443
# Obviously update the TURN settings with your domain, username, and password -- keep the password private.
listening-port=80
tls-listening-port=443
#alt-listening-port=0
#alt-tls-listening-port=0
listening-ip = 10.128.0.10 ## CHANGE ME: INTERNAL IP
listening-ip = 0.0.0.0
listening-ip = 127.0.0.1
## listening-ip = and optionally put the IPV6 address here I think
listening-ip = {10.168.0.2, 0.0.0.0, 127.0.0.1} ## CHANGE ME (internal IP)
relay-ip=10.128.0.10 ## CHANGE ME: IINTERNAL IP
relay-ip =0.0.0.0
relay-ip =127.0.0.1
relay-ip = {10.168.0.2, 0.0.0.0, 127.0.0.1} ## CHANGE ME (internal IP)
external-ip=34.67.58.241/10.128.0.10 ## CHANGE ME: PUBLIC IP / CHANGE ME: INTERNAL IP
external-ip = 34.94.203.138/10.168.0.2 ## CHANGE ME ( external + internal IP)
realm=turn.obs.ninja # CHANGE ME
server-name=turn.obs.ninja # CHANGE ME
realm=turn2.obs.ninja ## CHANGE ME
server-name=turn2.obs.ninja ## CHANGE ME
#lt-cred-mech
#userdb=/etc/turnuserdb.conf
fingerprint
stale-nonce
no-multicast-peers
min-port=10000
max-port=20000
#oauth
lt-cred-mech
user=steve:justtesting # CHANGE ME to a username and password you make up
user=steve:justtesting ## CHANGE ME
# use real-valid certificate/privatekey files
cert=/etc/letsencrypt/live/turn.obs.ninja/fullchain.pem ## CHANGE ME ; see certbot
pkey=/etc/letsencrypt/live/turn.obs.ninja/privkey.pem ## CHANGE ME ; see certbot
cert=/etc/letsencrypt/live/turn2.obs.ninja/fullchain.pem ## CHANGE ME
pkey=/etc/letsencrypt/live/turn2.obs.ninja/privkey.pem ## CHANGE ME
# verbose
no-stdout-log

111
turnserver.md Normal file
View File

@@ -0,0 +1,111 @@
This install script and config file was used with a standard virtual machine server loaded with Ubuntu 20. GCP/AWS servers might need slightly different settings.
```
sudo apt-get update
sudo apt-get install coturn -y
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get install certbot -y
sudo vi /etc/default/coturn
```
...and we uncomment the line:
#TURNSERVER_ENABLED=1
….leaving it like this:
TURNSERVER_ENABLED=1
Next make sure you have the DNS pointing to your IP address for this next step (ipv4, and ipv6 if possible). You will need to validate that in the next step.
```
sudo certbot certonly --standalone
sudo apt install net-tools
```
note: If you run into error 701 issues with your TURN server, check that the coturn service has access to your new SSL certificates:
see this issue with coturn: https://github.com/coturn/coturn/issues/268
You might also want to consider buying a better certificiate, as not all Google-related projects properly support certbot certificates, including libwebrtc. see [this issue ticket](https://github.com/coturn/coturn/issues/240#issuecomment-648550885). If you go this route, see [turnserver2.conf](https://github.com/steveseguin/obsninja/blob/master/turnserver2.conf) for an example config.
Nexzt, we update the User and Group values in our service file to be "root". This seems to fix the issue with Lets Encrypt. .. I welcome a better solution tho.
```
sudo vi /usr/lib/systemd/system/coturn.service
sudo systemctl daemon-reload
```
Next, we are going to open up some ports... just in case they are blocked by default. Which exactly? well, these are default ports. TCP may not be needed?
```
sudo ufw allow 3478/tcp
sudo ufw allow 3478/udp
sudo ufw allow 443/tcp
sudo ufw allow 443/udp
sudo ufw allow 49152:65535/tcp
sudo ufw allow 49152:65535/udp
```
Update turnserver.conf with passwords, domain names, and whatever else that needs changing. Example contents are provided below. Once you have updated it, start the TURN server and ensure it started correctly.
```
sudo vi /etc/turnserver.conf
sudo systemctl restart coturn
sudo systemctl status coturn
sudo systemctl enable coturn
```
The following are the contents of an example /etc/turnserver.conf file from above
```
## sudo vi /etc/turnserver.conf
listening-port=3478
## TLS needs an SSL certificate and domain, but enables TCP
tls-listening-port=443
# min-port=49152
# max-port=65535
realm=turn.obs.ninja
server-name=turn.obs.ninja
## webrtc likes to use this
fingerprint
## Lets just use Google since its more reliable
no-stun
lt-cred-mech
user=SOMESUERNAME:SOMEPASSWQORD
stale-nonce=600
## depreciated in newer coturn
# no-loopback-peers
## prevents hackers from hacking
no-multicast-peers
## 1-gbps/100 users = ~ 1-mbps each with this setting then
total-quota=100
cert=/etc/letsencrypt/live/turn.obs.ninja/fullchain.pem
pkey=/etc/letsencrypt/live/turn.obs.ninja/privkey.pem
## Tweaks to fix some lets encrypt errors
cipher-list="ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384"
no-sslv3
no-tlsv1
no-tlsv1_1
# no-tlsv1_2
dh2066
# no-udp
# no-tcp
# verbose
no-stdout-log
## optional
proc-user=root
proc-group=root
```
You can validate here: https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/
Setting this all up is easier said then done. good luck!

52
turnserver2.conf Normal file
View File

@@ -0,0 +1,52 @@
listening-port=3478
alt-listening-port=3479
## TLS needs an SSL certificate and domain, but enables TCP
tls-listening-port=443
alt-tls-listening-port=444
# min-port=10000
# max-port=20000
realm=www.turn.obs.ninja
server-name=www.turn.obs.ninja
fingerprint
## Lets just use Google since its more reliable
no-stun
lt-cred-mech
user=UUUUU:PPPPPPPPPPPPP
stale-nonce=600
## depreciated in newer coturn
# no-loopback-peers
no-multicast-peers
## 1-gbps/100 users = 1mbps each
total-quota=100
cert=/var/certs/turn_obs_ninja_chain.crt
pkey=/var/certs/turn_obs_ninja.key
## Tweaks to fix some lets encrypt errors
# cipher-list="ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384"
# no-sslv3
# no-tlsv1
# no-tlsv1_1
# no-tlsv1_2
dh2066
# max-bps=650000
# no-udp
# no-tcp
#verbose
no-stdout-log
## bypass the letsencrypt bug; easier than modifying the service
#proc-user=root
#proc-group=root

File diff suppressed because one or more lines are too long