public interface MediaService
Unsupported scenarios include:
1. If you invoke a media operation after the callIntercepted callback without having invoked
Call.enableMediaBeforeAnswer, an exception will not be thrown back to your code.
Instead an exception will appear in the Collaboration Environment platform log files.
A service obtains an instance of this class by invoking the MediaFactory
.createMediaService method.
Modifier and Type | Method and Description |
---|---|
UUID |
collect(Participant participant,
DigitOptions digitOptions,
MediaListener mediaListener)
Collects a pattern of digits from a participant on a call.
|
UUID |
play(Participant participant,
PlayItem playItem,
MediaListener mediaListener)
Plays a list of audio files to a participant on a call.
|
UUID |
promptAndCollect(Participant participant,
PlayItem playItem,
DigitOptions digitOptions,
MediaListener mediaListener)
Plays a list of prompt resources to a participant on a call and then
collects digits from the same participant.
|
void |
stop(Participant participant,
UUID requestId)
Stops a current play or digit collection or VoiceXMLDialog operation for
the participant
|
UUID play(Participant participant, PlayItem playItem, MediaListener mediaListener)
participant
- the files will be played to this participant on the callplayItem
- the list of files and their attributesmediaListener
- the listener that receives media eventsUUID collect(Participant participant, DigitOptions digitOptions, MediaListener mediaListener)
participant
- the files will be played to this participant on the calldigitOptions
- attributes for digit collectionmediaListener
- the listener that receives media eventsUUID promptAndCollect(Participant participant, PlayItem playItem, DigitOptions digitOptions, MediaListener mediaListener)
participant
- the files will be played to this participant on the callplayItem
- attribute for the resource to play before digit collectiondigitOptions
- attributes for digit collectionmediaListener
- the listener that receives media eventsvoid stop(Participant participant, UUID requestId)
requestId
- universal unique identifier used to identify a media operationCopyright © 2014 Avaya. All Rights Reserved.