Skip to content

Commit

Permalink
remove. mac native api
Browse files Browse the repository at this point in the history
  • Loading branch information
Matrixbirds committed Feb 27, 2019
1 parent 77c6059 commit d53969f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion ios/RCTAgora/AgoraConst.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ static NSString *RemoteVideoStateChangedOfUid = @"remoteVideoStateChanged";
static NSString *DidLocalPublishFallbackToAudioOnly = @"localPublishFallbackToAudioOnly";
static NSString *DidRemoteSubscribeFallbackToAudioOnly = @"remoteSubscribeFallbackToAudioOnly";

static NSString *DeviceTypeStateChanged = @"deviceTypeStateChanged";
static NSString *DidAudioRouteChanged = @"audioRouteChanged";
static NSString *CameraDidReady = @"cameraReady";
static NSString *CameraFocusDidChangedToRect = @"cameraFocusAreaChanged";
Expand Down
9 changes: 0 additions & 9 deletions ios/RCTAgora/RCTAgora.m
Original file line number Diff line number Diff line change
Expand Up @@ -1692,7 +1692,6 @@ - (NSDictionary *)constantsToExport {
DidLocalPublishFallbackToAudioOnly,
DidRemoteSubscribeFallbackToAudioOnly,

DeviceTypeStateChanged,
DidAudioRouteChanged,
CameraDidReady,
CameraFocusDidChangedToRect,
Expand Down Expand Up @@ -1970,14 +1969,6 @@ - (void)rtcEngine:(AgoraRtcEngineKit *_Nonnull)engine didRemoteSubscribeFallback
}];
}

- (void)rtcEngine:(AgoraRtcEngineKit *_Nonnull)engine device:(NSString *_Nonnull)deviceId type:(AgoraMediaDeviceType)deviceType stateChanged:(NSInteger)state {
[self sendEvent:DeviceTypeStateChanged params:@{
@"deviceId": deviceId,
@"deviceType": @(deviceType),
@"state": @(state)
}];
}

- (void)rtcEngine:(AgoraRtcEngineKit *_Nonnull)engine didAudioRouteChanged:(AgoraAudioOutputRouting)routing {
[self sendEvent:DidAudioRouteChanged params:@{
@"routing": @(routing)
Expand Down

0 comments on commit d53969f

Please sign in to comment.