import { IRotationInfoTotalItem, IRotateStyle, XYSupportedCodec, DEVICE_KIND } from '../../type/index'; import { XYRotationVideoInfo } from './index.type'; /** * 获取真实视频分辨率的宽高、比值 * * @param { number } width - 视频宽 * @param { number } height - 视频高 * @param { number } containerHeight - 视频容器高 * @param { number } containerWidth - 视频容器宽 * @param { number } rotate - 旋转信息 * @return { XYRotationVideoInfo } - 按照旋转信息计算后的宽/高/旋转角度数据 */ export declare const getVideoInfoByRotation: (width: number, height: number, containerHeight: number, containerWidth: number, rotate: number) => XYRotationVideoInfo; /** * 自定义布局,辅助计算参会者在旋转画面时的旋转信息 * * @param { IRotationInfoTotalItem } rotationInfo - 屏幕旋转信息数据,通过rotate-info接口回调获取 * @param { number } containerWidth - 当前参会者布局容器的宽度 * @param { number } containerHeight - 当前参会者布局容器的高度 */ export declare const getLayoutRotateInfo: (rotationInfo: IRotationInfoTotalItem, containerWidth: number, containerHeight: number) => IRotateStyle | null; /** * 获取浏览器支持的编解码器列表 * * @public * @returns { Promise } - 结果 */ export declare const getSendSupportedCodec: () => Promise; /** * 生成用户唯一Layout ID值 * * @param { string } callUri - callUri或者endpointId值 * @param { number | string } mediagroupid - 多分组通道ID,常见:0代表people,1代表content,会控喊话有>10值 * @param { string } customId - 自定义ID,默认是"" * @return { string } 唯一ID */ export declare const getLayoutId: (callUri?: string, mediagroupid?: number | string, customId?: string) => string; /** * 生成用户Roster ID值 * * @param { string } callUri - callUri或者endpointId值 * @param { number | string } mediagroupid - 多分组通道ID,常见:0代表people,1代表content,会控喊话有>10值 * @return { string } Roster ID */ export declare const getRosterId: (callUri?: string, mediagroupid?: number | string) => string; /** * 获取Layout ID或Roster Id组合信息,依次是:endpointId、mediagroupId、customId、roster key信息 * * @param { string } id - Layout ID/Roster ID */ export declare const getLayoutIdInfo: (id: string) => { endpointId: string; mediagroupId: string | number; customId: string; rosterId: string; isContent: boolean; }; /** * 通过participantId和mediagroupId获取用户的UniquePd值? * * @param { string } participantId - 小鱼设计的唯一用户ID,迁会后自动创建新的Pid子段; * @param { string } mediagroupId - 多分组通道ID * @returns { string } 创建的ID值 */ export declare const getUniquePid: (participantId: string | number, mediagroupId: string | number) => string; /** * 基于生成的UniquePid值获取participantId和mediagroupId * * @param { string } partId - UniquePid值 * @returns */ export declare const getUniquePidInfo: (partId: string) => { participantId: string; mediagroupId: string; }; /** * 获取副屏渲染ID * * @param { string } viewId - 视图容器节点ID * @returns { string } */ export declare const getSlaveId: (viewId: string) => string; /** * 生成设备唯一Key * * @param { string } deviceId - 设备ID * @param { boolean } isDefault - 是否是默认设备 * @param { DEVICE_KIND } kind - 设备类型 * @returns { string } 设备唯一Key */ export declare const getDeviceUniKey: (deviceId: string, isDefault: boolean, kind: DEVICE_KIND) => string; /** * 根据名称及相应规则获得对应的名称头像 * * @param { string } displayName - layout名称 * @returns { string } - 名称头像 文字内容 */ export declare const getTextAvatar: (displayName: string) => string; /** * 获取真实的TrackId信息 * * @param { string } trackId - 媒体下发的TrackId信息,包含tk-ad,SDK层面需要将-tk-ad转换为st才可以和StreamList做匹配使用 * @returns { string } */ export declare const getReallyTrackId: (trackId: string) => string; /** * 辅助函数,用于切换音频输出设备 * * @param { HTMLAudioElement } element - Audio元素节点 * @param { string } deviceId - 指定切换的设备ID,如果指定错误,则使用系统默认设备 */ export declare const setOutputAudioDevice: (element: any, deviceId: string) => Promise; /** * 转换HideId隐身入会字段 * * @param { string } hideId - HiedId隐藏入会配置 * @returns { string } hideId */ export declare const getHideId: (hideId: string | number) => string; /** * 根据TrackId获取StreamId * * @param { string } trackId - TrackId * @param { boolean } isVideo - 是否是视频流 * @returns { string } - MediaStream ID */ export declare const getStreamIdByTrackId: (trackId: string, isVideo?: boolean) => string;