mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 03:12:29 +00:00
Delete nwjs-integration.
This hasn't been used for long time and is probably no longer working.
This commit is contained in:
@@ -1,71 +0,0 @@
|
||||
<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, function (error) {
|
||||
errorCallback &&
|
||||
errorCallback(error, vid_constraint);
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
// 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>
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
Reference in New Issue
Block a user