feat(external_api) drop support for noSSL option
Bwrosers have not allowerd WebRTC on non-secure origins for a very long time now.
This commit is contained in:
parent
e271ec2e13
commit
ad496ac245
|
@ -124,16 +124,13 @@ function changeParticipantNumber(APIInstance, number) {
|
||||||
* configuration options defined in interface_config.js to be overridden.
|
* configuration options defined in interface_config.js to be overridden.
|
||||||
* @param {string} [options.jwt] - The JWT token if needed by jitsi-meet for
|
* @param {string} [options.jwt] - The JWT token if needed by jitsi-meet for
|
||||||
* authentication.
|
* authentication.
|
||||||
* @param {boolean} [options.noSSL] - If the value is true https won't be used.
|
|
||||||
* @param {string} [options.roomName] - The name of the room to join.
|
* @param {string} [options.roomName] - The name of the room to join.
|
||||||
* @returns {string} The URL.
|
* @returns {string} The URL.
|
||||||
*/
|
*/
|
||||||
function generateURL(domain, options = {}) {
|
function generateURL(domain, options = {}) {
|
||||||
return urlObjectToString({
|
return urlObjectToString({
|
||||||
...options,
|
...options,
|
||||||
url:
|
url: `https://${domain}/#jitsi_meet_external_api_id=${id}`
|
||||||
`${options.noSSL ? 'http' : 'https'}://${
|
|
||||||
domain}/#jitsi_meet_external_api_id=${id}`
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,7 +161,6 @@ function parseArguments(args) {
|
||||||
parentNode,
|
parentNode,
|
||||||
configOverwrite,
|
configOverwrite,
|
||||||
interfaceConfigOverwrite,
|
interfaceConfigOverwrite,
|
||||||
noSSL,
|
|
||||||
jwt,
|
jwt,
|
||||||
onload
|
onload
|
||||||
] = args;
|
] = args;
|
||||||
|
@ -176,7 +172,6 @@ function parseArguments(args) {
|
||||||
parentNode,
|
parentNode,
|
||||||
configOverwrite,
|
configOverwrite,
|
||||||
interfaceConfigOverwrite,
|
interfaceConfigOverwrite,
|
||||||
noSSL,
|
|
||||||
jwt,
|
jwt,
|
||||||
onload
|
onload
|
||||||
};
|
};
|
||||||
|
@ -237,8 +232,6 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
|
||||||
* configuration options defined in config.js to be overridden.
|
* configuration options defined in config.js to be overridden.
|
||||||
* @param {Object} [options.interfaceConfigOverwrite] - Object containing
|
* @param {Object} [options.interfaceConfigOverwrite] - Object containing
|
||||||
* configuration options defined in interface_config.js to be overridden.
|
* configuration options defined in interface_config.js to be overridden.
|
||||||
* @param {boolean} [options.noSSL] - If the value is true https won't be
|
|
||||||
* used.
|
|
||||||
* @param {string} [options.jwt] - The JWT token if needed by jitsi-meet for
|
* @param {string} [options.jwt] - The JWT token if needed by jitsi-meet for
|
||||||
* authentication.
|
* authentication.
|
||||||
* @param {string} [options.onload] - The onload function that will listen
|
* @param {string} [options.onload] - The onload function that will listen
|
||||||
|
@ -261,7 +254,6 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
|
||||||
parentNode = document.body,
|
parentNode = document.body,
|
||||||
configOverwrite = {},
|
configOverwrite = {},
|
||||||
interfaceConfigOverwrite = {},
|
interfaceConfigOverwrite = {},
|
||||||
noSSL = false,
|
|
||||||
jwt = undefined,
|
jwt = undefined,
|
||||||
onload = undefined,
|
onload = undefined,
|
||||||
invitees,
|
invitees,
|
||||||
|
@ -276,7 +268,6 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
|
||||||
configOverwrite,
|
configOverwrite,
|
||||||
interfaceConfigOverwrite,
|
interfaceConfigOverwrite,
|
||||||
jwt,
|
jwt,
|
||||||
noSSL,
|
|
||||||
roomName,
|
roomName,
|
||||||
devices,
|
devices,
|
||||||
userInfo,
|
userInfo,
|
||||||
|
|
Loading…
Reference in New Issue