UNPKG

@100mslive/hms-video-store

Version:

@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow

16 lines (15 loc) 656 B
import { InitConfig } from './models'; import { HMSICEServer } from '../../interfaces'; export default class InitService { private static handleError; static fetchInitConfig({ token, peerId, userAgent, initEndpoint, region, iceServers, }: { token: string; peerId: string; userAgent: string; initEndpoint?: string; region?: string; iceServers?: HMSICEServer[]; }): Promise<InitConfig>; } export declare function getUrl(endpoint: string, peerId: string, userAgent: string, region?: string): string; export declare function transformInitConfig(config: any, iceServers?: HMSICEServer[]): InitConfig;