Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
integrate with nwjs
isymchych72a761e80a0a
diff --git a/nwjs-integration/index.html b/nwjs-integration/index.htmlnew file mode 100644index 0000000000..f345d0e4c4--- /dev/null+++ b/nwjs-integration/index.html@@ -0,0 +1,68 @@+<html>+ <head>++ <style>+ body {+ margin: 0;+ }++ iframe {+ width: 100%;+ height: 100%;+ border: 0 none;+ }+ </style>+ </head>+ <body>+ <script>+ var gui = require('nw.gui');+ var screenInitialized = false;+ function obtainDesktopStream (callback, errorCallback) {+ if (!screenInitialized) {+ gui.Screen.Init();+ screenInitialized = true;+ }+ gui.Screen.chooseDesktopMedia(+ ["window","screen"],+ function(streamId) {+ var vid_constraint = {+ mandatory: {+ chromeMediaSource: 'desktop',+ chromeMediaSourceId: streamId,+ maxWidth: 1920,+ maxHeight: 1080+ },+ optional: []+ };+ navigator.webkitGetUserMedia({+ audio: false, video: vid_constraint+ }, callback, errorCallback);+ }+ );+ }++ // use Esc to leave fullscreen mode+ nw.App.registerGlobalHotKey(new nw.Shortcut({+ key: "Escape",+ active: function () {+ var win = nw.Window.get();+ if (win.isFullscreen) {+ win.leaveFullscreen();+ }+ }+ }));++ // create iframe with jitsi-meet+ var iframe = document.createElement('iframe');+ iframe.src = nw.App.manifest['jitsi-url'];+ iframe.allowFullscreen = true;+ iframe.onload = function () {+ iframe.contentWindow.JitsiMeetNW = {+ obtainDesktopStream: obtainDesktopStream+ };+ };++ document.body.appendChild(iframe);+ </script>+ </body>+</html>diff --git a/nwjs-integration/package.json b/nwjs-integration/package.jsonnew file mode 100644index 0000000000..3262d5f2e1--- /dev/null+++ b/nwjs-integration/package.json@@ -0,0 +1,8 @@+{+ "name": "JitsiMeetNW!",+ "version": "0.0.1",+ "jitsi-url": "https://ivan.jitsi.net/",+ "main": "index.html",+ "chromium-args": "--ignore-certificate-errors",+ "user-agent": "Chrome/%webkit_ver JitsiMeetNW/%ver"+}