Skip to content

Commit

Permalink
fix(fix localaccesspointconfiguration): fix LocalAccessPointConfigura…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
RoJoHub committed Jul 5, 2022
1 parent c0c23aa commit bf9814f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions ts/Private/IAgoraRtcEngine.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { QualityAdaptIndication, VideoCodecType, VideoStreamType, AudioSampleRateType, VideoFormat, Rectangle, ScreenCaptureParameters, ClientRoleType, AudienceLatencyLevelType, ChannelProfileType, WarnCodeType, ErrorCodeType, QualityType, LastmileProbeResult, AudioVolumeInfo, RtcStats, UplinkNetworkInfo, DownlinkNetworkInfo, VideoSourceType, LocalVideoStreamState, LocalVideoStreamError, RemoteVideoState, RemoteVideoStateReason, UserOfflineReasonType, LocalAudioStats, RemoteAudioStats, LocalAudioStreamState, LocalAudioStreamError, RemoteAudioState, RemoteAudioStateReason, ClientRoleChangeFailedReason, RtmpStreamPublishState, RtmpStreamPublishErrorType, RtmpStreamingEvent, ChannelMediaRelayState, ChannelMediaRelayError, ChannelMediaRelayEvent, ConnectionStateType, ConnectionChangedReasonType, NetworkType, EncryptionErrorType, PermissionType, UserInfo, UploadErrorReason, StreamSubscribeState, StreamPublishState, AudioScenarioType, ThreadPriorityType, LastmileProbeConfig, VideoEncoderConfiguration, BeautyOptions, VirtualBackgroundSource, VideoCanvas, SpatialAudioParams, VoiceBeautifierPreset, AudioEffectPreset, VoiceConversionPreset, VideoMirrorModeType, AudioSessionOperationRestriction, DeviceInfo, VideoContentHint, LiveTranscoding, LocalTranscoderConfiguration, VideoOrientation, EncryptionConfig, ChannelMediaRelayConfiguration, AudioProfileType, FishCorrectionParams, ClientRoleOptions, AudioRecordingConfiguration, SimulcastStreamConfig, DataStreamConfig, WatermarkOptions } from './AgoraBase'
import { QualityAdaptIndication, VideoCodecType, VideoStreamType, AudioSampleRateType, VideoFormat, Rectangle, ScreenCaptureParameters, ClientRoleType, AudienceLatencyLevelType, ChannelProfileType, WarnCodeType, ErrorCodeType, QualityType, LastmileProbeResult, AudioVolumeInfo, RtcStats, UplinkNetworkInfo, DownlinkNetworkInfo, VideoSourceType, LocalVideoStreamState, LocalVideoStreamError, RemoteVideoState, RemoteVideoStateReason, UserOfflineReasonType, LocalAudioStats, RemoteAudioStats, LocalAudioStreamState, LocalAudioStreamError, RemoteAudioState, RemoteAudioStateReason, ClientRoleChangeFailedReason, RtmpStreamPublishState, RtmpStreamPublishErrorType, RtmpStreamingEvent, ChannelMediaRelayState, ChannelMediaRelayError, ChannelMediaRelayEvent, ConnectionStateType, ConnectionChangedReasonType, NetworkType, EncryptionErrorType, PermissionType, UserInfo, UploadErrorReason, StreamSubscribeState, StreamPublishState, AudioScenarioType, ThreadPriorityType, LastmileProbeConfig, VideoEncoderConfiguration, BeautyOptions, VirtualBackgroundSource, VideoCanvas, SpatialAudioParams, VoiceBeautifierPreset, AudioEffectPreset, VoiceConversionPreset, VideoMirrorModeType, EarMonitoringFilterType, AudioSessionOperationRestriction, DeviceInfo, VideoContentHint, LiveTranscoding, LocalTranscoderConfiguration, VideoOrientation, EncryptionConfig, ChannelMediaRelayConfiguration, AudioProfileType, FishCorrectionParams, ClientRoleOptions, AudioRecordingConfiguration, SimulcastStreamConfig, DataStreamConfig, WatermarkOptions } from './AgoraBase'
import { RenderModeType, NlpAggressiveness, ContentInspectResult, MediaSourceType, RawAudioFrameOpModeType, SnapShotConfig, ContentInspectConfig, AdvancedAudioOptions } from './AgoraMediaBase'
import { RtcConnection } from './IAgoraRtcEngineEx'
import { RhythmPlayerStateType, RhythmPlayerErrorType, AgoraRhythmPlayerConfig } from './IAgoraRhythmPlayer'
Expand Down Expand Up @@ -280,9 +280,9 @@ kLocalOnly = 1,
}

