@cloudgaming/paas-web
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -18,3 +18,10 @@ import { Client } from '@cloudgaming/rpc'; | ||
useWebVideoAndMicrophone?: boolean; | ||
useRelay?: 'always' | 'never' | 'auto'; | ||
/** | ||
* 是否使用 relay 连接 | ||
* * `always-if-available` - 如果 TURN 服务器可用,则使用 relay 连接,否则交给浏览器处理 | ||
* * `always` - 强制使用 relay 连接 | ||
* * `auto` - 永远交给浏览器处理 | ||
* 交给浏览器处理时,通常来说,如果能通过打洞/直连连上的话,就直连,否则使用 relay 连接 | ||
*/ | ||
useRelay?: 'always-if-available' | 'always' | 'auto'; | ||
} | ||
@@ -64,4 +71,4 @@ export declare function getInitialContext(optionsOrEndpoint?: string | InitialContextOptions, channelId?: string, bsUrl?: string, glaWebOnly?: boolean): { | ||
useWebVideoAndMicrophone: boolean | undefined; | ||
useRelay: "always" | "never" | "auto" | undefined; | ||
useRelay: "always-if-available" | "always" | "auto" | undefined; | ||
}; | ||
export declare type PlayerMachineContext = ReturnType<typeof getInitialContext>; |
@@ -46,3 +46,3 @@ import { InitialContextOptions } from './context'; | ||
useWebVideoAndMicrophone: boolean | undefined; | ||
useRelay: "always" | "never" | "auto" | undefined; | ||
useRelay: "always-if-available" | "always" | "auto" | undefined; | ||
}, any, PlayerMachineEvents, { | ||
@@ -93,3 +93,3 @@ value: any; | ||
useWebVideoAndMicrophone: boolean | undefined; | ||
useRelay: "always" | "never" | "auto" | undefined; | ||
useRelay: "always-if-available" | "always" | "auto" | undefined; | ||
}; | ||
@@ -139,4 +139,4 @@ }, import("xstate").ActionObject<{ | ||
useWebVideoAndMicrophone: boolean | undefined; | ||
useRelay: "always" | "never" | "auto" | undefined; | ||
useRelay: "always-if-available" | "always" | "auto" | undefined; | ||
}, PlayerMachineEvents>>; | ||
export declare type PlayerMachine = ReturnType<typeof createPlayerMachine>; |
{ | ||
"name": "@cloudgaming/paas-web", | ||
"license": "BSD-3-Clause", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"files": [ | ||
@@ -6,0 +6,0 @@ "dist" |
3778894
125229