@rongcloud/plugin-wechat-rtc
Version:
@rongcloud/plugin-wechat-rtc
30 lines • 1.06 kB
TypeScript
import { ErrorCode } from '@rongcloud/engine';
import { RCMediaType } from '../enums/RCMediaType';
import { RCRTCCode } from '../enums/RCRTCCode';
import { IExchangeResponse } from '../service/interface';
import { BaseCommand } from './BaseCommand';
import { RCCommandKind } from '../enums/RCCommandKind';
import { CommandExecuteContext } from './CommandExecuteContext';
import RCRTCRoom from '../room/RCRTCRoom';
export default class PubCommand extends BaseCommand<IExchangeResponse> {
private readonly _tag;
private readonly _mediaType;
private readonly _room;
private _coreContext;
constructor(_tag: string, _mediaType: RCMediaType, _room: RCRTCRoom);
get kind(): RCCommandKind;
private _getResourceState;
/**
* 发送全量 uri
*/
private _sendTotalUris;
/**
* 修改内存中已发布数据
*/
private _updateStore;
execute(ctx: CommandExecuteContext): Promise<{
code: RCRTCCode | ErrorCode;
data?: IExchangeResponse;
}>;
}
//# sourceMappingURL=PubCommand.d.ts.map