Avaya Client Services API Reference (iOS)

- Main Page
- Classes
- Files
- Related Pages

- Class List
- Class Index
- Class Hierarchy
- Class Members

Instance Methods | Properties | List of all members
<CSAudioFilePlayer> Protocol Reference

Audio file player control interface. More...

`#import <CSAudioFilePlayer.h>`

Inherits <NSObject>.

## Instance Methods
(BOOL) | - startPlaying
| Signal the player to start the tone/file. More...
(BOOL) | - stopPlaying
| Signal the player to stop the tone/file. More...
(BOOL) | - isPlaying
| Query the player status. More...

## Properties
CSAudioTone | tone
| Audio tone to play. More...
NSString * | file
| Audio file to play. More...
BOOL | isLoop
| Audio tone/file looping flag. More...
int | durationMs
| Audio tone/file duration. More...
int | gain
| Audio tone/file gain, in range [0, 255]. More...
BOOL | useSpeaker
| Destintion to play tone/file. More...
BOOL | useStream
| Play tone/file to stream. More...
id< CSAudioFilePlayerListener > | audioFilePlayerListener
| Listener for audio tone/file start and stop events. More...

## Detailed Description

Audio file player control interface.

## Method Documentation

- (BOOL) isPlaying |  |  |

Query the player status.

Returns
  TRUE if playing; otherwise FALSE.

- (BOOL) startPlaying |  |  |

Signal the player to start the tone/file.

Returns
  TRUE if player starts successfully; otherwise FALSE.

- (BOOL) stopPlaying |  |  |

Signal the player to stop the tone/file.

Returns
  TRUE if player stops successfully; otherwise FALSE.

## Property Documentation

- (id<CSAudioFilePlayerListener>) audioFilePlayerListener
| readwritenonatomicweak

Listener for audio tone/file start and stop events.

- (int) durationMs
| readwritenonatomicassign

Audio tone/file duration.

Number of milliseconds to play tone/file; zero to play the entire tone/file.

- (NSString*) file
| readwritenonatomiccopy

Audio file to play.

- (int) gain
| readwritenonatomicassign

Audio tone/file gain, in range [0, 255].

- (BOOL) isLoop
| readwritenonatomicassign

Audio tone/file looping flag.

TRUE to loop forever, FALSE to play once.

- (CSAudioTone) tone
| readwritenonatomicassign

Audio tone to play.

Resources for these tones must be available at CSVoIPConfigurationAudio toneFilePath.

- (BOOL) useSpeaker
| readwritenonatomicassign

Destintion to play tone/file.

TRUE to play on speakers, FALSE to mix with microphone. Can be overridden by useMicrophone

- (BOOL) useStream
| readwritenonatomicassign

Play tone/file to stream.

TRUE to mix to stream, FALSE to not mix to stream.

The documentation for this protocol was generated from the following file:

- CSAudioFilePlayer.h