import { AgoraRtcChannelClient } from '../../../core/rtc'; import { AgoraRtcCanvasHelper } from '../../../core/rtc/canvas'; import { AgoraRtcChannelPublisher } from '../../../core/rtc/publisher'; import { AgoraRtcSourceManager } from '../../../core/rtc/source-manager'; import { AgoraRtcChannelSubscriber } from '../../../core/rtc/subscriber'; import { AgoraRtcEncryptionConfig, AgoraRtcRenderMode, AgoraRtcScreenScenarioType, AgoraRtcStreamLayer, AgoraRtcVideoEncoderConfiguration, AgoraRtcVideoSnapshot } from '../../../core/rtc/type'; import { AgoraRteRenderView } from '../../../imports'; import { AgoraRtcDeviceManager } from './device'; import { AgoraWebRtcChannelClientInitConfig, AgoraWebRtcPrivateOptions } from './type'; export declare class AgoraRtcChannelWebAdapterImp extends AgoraRtcChannelClient { private _initConfig; private _deviceManager; private _sourceManager; private static readonly CLOUD_PROXY_UDP_MODE; private static readonly CLOUD_PROXY_TCP_MODE; protected logger: import("agora-foundation/lib/logger/type").Logger; publisher: AgoraRtcChannelPublisher; subscriber: AgoraRtcChannelSubscriber; canvasHelper: AgoraRtcCanvasHelper; isPause: boolean; private _packetStatsSize; private _apConfig; private _isCloudProxyEnabled; private _cloudProxyMode; constructor(_initConfig: AgoraWebRtcChannelClientInitConfig, _deviceManager: AgoraRtcDeviceManager, _sourceManager: AgoraRtcSourceManager); get channelId(): string; release(): number; join(streamId: string, token: string): Promise; rejoin(streamId: string, token: string): Promise; pause(): number; resume(): number; leave(): Promise; setEncryptionConfig(encryptionConfig: AgoraRtcEncryptionConfig): number; startRenderRemoteVideoStream(streamId: string, view: AgoraRteRenderView, renderMode: AgoraRtcRenderMode, isMirror: boolean): number; stopRenderRemoteVideoStream(streamId: string, view: HTMLElement): number; takeSnapshot(streamId: string, filePath: string): Promise; adjustRemoteAudioStreamVolume(streamId: string, volume: number): number; setVideoEncoderConfig(config: AgoraRtcVideoEncoderConfiguration, streamLayer: AgoraRtcStreamLayer, streamId: string): number; setScreenScenario(type: AgoraRtcScreenScenarioType): number; setDualStreamMode(streamId: string, enable: boolean): number; stopRenderRemoteVideoStreamOnAllCanvas(streamId: string): number; updateApConfig(apConfig: AgoraWebRtcPrivateOptions): void; private _getRole; private _getClientRoleOptions; private _getAppId; private _handleConnectionStateChanged; private _handleNetworkQualityChanged; private _handleStatsTask; private _handleTrackStatsTask; private _handleUserJoined; private _handleUserLeft; private _handleStreamTypeChanged; private _handleStreamMessage; private _handleCameraVideoEncoderConfigChanged; private _handleScreenVideoEncoderConfigChanged; private _resume; private _startDisconnectedTask; private _stopDisconnectedTask; private _setAccessPoint; private _configureCloudProxy; /** * 将业务层 cloudProxyType 映射到 Web SDK 模式值 * 业务定义:0 => UDP(3), 1 => TCP(5) */ private _mapCloudProxyMode; }