export class LocalAccessPointConfiguration {
ipList?: string
ipList?: string[]
ipListSize?: number
domainList?: string
domainList?: string[]
domainListSize?: number
verifyDomainName?: string
mode?: LocalProxyMode
Expand Down Expand Up @@ -319,11 +319,11 @@ export abstract class IRtcEngineEventHandler {

onAudioEffectFinished?(soundId: number): void;

onVideoDeviceStateChanged?(deviceId: string, deviceType: number, deviceState: number): void;
onVideoDeviceStateChanged?(deviceId: string, deviceType: MediaDeviceType, deviceState: number): void;

onMediaDeviceChanged?(deviceType: MediaDeviceType): void;

onNetworkQuality?(connection: RtcConnection, remoteUid: number, txQuality: number, rxQuality: number): void;
onNetworkQuality?(connection: RtcConnection, remoteUid: number, txQuality: QualityType, rxQuality: QualityType): void;

onIntraRequestReceived?(connection: RtcConnection): void;

Expand Down Expand Up @@ -776,7 +776,7 @@ abstract adjustLoopbackRecordingVolume(volume: number): number;

abstract getLoopbackRecordingVolume(): number;

abstract enableInEarMonitoring(enabled: boolean, includeAudioFilters: number): number;
abstract enableInEarMonitoring(enabled: boolean, includeAudioFilters: EarMonitoringFilterType): number;

abstract setInEarMonitoringVolume(volume: number): number;

Expand Down
4 changes: 2 additions & 2 deletions ts/Private/impl/IAgoraRtcEngineImpl.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { callIrisApi } from '../internal/IrisApiEngine'
import { IRtcEngineEventHandler, IVideoDeviceManager, VideoDeviceInfo, IMetadataObserver, IDirectCdnStreamingEventHandler, IRtcEngine, RtcEngineContext, SDKBuildInfo, ChannelMediaOptions, AudioEqualizationBandFrequency, AudioReverbType, AudioTrackConfig, StreamFallbackOptions, CameraCapturerConfiguration, SIZE, ScreenCaptureSourceInfo, ScreenCaptureConfiguration, PriorityType, InjectStreamConfig, MetadataType, DirectCdnStreamingMediaOptions, CloudProxyType, LocalAccessPointConfiguration, LeaveChannelOptions, Metadata } from '../IAgoraRtcEngine'
import { ChannelProfileType, LastmileProbeConfig, VideoEncoderConfiguration, BeautyOptions, VirtualBackgroundSource, VideoCanvas, VideoStreamType, SpatialAudioParams, VoiceBeautifierPreset, AudioEffectPreset, VoiceConversionPreset, VideoMirrorModeType, AudioSessionOperationRestriction, Rectangle, ScreenCaptureParameters, DeviceInfo, VideoContentHint, LiveTranscoding, LocalTranscoderConfiguration, VideoSourceType, VideoOrientation, ConnectionStateType, EncryptionConfig, UserInfo, ChannelMediaRelayConfiguration, AudioProfileType, FishCorrectionParams, ClientRoleType, ClientRoleOptions, AudioScenarioType, AudioRecordingConfiguration, SimulcastStreamConfig, DataStreamConfig, WatermarkOptions } from '../AgoraBase'
import { ChannelProfileType, LastmileProbeConfig, VideoEncoderConfiguration, BeautyOptions, VirtualBackgroundSource, VideoCanvas, VideoStreamType, SpatialAudioParams, VoiceBeautifierPreset, AudioEffectPreset, VoiceConversionPreset, VideoMirrorModeType, EarMonitoringFilterType, AudioSessionOperationRestriction, Rectangle, ScreenCaptureParameters, DeviceInfo, VideoContentHint, LiveTranscoding, LocalTranscoderConfiguration, VideoSourceType, VideoOrientation, ConnectionStateType, EncryptionConfig, UserInfo, ChannelMediaRelayConfiguration, AudioProfileType, FishCorrectionParams, ClientRoleType, ClientRoleOptions, AudioScenarioType, AudioRecordingConfiguration, SimulcastStreamConfig, DataStreamConfig, WatermarkOptions } from '../AgoraBase'
import { MediaSourceType, RenderModeType, RawAudioFrameOpModeType, SnapShotConfig, ContentInspectConfig, AdvancedAudioOptions } from '../AgoraMediaBase'
import { IMediaPlayer } from '../IAgoraMediaPlayer'
import { LogFilterType, LogLevel } from '../IAgoraLog'
Expand Down Expand Up @@ -1948,7 +1948,7 @@ export class IRtcEngineImpl implements IRtcEngine {
return jsonResults.result
}

enableInEarMonitoring (enabled: boolean, includeAudioFilters: number): number {
enableInEarMonitoring (enabled: boolean, includeAudioFilters: EarMonitoringFilterType): number {
const apiType = 'RtcEngine_enableInEarMonitoring'
const jsonParams = {
enabled,
Expand Down

0 comments on commit bf9814f

Please sign in to comment.