migrate to vk.ru, temporarily disable dual vp8 for vk
This commit is contained in:
1 parent
f4714f93d6
commit
e6502a4ac4
16 files changed
+31
-31
No files matched your search
@@ -5,7 +5,7 @@
|
||||
var CALL_MENU_TRIGGER_ID = 'call-menu-trigger';
|
||||
var CALL_MENU_ID = 'call-menu';
|
||||
var CALL_IN_PROGRESS_KEY = 'call_in_progress';
|
||||
var VK_CALL_BASE = 'https://vk.com/call/join/';
|
||||
var VK_CALL_BASE = 'https://vk.ru/call/join/';
|
||||
|
||||
var start = function() {
|
||||
console.log("[BOT] VKCalls: DOM ready...");
|
||||
@@ -67,7 +67,7 @@
|
||||
var inputs = document.querySelectorAll('input[readonly], input[type="text"]');
|
||||
for (var i = 0; i < inputs.length; i++) {
|
||||
var val = inputs[i].value || '';
|
||||
if (val.indexOf('vk.com/call/join/') !== -1) {
|
||||
if (val.indexOf('vk.ru/call/join/') !== -1) {
|
||||
captureLink(val);
|
||||
clearInterval(pollLink);
|
||||
return;
|
||||
|
||||
@@ -219,7 +219,7 @@ export class BotManager {
|
||||
if (lower.startsWith('dion://') || lower.includes('dion.vc')) {
|
||||
return { platform: Platform.Dion, target: trimmed };
|
||||
}
|
||||
if (lower.includes('vk.com/call/join')) {
|
||||
if (lower.includes('vk.ru/call/join')) {
|
||||
return { platform: Platform.VK, target: trimmed };
|
||||
}
|
||||
return null;
|
||||
|
||||
@@ -9,12 +9,12 @@ export const BOT_POLL_RETRY_DELAY_MS = 1000;
|
||||
export const BOT_POLL_WAIT_SECONDS = 25;
|
||||
|
||||
export const VK_API_VERSION = '5.131';
|
||||
export const VK_API_BASE_URL = 'https://api.vk.com/method';
|
||||
export const VK_IM_URL = 'https://vk.com/im';
|
||||
export const VK_API_BASE_URL = 'https://api.vk.ru/method';
|
||||
export const VK_IM_URL = 'https://vk.ru/im';
|
||||
export const TELEMOST_URL = 'https://telemost.yandex.ru/';
|
||||
export const DION_URL = 'https://dion.vc/';
|
||||
|
||||
export const VK_LOGIN_URL = 'https://vk.com/';
|
||||
export const VK_LOGIN_URL = 'https://vk.ru/';
|
||||
export const YANDEX_LOGIN_URL = 'https://passport.yandex.ru/auth?retpath=https%3A%2F%2Ftelemost.yandex.ru%2F';
|
||||
export const DION_LOGIN_URL = 'https://dion.vc/login';
|
||||
export const WBSTREAM_LOGIN_URL = 'https://stream.wb.ru/login';
|
||||
@@ -31,7 +31,7 @@ export const USER_AGENT =
|
||||
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) ' +
|
||||
'AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36';
|
||||
|
||||
export const VK_COOKIE_DOMAINS = ['vk.com', 'vk.ru'];
|
||||
export const VK_COOKIE_DOMAINS = ['vk.ru'];
|
||||
export const YANDEX_COOKIE_DOMAINS = ['yandex.ru', 'yandex.net', 'ya.ru'];
|
||||
export const DION_COOKIE_DOMAINS = ['dion.vc'];
|
||||
export const WBSTREAM_COOKIE_DOMAINS = ['stream.wb.ru', 'wb.ru', 'wildberries.ru'];
|
||||
|
||||
@@ -91,7 +91,7 @@ export function createWindow(tabManager: TabManager): BrowserWindow {
|
||||
if (url.includes('telemost.yandex')) {
|
||||
ac.vk.stop();
|
||||
ac.telemost.attach(wvContents);
|
||||
} else if (url.includes('vk.com')) {
|
||||
} else if (url.includes('vk.ru')) {
|
||||
ac.telemost.stop();
|
||||
ac.vk.attach(wvContents);
|
||||
} else {
|
||||
|
||||
@@ -79,7 +79,7 @@ export function renderContent(tm: RendererTabManager): void {
|
||||
targetInput.placeholder = 'https://telemost.yandex.ru/j/...';
|
||||
} else {
|
||||
targetLabel.textContent = 'Paste a VK call link.';
|
||||
targetInput.placeholder = 'https://vk.com/call/join/...';
|
||||
targetInput.placeholder = 'https://vk.ru/call/join/...';
|
||||
}
|
||||
} else {
|
||||
startEl.classList.remove('visible');
|
||||
@@ -116,7 +116,7 @@ export function renderContent(tm: RendererTabManager): void {
|
||||
} else {
|
||||
toolbar.style.display = 'flex';
|
||||
headlessInfo.style.display = 'none';
|
||||
const isVK = activeTab.platform === Platform.VK && activeTab.url.includes('vk.com');
|
||||
const isVK = activeTab.platform === Platform.VK && activeTab.url.includes('vk.ru');
|
||||
const modeSelect = document.getElementById('modeSelect') as HTMLSelectElement;
|
||||
const tunnelLabel = document.getElementById('tunnelLabel') as HTMLElement;
|
||||
modeSelect.style.display = isVK ? '' : 'none';
|
||||
@@ -172,7 +172,7 @@ export function loadURL(tm: RendererTabManager, url: string): void {
|
||||
if (url.includes('telemost.yandex')) {
|
||||
activeTab.platform = Platform.Telemost;
|
||||
activeTab.mode = TunnelMode.PionVideo;
|
||||
} else if (url.includes('vk.com')) {
|
||||
} else if (url.includes('vk.ru')) {
|
||||
activeTab.platform = Platform.VK;
|
||||
}
|
||||
window.bridge.setTunnelMode(tm.activeTabId, activeTab.mode, activeTab.platform);
|
||||
|
||||
@@ -165,7 +165,7 @@ export class RendererTabManager {
|
||||
getTabLabel(tab: RendererTab): string {
|
||||
if (tab.name) return tab.name;
|
||||
if (tab.url) {
|
||||
if (tab.url.includes('vk.com')) return 'VK (legacy)';
|
||||
if (tab.url.includes('vk.ru')) return 'VK (legacy)';
|
||||
if (tab.url.includes('telemost')) return 'Telemost (legacy)';
|
||||
if (tab.url.includes('dion.vc')) return 'DION';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user