mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2025-06-28 20:29:53 +00:00
mobile: update webrtc ICE servers (#782)
* mobile: update webrtc ICE servers * update webrtc package version
This commit is contained in:
parent
ab6301c3e9
commit
6b89eb872b
3 changed files with 5 additions and 5 deletions
|
@ -24,8 +24,8 @@ var TransformOperation;
|
||||||
let activeCall;
|
let activeCall;
|
||||||
const processCommand = (function () {
|
const processCommand = (function () {
|
||||||
const defaultIceServers = [
|
const defaultIceServers = [
|
||||||
{ urls: ["stun:stun.simplex.chat:5349"] },
|
{ urls: ["stun:stun.simplex.im:5349"] },
|
||||||
{ urls: ["turn:turn.simplex.chat:5349"], username: "private", credential: "yleob6AVkiNI87hpR94Z" },
|
{ urls: ["turn:turn.simplex.im:5349"], username: "private", credential: "yleob6AVkiNI87hpR94Z" },
|
||||||
];
|
];
|
||||||
function getCallConfig(encodedInsertableStreams, iceServers, relay) {
|
function getCallConfig(encodedInsertableStreams, iceServers, relay) {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@simplex-chat/webrtc",
|
"name": "@simplex-chat/webrtc",
|
||||||
"version": "0.0.5",
|
"version": "0.1.0",
|
||||||
"description": "WebRTC call in browser and webview for SimpleX Chat clients",
|
"description": "WebRTC call in browser and webview for SimpleX Chat clients",
|
||||||
"main": "dist/call.js",
|
"main": "dist/call.js",
|
||||||
"types": "dist/call.d.ts",
|
"types": "dist/call.d.ts",
|
||||||
|
|
|
@ -217,8 +217,8 @@ const processCommand = (function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
const defaultIceServers: RTCIceServer[] = [
|
const defaultIceServers: RTCIceServer[] = [
|
||||||
{urls: ["stun:stun.simplex.chat:5349"]},
|
{urls: ["stun:stun.simplex.im:5349"]},
|
||||||
{urls: ["turn:turn.simplex.chat:5349"], username: "private", credential: "yleob6AVkiNI87hpR94Z"},
|
{urls: ["turn:turn.simplex.im:5349"], username: "private", credential: "yleob6AVkiNI87hpR94Z"},
|
||||||
]
|
]
|
||||||
|
|
||||||
function getCallConfig(encodedInsertableStreams: boolean, iceServers?: RTCIceServer[], relay?: boolean): CallConfig {
|
function getCallConfig(encodedInsertableStreams: boolean, iceServers?: RTCIceServer[], relay?: boolean): CallConfig {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue