@class100/webrtc
Version:
TODO
28 lines (27 loc) • 620 B
TypeScript
import { RtcTypes } from '../common/Enums';
export declare class UserAuthTokenManager {
static key: string;
static getToken(): string | null;
static setToken(data: string): string | null;
}
interface GetTokenOpt {
roomId: string;
uid: number | string;
}
interface TokenRes {
appid: string | number;
token: string;
}
/**
* 获取token
*/
export declare function getToken(type: RtcTypes, opt: GetTokenOpt): Promise<TokenRes>;
/**
* 开始录制
*/
export declare function startRecord(): Promise<void>;
/**
* 结束录制
*/
export declare function stopRecord(): Promise<void>;
export {};