Skip to content
This repository has been archived by the owner on Jan 18, 2020. It is now read-only.

Commit

Permalink
Update for Voice 2.0.0-beta16 release (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobiechen-twilio committed Sep 22, 2017
1 parent 5086e07 commit 3aeb524
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions ObjCVoiceCallKitQuickstart/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,13 @@ - (void)providerDidBegin:(CXProvider *)provider {
- (void)provider:(CXProvider *)provider didActivateAudioSession:(AVAudioSession *)audioSession {
NSLog(@"provider:didActivateAudioSession:");

[[TwilioVoice sharedInstance] startAudioDevice];
[[TwilioVoice sharedInstance] startAudio];
}

- (void)provider:(CXProvider *)provider didDeactivateAudioSession:(AVAudioSession *)audioSession {
NSLog(@"provider:didDeactivateAudioSession:");

[[TwilioVoice sharedInstance] audioSessionDeactivated];
[[TwilioVoice sharedInstance] stopAudio];
}

- (void)provider:(CXProvider *)provider timedOutPerformingAction:(CXAction *)action {
Expand Down Expand Up @@ -330,8 +330,6 @@ - (void)provider:(CXProvider *)provider performAnswerCallAction:(CXAnswerCallAct
- (void)provider:(CXProvider *)provider performEndCallAction:(CXEndCallAction *)action {
NSLog(@"provider:performEndCallAction:");

[[TwilioVoice sharedInstance] stopAudioDevice];

if (self.callInvite && self.callInvite.state == TVOCallInviteStatePending) {
[self.callInvite reject];
self.callInvite = nil;
Expand Down
2 changes: 1 addition & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source 'https://github.com/CocoaPods/Specs.git'
workspace 'ObjCVoiceQuickstart'

abstract_target 'TwilioVoice' do
pod 'TwilioVoice', '2.0.0-beta15'
pod 'TwilioVoice', '2.0.0-beta16'

target 'ObjCVoiceQuickstart' do
platform :ios, '8.1'
Expand Down

0 comments on commit 3aeb524

Please sign in to comment.