Skip to content

Commit

Permalink
Release RongCloud CallKit SDK 2.8.21
Browse files Browse the repository at this point in the history
  • Loading branch information
RongRobot committed Nov 3, 2017
1 parent 6b09b73 commit 3050900
Show file tree
Hide file tree
Showing 139 changed files with 7,234 additions and 8,023 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0730"
LastUpgradeVersion = "0900"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -26,6 +26,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
Expand All @@ -36,6 +37,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
#ifndef RCDAudioFrameObserver_hpp
#define RCDAudioFrameObserver_hpp

#include <RongCallLib/IVideoFrameObserver.h>
#import <UIKit/UIKit.h>
#include <stdio.h>
#import <AgoraRtcEngineKit/IAgoraMediaEngine.h>
#import <RongCallLib/IVideoFrameObserver.h>
#import <UIKit/UIKit.h>
#import <stdio.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 onMixedAudioFrame(agora::media::IAudioFrameObserver::AudioFrame &audioFrame);
bool onPlaybackAudioFrameBeforeMixing(unsigned int uid, agora::media::IAudioFrameObserver::AudioFrame& audioFrame);
public:
static RCDAudioFrameObserver *sharedObserver();
bool onRecordAudioFrame(agora::media::IAudioFrameObserver::AudioFrame &audioFrame);
bool onPlaybackAudioFrame(agora::media::IAudioFrameObserver::AudioFrame &audioFrame);
bool onMixedAudioFrame(agora::media::IAudioFrameObserver::AudioFrame &audioFrame);
bool onPlaybackAudioFrameBeforeMixing(unsigned int uid, agora::media::IAudioFrameObserver::AudioFrame &audioFrame);
};

#endif /* RCDAudioFrameObserver_hpp */
23 changes: 12 additions & 11 deletions ios-rongcallkit/RongCallKit/AudioObserver/RCDAudioFrameObserver.mm
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,22 @@
#include "RCDAudioFrameObserver.h"

RCDAudioFrameObserver *RCDAudioFrameObserver::sharedObserver() {
static RCDAudioFrameObserver sharedObserver;
return &sharedObserver;
static RCDAudioFrameObserver sharedObserver;
return &sharedObserver;
}

bool RCDAudioFrameObserver::onRecordAudioFrame(agora::media::IAudioFrameObserver::AudioFrame& audioFrame) {
return true;
bool RCDAudioFrameObserver::onRecordAudioFrame(agora::media::IAudioFrameObserver::AudioFrame &audioFrame) {
return true;
}
bool RCDAudioFrameObserver::onPlaybackAudioFrame(agora::media::IAudioFrameObserver::AudioFrame& audioFrame) {
return true;
bool RCDAudioFrameObserver::onPlaybackAudioFrame(agora::media::IAudioFrameObserver::AudioFrame &audioFrame) {
return true;
}
bool RCDAudioFrameObserver::onMixedAudioFrame(agora::media::IAudioFrameObserver::AudioFrame &audioFrame) {
return true;
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;
bool RCDAudioFrameObserver::onPlaybackAudioFrameBeforeMixing(
unsigned int uid, agora::media::IAudioFrameObserver::AudioFrame &audioFrame) {
NSString *userId = rcGetUserIdFromAgoraUID(uid);
NSLog(@"the user id is %@", userId);
return true;
}
Loading

0 comments on commit 3050900

Please sign in to comment.