forked from rongcloud/callkit-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
102 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
ios-rongcallkit/RongCallKit/AudioObserver/RCDAudioFrameObserver.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// RCDAudioFrameObserver.hpp | ||
// RongCallKit | ||
// | ||
// Created by litao on 16/9/12. | ||
// Copyright © 2016年 Rong Cloud. All rights reserved. | ||
// | ||
|
||
#ifndef RCDAudioFrameObserver_hpp | ||
#define RCDAudioFrameObserver_hpp | ||
|
||
#include <RongCallLib/IVideoFrameObserver.h> | ||
#import <UIKit/UIKit.h> | ||
#include <stdio.h> | ||
#import <AgoraRtcEngineKit/IAgoraMediaEngine.h> | ||
|
||
class RCDAudioFrameObserver : public agora::media::IAudioFrameObserver { | ||
public: | ||
static RCDAudioFrameObserver *sharedObserver(); | ||
bool onRecordAudioFrame(agora::media::IAudioFrameObserver::AudioFrame& audioFrame); | ||
bool onPlaybackAudioFrame(agora::media::IAudioFrameObserver::AudioFrame& audioFrame); | ||
bool onPlaybackAudioFrameBeforeMixing(unsigned int uid, agora::media::IAudioFrameObserver::AudioFrame& audioFrame); | ||
}; | ||
|
||
#endif /* RCDAudioFrameObserver_hpp */ |
27 changes: 27 additions & 0 deletions
27
ios-rongcallkit/RongCallKit/AudioObserver/RCDAudioFrameObserver.mm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// RCDAudioFrameObserver.cpp | ||
// RongCallKit | ||
// | ||
// Created by litao on 16/9/12. | ||
// Copyright © 2016年 Rong Cloud. All rights reserved. | ||
// | ||
|
||
#include "RCDAudioFrameObserver.h" | ||
|
||
RCDAudioFrameObserver *RCDAudioFrameObserver::sharedObserver() { | ||
static RCDAudioFrameObserver sharedObserver; | ||
return &sharedObserver; | ||
} | ||
|
||
|
||
bool RCDAudioFrameObserver::onRecordAudioFrame(agora::media::IAudioFrameObserver::AudioFrame& audioFrame) { | ||
return true; | ||
} | ||
bool RCDAudioFrameObserver::onPlaybackAudioFrame(agora::media::IAudioFrameObserver::AudioFrame& audioFrame) { | ||
return true; | ||
} | ||
bool RCDAudioFrameObserver::onPlaybackAudioFrameBeforeMixing(unsigned int uid, agora::media::IAudioFrameObserver::AudioFrame& audioFrame) { | ||
NSString *userId = rcGetUserIdFromAgoraUID(uid); | ||
NSLog(@"the user id is %@", userId); | ||
return true; | ||
} |
166 changes: 0 additions & 166 deletions
166
ios-rongcallkit/RongCallKit/Extension/RCCallKitExtensionModel.m
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file modified
BIN
+55.4 KB
(100%)
ios-rongcallkit/framework/RongCallLib.framework/RongCallLib
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.