add dion for desktop joiner
This commit is contained in:
1 parent
beccc40522
commit
cdfed572f0
12 files changed
+99
-59
No files matched your search
@@ -6,7 +6,7 @@ export const IPC = {
|
||||
RUNNING: 'joiner:running',
|
||||
} as const;
|
||||
|
||||
export type JoinerPlatform = 'wbstream' | 'telemost' | 'vk';
|
||||
export type JoinerPlatform = 'wbstream' | 'telemost' | 'vk' | 'dion';
|
||||
|
||||
export interface JoinerSettings {
|
||||
platform: JoinerPlatform;
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
type JoinerPlatform = 'wbstream' | 'telemost' | 'vk';
|
||||
type JoinerPlatform = 'wbstream' | 'telemost' | 'vk' | 'dion';
|
||||
|
||||
function detectPlatform(url: string): JoinerPlatform | null {
|
||||
const u = url.toLowerCase();
|
||||
if (!u) return null;
|
||||
if (u.includes('wbstream://') || u.includes('stream.wb.ru')) return 'wbstream';
|
||||
if (u.includes('telemost.yandex')) return 'telemost';
|
||||
if (u.includes('dion://') || u.includes('dion.vc')) return 'dion';
|
||||
return 'vk';
|
||||
}
|
||||
|
||||
@@ -13,6 +14,7 @@ function platformLabel(p: JoinerPlatform | null): string {
|
||||
case 'wbstream': return 'WB Stream';
|
||||
case 'telemost': return 'Telemost';
|
||||
case 'vk': return 'VK';
|
||||
case 'dion': return 'DION';
|
||||
default: return '-';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user