Inherits from UIViewController
Declared in SCAudioPlayerController.h
SCAudioPlayerController.mm

Overview

Presents the standard C2Call SDK Audio Player Controller.

Properties

btnPlay

Play Button.

@property (nonatomic, weak) IBOutlet UIButton *btnPlay

Declared In

SCAudioPlayerController.h

labelDuration

Shows the audio file duration.

@property (nonatomic, weak) IBOutlet UILabel *labelDuration

Declared In

SCAudioPlayerController.h

labelTime

Shows the current play time.

@property (nonatomic, weak) IBOutlet UILabel *labelTime

Declared In

SCAudioPlayerController.h

levelMeter

Level Meter.

@property (nonatomic, weak) IBOutlet CALevelMeter *levelMeter

Declared In

SCAudioPlayerController.h

messageKey

Rich Media Key of the audio file.

@property (nonatomic, strong) NSString *messageKey

Declared In

SCAudioPlayerController.h

progress

Shows play progress.

@property (nonatomic, weak) IBOutlet UIProgressView *progress

Declared In

SCAudioPlayerController.h

Instance Methods

audioPlayerDidFinishPlaying:successfully:

- (void)audioPlayerDidFinishPlaying:(id)player successfully:(id)flag

contentAction:

Shows the default content menu using SCPopupMenu.

- (IBAction)contentAction:(id)sender

Parameters

sender
  • The initiator of the action

Discussion

Default Implementation: SCPopupMenu *cv = [SCPopupMenu popupMenu:self];

[cv addChoiceWithName:NSLocalizedString(@"Forward", @"MenuItem") andSubTitle:NSLocalizedString(@"Forward to another FriendCaller user", @"Button") andIcon:[UIImage imageNamed:@"ico_forward"] andCompletion:^{
    [self forwardMessage:nil];
}];

[cv addCancelWithName:NSLocalizedString(@"Cancel", @"Button") andCompletion:^{

}];
[cv showMenu];

Declared In

SCAudioPlayerController.h

dealloc

- (void)dealloc

didReceiveMemoryWarning

- (void)didReceiveMemoryWarning

forwardMessage:

Forward VoiceMail.

- (IBAction)forwardMessage:(id)sender

Parameters

sender
  • The initiator of the action

Declared In

SCAudioPlayerController.h

initAudioPlayer

- (void)initAudioPlayer

playTimer:

- (void)playTimer:(id)t

stopAll

- (void)stopAll

togglePlayback:

Start / Stop Playback.

- (IBAction)togglePlayback:(id)sender

Parameters

sender
  • The initiator of the action

Declared In

SCAudioPlayerController.h

updatePlayTime

- (void)updatePlayTime

viewDidAppear:

- (void)viewDidAppear:(id)animated

viewDidDisappear:

- (void)viewDidDisappear:(id)animated

viewDidLoad

- (void)viewDidLoad

viewDidUnload

- (void)viewDidUnload

viewWillDisappear:

- (void)viewWillDisappear:(id)animated