|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.telephony.media.provider.Base_Owner | +--javax.telephony.media.provider.Base_MediaService | +--javax.telephony.media.BasicMediaService
Implements MediaService and the basic Resource interfaces. Resource methods are delegated to the bound MediaGroup.
This class understands about binding and configuration, and knows how to delegate resource methods to whatever object or objects are bound to this one. And conversely understand how to register Listeners for each resource, and dispatch events from any of the resources to all of the Resource.Listeners.
The Resource methods in BasicMediaService are documented in the associated Resource interface definition.
Note: This class is documented as extending Base_MediaService. However, actual implementations may extend some other vendor specific class. In all cases, this class (or one of its super-classes) implements MediaService and the defined Resource interfaces.
Fields inherited from interface javax.telephony.media.MediaConstants |
e_OK, q_Duration, q_Standard, q_Stop |
Fields inherited from interface javax.telephony.media.ResourceConstants |
e_Disconnected, FOREVER, q_Disconnected, q_RTC, rtcc_Disconnected, rtcc_TriggerRTC, v_Forever |
Fields inherited from interface javax.telephony.media.CoderConstants |
v_24kADPCM, v_32kADPCM, v_44kADPCM, v_48k8BitLinear, v_48kALawPCM, v_48kMuLawPCM, v_64k8BitLinear, v_64kALawPCM, v_64kMuLawPCM, v_88k8BitLinear, v_88kALawPCM, v_88kMuLawPCM, v_ADPCM_24k, v_ADPCM_32k, v_ADPCM_44k, v_ADSI, v_ALawPCM_48k, v_ALawPCM_64k, v_ALawPCM_88k, v_ASCII, v_Linear8Bit_48k, v_Linear8Bit_64k, v_Linear8Bit_88k, v_MuLawPCM_48k, v_MuLawPCM_64k, v_MuLawPCM_88k, v_TDD |
Fields inherited from interface javax.telephony.media.RecorderConstants |
a_Beep, a_CoderTypes, a_FixedBeep, a_Pause, e_Coder, ev_Pause, ev_Record, ev_Resume, ev_Stop, p_Append, p_BeepFrequency, p_BeepLength, p_Coder, p_CoderTypes, p_EnabledEvents, p_MaxDuration, p_MinDuration, p_SilenceTerminationOn, p_SilenceTerminationThreshold, p_SilenceTruncationOn, p_SilenceTruncationThreshold, p_StartBeep, p_StartPaused, q_Silence, rtca_Pause, rtca_Resume, rtca_Stop, rtcc_RecordComplete, v_Class |
Fields inherited from interface javax.telephony.media.SignalDetectorConstants |
a_Buffering, a_BufferSize, a_DiscardOldest, a_PatternCount, ev_FlushBuffer, ev_Overflow, ev_Pattern, ev_RetrieveSignals, ev_SignalDetected, p_Buffering, p_BufferSize, p_DiscardOldest, p_Duration, p_EnabledEvents, p_Filter, p_InitialTimeout, p_InterSigTimeout, p_Mode, p_Pattern, p_PatternCount, q_Duration, q_InitialTimeout, q_InterSigTimeout, q_NumSignals, q_Pattern, rtca_FlushBuffer, rtca_Stop, rtcc_FlushBuffer, rtcc_Pattern, rtcc_RetrieveSignals, rtcc_SignalDetected, v_Class, v_Detecting, v_Idle |
Fields inherited from interface javax.telephony.media.SignalConstants |
p_SymbolChar, v_CED, v_CNG, v_DTMF0, v_DTMF1, v_DTMF2, v_DTMF3, v_DTMF4, v_DTMF5, v_DTMF6, v_DTMF7, v_DTMF8, v_DTMF9, v_DTMFA, v_DTMFB, v_DTMFC, v_DTMFD, v_DTMFHash, v_DTMFStar, v_Unknown |
Fields inherited from interface javax.telephony.media.SignalGeneratorConstants |
ev_SendSignals, v_Class |
Fields inherited from interface javax.telephony.media.DelegationConstants |
ev_Delegated, q_Released, q_Removed, q_Retrieved, q_Returned, tag_CatchAll, tag_CatchNone, tag_DestroyRequest, tag_NeverReturn, tag_NormalReturn, tag_RemoveSession, tag_SessionDeath, v_Released |
Constructor Summary | |
BasicMediaService()
Create an unbound MediaService, using the installation default MediaProvider. |
|
BasicMediaService(MediaProvider provider)
Create an unbound MediaService, using the given MediaProvider object. |
|
BasicMediaService(java.lang.String peerName,
java.lang.String providerString)
Create an unbound MediaService, using a MediaProvider identified by the two String arguments. |
Method Summary | |
PlayerEvent |
activateTTSDictionary(java.lang.String[] string0,
java.util.Dictionary dictionary1)
Activates a collection of TTS dictionaries. |
PlayerEvent |
adjustPlayerSpeed(Symbol symbol0)
Adjusts the speed of the current play function. |
PlayerEvent |
adjustPlayerVolume(Symbol symbol0)
Adjusts the volume the current play function. |
Async_PlayerEvent |
async_activateTTSDictionary(java.lang.String[] string0,
java.util.Dictionary dictionary1)
Non-blocking version of activateTTSDictionary(); |
Async_PlayerEvent |
async_adjustPlayerSpeed(Symbol symbol0)
Non-blocking version of Player.adjustPlayerSpeed. |
Async_PlayerEvent |
async_adjustPlayerVolume(Symbol symbol0)
Non-blocking version of Player.adjustPlayerVolume. |
Async_PlayerEvent |
async_deactivateTTSDictionary(java.lang.String[] string0,
java.util.Dictionary dictionary1)
Non-blocking version of deactivateTTSDictionary(); |
Async_SignalDetectorEvent |
async_flushBuffer()
Non-blocking version of flushBuffer(); Discard any Signals currently in the SignalDetector's internal Buffer. |
Async_PlayerEvent |
async_jumpPlayer(Symbol symbol0)
Non-blocking version of Player.jumpPlayer. |
Async_PlayerEvent |
async_loadTTSDictionary(java.lang.String[] string0,
java.util.Dictionary dictionary1)
Non-blocking version of loadTTSDictionary(); |
Async_PlayerEvent |
async_pausePlayer()
Non-blocking version of Player.pausePlayer. |
Async_RecorderEvent |
async_pauseRecorder()
Non-blocking version of Recorder.pauseRecorder. |
Async_PlayerEvent |
async_play(java.lang.String[] string0,
int int1,
RTC[] rtc2,
java.util.Dictionary dictionary3)
Non-blocking version of Play(); Play an array of MDOs named by Strings. |
Async_PlayerEvent |
async_play(java.lang.String string0,
int int1,
RTC[] rtc2,
java.util.Dictionary dictionary3)
Play a single MDO (Media Data Object) named by streamID. |
Async_RecorderEvent |
async_record(java.lang.String string0,
RTC[] rtc1,
java.util.Dictionary dictionary2)
Non-blocking verions of record(); |
Async_PlayerEvent |
async_resumePlayer()
Non-blocking version of Player.resumePlayer. |
Async_RecorderEvent |
async_resumeRecorder()
Non-blocking version of Recorder.resumeRecorder. |
Async_SignalDetectorEvent |
async_retrieveSignals(int int0,
Symbol[] symbol1,
RTC[] rtc2,
java.util.Dictionary dictionary3)
Non-blocking verions of retrieveSignals(); Retrieve some signals from the signal buffer. |
Async_SignalGeneratorEvent |
async_sendSignals(java.lang.String string0,
RTC[] rtc1,
java.util.Dictionary dictionary2)
Non-blocking version of sendSignals; Transmit a series of signals. |
Async_SignalGeneratorEvent |
async_sendSignals(Symbol[] symbol0,
RTC[] rtc1,
java.util.Dictionary dictionary2)
Non-blocking version of sendSignals(); Transmit a series of signals. |
Async_PlayerEvent |
async_stopPlayer()
Non-blocking version of Player.stopPlayer. |
Async_RecorderEvent |
async_stopRecorder()
Non-blocking version of Recorder.stopRecorder. |
Async_PlayerEvent |
async_unloadTTSDictionary(java.lang.String[] string0,
java.util.Dictionary dictionary1)
Non-blocking version of unloadTTSDictionary(); |
PlayerEvent |
deactivateTTSDictionary(java.lang.String[] string0,
java.util.Dictionary dictionary1)
Deactivates a collection of loaded TTS dictionaries. |
static MediaProvider |
findMediaProvider(java.lang.String peerName,
java.lang.String providerString)
Get a MediaProvider from the given Strings. |
SignalDetectorEvent |
flushBuffer()
Remove all signals from the signal buffer. |
PlayerEvent |
jumpPlayer(Symbol symbol0)
Jump forward or backward within a sequence of MDOs during a play. |
PlayerEvent |
loadTTSDictionary(java.lang.String[] string0,
java.util.Dictionary dictionary1)
Load a collection of TTS dictionaries into a Player. |
PlayerEvent |
pausePlayer()
Pause the current play. |
RecorderEvent |
pauseRecorder()
Pause the current record. |
PlayerEvent |
play(java.lang.String[] string0,
int int1,
RTC[] rtc2,
java.util.Dictionary dictionary3)
Play a sequence of MDOs (Media Data Objects) identified by the streamIDs. |
PlayerEvent |
play(java.lang.String string0,
int int1,
RTC[] rtc2,
java.util.Dictionary dictionary3)
Play a single MDO (Media Data Object) named by streamID. |
RecorderEvent |
record(java.lang.String string0,
RTC[] rtc1,
java.util.Dictionary dictionary2)
Record data from the Terminal into the named Media Data Object (MDO). |
PlayerEvent |
resumePlayer()
Resume the current play. |
RecorderEvent |
resumeRecorder()
Resume the current record. |
SignalDetectorEvent |
retrieveSignals(int int0,
Symbol[] symbol1,
RTC[] rtc2,
java.util.Dictionary dictionary3)
Retrieve some signals from the signal buffer. |
SignalGeneratorEvent |
sendSignals(java.lang.String string0,
RTC[] rtc1,
java.util.Dictionary dictionary2)
Transmit a series of signals out the Terminal to the network. |
SignalGeneratorEvent |
sendSignals(Symbol[] symbol0,
RTC[] rtc1,
java.util.Dictionary dictionary2)
Transmit a series of signals out the Terminal to the network. |
PlayerEvent |
stopPlayer()
Stop the current play. |
RecorderEvent |
stopRecorder()
Stop the current record. |
PlayerEvent |
unloadTTSDictionary(java.lang.String[] string0,
java.util.Dictionary dictionary1)
Unloads a collection of TTS dictionaries from a Player. |
Methods inherited from class javax.telephony.media.provider.Base_Owner |
addListener, removeListener, setExceptionHandler |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.telephony.media.MediaService |
addListener, addMediaListener, bindAndConnect, bindToCall, bindToServiceName, bindToTerminal, bindToTerminalName, cancelBindRequest, configure, getConfiguration, getMediaProvider, getParameters, getTerminal, getTerminalName, getUserValues, isBound, release, releaseToDestroy, releaseToService, releaseToTag, removeListener, removeMediaListener, setParameters, setUserDictionary, setUserValues, stop, triggerRTC |
Constructor Detail |
public BasicMediaService()
public BasicMediaService(MediaProvider provider)
findMediaProvider(peerName, providerString)
;provider
- a MediaProvider instancepublic BasicMediaService(java.lang.String peerName, java.lang.String providerString) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, ProviderUnavailableException
peerName names a Class that implements MediaPeer. If peerName is null, several alternatives are tried:
The format of a providerString
as used to obtain a MediaProvider from the MediaPeer
is vendor specific.
The format of a providerString
as used to obtain a Jtapi [core/Call] Provider
is documented in
JtapiPeer.getProvider(String)
.
peerName
- the name of a Class that implements MediaPeer.providerString
- a "login" string for that MediaPeer.java.lang.ClassNotFoundException
- if MediaPeer class is not foundjava.lang.IllegalAccessException
- if MediaPeer class is not accessiblejava.lang.InstantiationException
- if MediaPeer class does not instantiateProviderUnavailableException
- if Provider is not availableClassCastException
- if Provider instance is not a MediaProviderMethod Detail |
public static MediaProvider findMediaProvider(java.lang.String peerName, java.lang.String providerString) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, ProviderUnavailableException
If the given peerName is null:
Note: This method can be used as a MediaProvider Factory.
For example:
MediaProvider mp = BasicMediaService.findMediaProvider(...);
peerName
- name of the MediaPeer ClassproviderString
- a String that identifies
the (MediaPeer-specific) MediaProvider and other information.java.lang.ClassNotFoundException
- if MediaPeer class is not foundjava.lang.IllegalAccessException
- if MediaPeer class is not accessiblejava.lang.InstantiationException
- if MediaPeer class does not instantiateProviderUnavailableException
- if Provider is not availableClassCastException
- if Provider instance is not a MediaProviderpublic PlayerEvent play(java.lang.String string0, int int1, RTC[] rtc2, java.util.Dictionary dictionary3) throws MediaResourceException
Player
play
in interface Player
javax.telephony.media.Player
streamID
- a String naming the MDO to be played.offset
- int number milliseconds into the MDO
at which play is to start.rtc
- Array of RTC that effect this play.optargs
- a Dictionary of optional arguments.MediaResourceException
- if requested operation fails.DisconnectedException
- if Terminal is disconnected.public PlayerEvent play(java.lang.String[] string0, int int1, RTC[] rtc2, java.util.Dictionary dictionary3) throws MediaResourceException
Player
This method returns when the MDO list is completely played, or when the playing has been stopped. (Player Pause does not cause this method to return.) Play returns a PlayerEvent. The condition that caused the play to stop is included in the completion event. RTC actions can alter the course of the play without the intervention of the application. Optional arguments can alter the characteristics of the play.
Exceptions are thrown if pre- or post- conditions are not satisfied
Pre-conditions:
Post-conditions:
play
in interface Player
javax.telephony.media.Player
streamIDs
- a String[] naming the MDO list to be played.offset
- number of milliseconds into the MDO list at
which play is to start, offset may span several items in streamIDs.rtc
- Array of RTC that effect this play.optargs
- a Dictionary of optional arguments.MediaResourceException
- if requested operation fails.DisconnectedException
- if Terminal is disconnected.public PlayerEvent adjustPlayerSpeed(Symbol symbol0) throws MediaResourceException
Player
Parameter adjustment specifies the type of speed adjustment desired.
This is functionally equivalent to the RTC actions.
Note: the value of p_SpeedChange is in units of percent deviation from normal.
Note: this is functionally equivalent to the RTC actions, except that it generates a Completion Event instead of a non-transactional Event.
adjustPlayerSpeed
in interface Player
javax.telephony.media.Player
adjustment
- an RTC Symbol specifying the type of change.MediaResourceException
- if speed cannot be adjustedpublic PlayerEvent adjustPlayerVolume(Symbol symbol0) throws MediaResourceException
Player
Parameter adjustment specifies the type of volume adjustment desired.
This is functionally equivalent to the RTC actions.
Note: the value of p_VolumeChange in in units of dB from the normal volume.
Note: this is functionally equivalent to the RTC actions, except that it generates a Completion Event instead of a non-transactional Event.
adjustPlayerVolume
in interface Player
javax.telephony.media.Player
adjustment
- an RTC Symbol specifying the type of change.MediaResourceException
- if volume cannot be adjustedpublic PlayerEvent jumpPlayer(Symbol symbol0) throws MediaResourceException
Player
Parameter jump specifies the type of jump desired. It is one of the rtca_Jump<Type><Units> Symbols.
For example: rtca_JumpForwardTime.
This is functionally equivalent to the Jump RTC actions, except that it generates a Completion Event instead of a non-transactional Event.
jumpPlayer
in interface Player
javax.telephony.media.Player
jump
- a Symbol specifying the type of jump.MediaResourceException
- if the jump cannot be donepublic PlayerEvent pausePlayer() throws MediaResourceException
Player
This is functionally equivalent to rtca_Pause, except that it generates a Completion Event instead of a non-transactional Event.
pausePlayer
in interface Player
javax.telephony.media.Player
MediaResourceException
- if pause cannot be donepublic PlayerEvent resumePlayer() throws MediaResourceException
Player
This is functionally equivalent to rtca_Resume, except that it generates a Completion Event instead of a non-transactional Event.
resumePlayer
in interface Player
javax.telephony.media.Player
MediaResourceException
- if resume cannot be donepublic PlayerEvent stopPlayer() throws MediaResourceException
Player
This is functionally equivalent to rtca_Stop, except that it generates a Completion Event instead of a non-transactional Event.
stopPlayer
in interface Player
javax.telephony.media.Player
MediaResourceException
- if stop cannot be donepublic PlayerEvent loadTTSDictionary(java.lang.String[] string0, java.util.Dictionary dictionary1) throws MediaResourceException
TTSPlayer
loadTTSDictionary
in interface TTSPlayer
javax.telephony.media.TTSPlayer
dictNames
- a String[] of DataObject fullNames.optargs
- a Dictionary of optional args.MediaResourceException
- if requested operation fails.public PlayerEvent activateTTSDictionary(java.lang.String[] string0, java.util.Dictionary dictionary1) throws MediaResourceException
TTSPlayer
activateTTSDictionary
in interface TTSPlayer
javax.telephony.media.TTSPlayer
dictNames
- a String[] of DataObject fullNames.optargs
- a Dictionary of optional args.MediaResourceException
- if requested operation fails.public PlayerEvent deactivateTTSDictionary(java.lang.String[] string0, java.util.Dictionary dictionary1) throws MediaResourceException
TTSPlayer
deactivateTTSDictionary
in interface TTSPlayer
javax.telephony.media.TTSPlayer
dictNames
- a String[] of DataObject fullNames.optargs
- a Dictionary of optional args.MediaResourceException
- if requested operation fails.public PlayerEvent unloadTTSDictionary(java.lang.String[] string0, java.util.Dictionary dictionary1) throws MediaResourceException
TTSPlayer
unloadTTSDictionary
in interface TTSPlayer
javax.telephony.media.TTSPlayer
dictNames
- a String[] of DataObject fullNames.optargs
- a Dictionary of optional args.MediaResourceException
- if requested operation fails.public RecorderEvent record(java.lang.String string0, RTC[] rtc1, java.util.Dictionary dictionary2) throws MediaResourceException
Recorder
record()
encodes the media stream
from the bound Terminal, and stores the result in
the Media Stream Container identified by
the given streamID
.
If the MDO does not exist, it is created and associated
with the coder type specified by parameter p_Coder
.
If the MDO does exist, the recording is made using
the coder type associated with that DSD.
If the Recorder does not support the indicated Coder,
record()
throws a MediaResourceException
,
indicating e_Coder
.
This method returns when the recording stops
because of timeout or an RTC action.
(Pause/Resume does not cause this method to return.)
The condition that caused recording to stop is available from the
completion event using getQualifier
.
The optargs
argument specifies values for Recorder
parameters for the duration of this record operation.
For example, p_Coder
or p_BeepStart
can be overridden for a single method invocation.
Exceptions are thrown if pre- or post- conditions are not satisfied
Pre-conditions:
p_SilenceThreshold
detectedrtca_Stop
triggeredrecord
in interface Recorder
javax.telephony.media.Recorder
streamID
- the String name of the MDO where data is to be stored.rtc
- an Array of RTC (Run-Time-Control) objectsoptargs
- a Dictionary of optional argumentsMediaResourceException
- if requested operation fails.DisconnectedException
- if Terminal is disconnected.public RecorderEvent pauseRecorder() throws MediaResourceException
Recorder
This is functionally equivalent to rtca_Pause, except that it generates a Completion Event instead of a non-transactional Event.
pauseRecorder
in interface Recorder
javax.telephony.media.Recorder
MediaResourceException
- public RecorderEvent resumeRecorder() throws MediaResourceException
Recorder
This is functionally equivalent to rtca_Resume, except that it generates a Completion Event instead of a non-transactional Event.
resumeRecorder
in interface Recorder
javax.telephony.media.Recorder
MediaResourceException
- public RecorderEvent stopRecorder() throws MediaResourceException
Recorder
This is functionally equivalent to rtca_Stop, except that it generates a Completion Event instead of a non-transactional Event.
stopRecorder
in interface Recorder
javax.telephony.media.Recorder
MediaResourceException
- public SignalDetectorEvent flushBuffer() throws MediaResourceException
SignalDetector
This prevents buffer overflow, and synchronizes the pattern matchers.
The signals flushed may be accessed
using Event.getSignalBuffer() or Event.getSignalString().
If the flushed signals are not available,
then these methods return null
.
This is conceptually equivalent to:
retrieveSignals((p_BufferSize), null, null, {p_Duration=0});
but flushBuffer() also resets all the pattern matchers.
Note:
flushBuffer is also available using rtca_FlushBuffer
.
flushBuffer
in interface SignalDetector
javax.telephony.media.SignalDetector
MediaResourceException
- if requested operation fails.public SignalDetectorEvent retrieveSignals(int int0, Symbol[] symbol1, RTC[] rtc2, java.util.Dictionary dictionary3) throws MediaResourceException
SignalDetector
numSignals
signals are
in the signal buffer (and removes them). May return with fewer than
numSignals
when some other terminating condition
occurs (rtca_Stop
, a Pattern is detected, or timeout).
In that case, the method returns and removes all the signals
from the signal buffer. If (numSignals == -1)
, then
this method returns only when some other termination
condition occurs.
The terminating conditions are controlled by the arguments
patterns
and rtc
, and various
timeout parameters.
patterns
is an array of Symbols, with an entry for
each Pattern to enable.
If the patterns
array contains a pattern Symbol
then recognition of that pattern is treated as
a terminating condition for retrieveSignals()
.
If patterns
is null, then pattern recognition is not
considered as a terminating condition.
retrieveSignals
also terminates if any of the
p_InitialTimeout
,
p_InterSigTimeout
,
p_Duration
timeouts are exceeded. These times are relative to the start
of the retrieveSignals
operation.
These parameters can be set with setParameters
or in the optargs
argument.
To get the retrieved signals, invoke getSignalBuffer()
on the SignalDetectorEvent returned from retrieveSignals
.
If retrieveSignals
can not return a signal buffer,
it throws an Exception,
so retrieveSignals(...).getSignalBuffer()
is safe.
The Signals are accessed as elements of the Symbol[] returned by
getSignalBuffer
or char elements of the String returned by
getSignalString
.
Example:
String nextDTMF = retrieveSignals(1,null,null,null).getSignalBuffer();
Note:
Due to the effects of overflow and typeahead synchronization,
the more reliable way to get the signals that matched a pattern
is from the ev_PatternMatched
event in the
onPatternMatched
method.
retrieveSignals
in interface SignalDetector
javax.telephony.media.SignalDetector
numSignals
- the int number of signals to be retrieved.patterns
- indicates which Patterns should terminate retrieval.rtc
- an Array of RTC (Run Time Control) objects.
The RTC actions may be rtca_Stop
or rtca_FlushBuffer
.optargs
- a Dictionary of optional arguments.
p_Pattern[i]
may be set as transient parameters.MediaResourceException
- if requested operation fails.public SignalGeneratorEvent sendSignals(Symbol[] symbol0, RTC[] rtc1, java.util.Dictionary dictionary2) throws MediaResourceException
SignalGenerator
Each signal is defined by a Symbol in the Symbol[].
Note: This method may be less efficient than using the String form of sendSignals.
sendSignals
in interface SignalGenerator
javax.telephony.media.SignalGenerator
signals
- an array of Symbols that defines a signal.rtc
- an array of RTC objects that controls this transactions.optargs
- a Dictionary of optional argumentsMediaResourceException
- if this request fails.DisconnectedException
- if Terminal is disconnected.public SignalGeneratorEvent sendSignals(java.lang.String string0, RTC[] rtc1, java.util.Dictionary dictionary2) throws MediaResourceException
SignalGenerator
Each signal is defined by a single char in the String.
Note: The AIA inserts spaces for presentation at the S.200/S.300 layers
sendSignals
in interface SignalGenerator
javax.telephony.media.SignalGenerator
signals
- an String containing chars representing each signal.rtc
- an array of RTC objects that controls this transactions.optargs
- a Dictionary of optional argumentsMediaResourceException
- if this request fails.DisconnectedException
- if Terminal is disconnected.public Async_PlayerEvent async_play(java.lang.String string0, int int1, RTC[] rtc2, java.util.Dictionary dictionary3)
Async_Player
async_play()
with a String[]
of length one, containing the given streamID.async_play
in interface Async_Player
javax.telephony.media.async.Async_Player
streamID
- a String naming the MDO to be played.offset
- int number milliseconds into the MDO
at which play is to start.rtc
- Array of RTC that effect this play.optargs
- a Dictionary of optional arguments.Player.play(String, int, RTC[], Dictionary)
public Async_PlayerEvent async_play(java.lang.String[] string0, int int1, RTC[] rtc2, java.util.Dictionary dictionary3)
Async_Player
Completion event is sent to Async_PlayerListener.
async_play
in interface Async_Player
javax.telephony.media.async.Async_Player
streamIDs
- a String[] naming the MDO list to be played.offset
- number of milliseconds into the MDO list at
which play is to start, offset may span several items in streamIDs.rtc
- Array of RTC that effect this play.optargs
- a Dictionary of optional arguments.Player.play(String[], int, RTC[], Dictionary)
public Async_PlayerEvent async_adjustPlayerSpeed(Symbol symbol0)
Async_Player
async_adjustPlayerSpeed
in interface Async_Player
javax.telephony.media.async.Async_Player
adjustment
- a Symbol specifying the type of adjustmentPlayer.adjustPlayerSpeed(javax.telephony.media.Symbol)
public Async_PlayerEvent async_adjustPlayerVolume(Symbol symbol0)
Async_Player
async_adjustPlayerVolume
in interface Async_Player
javax.telephony.media.async.Async_Player
adjustment
- a Symbol specifying the type of adjustmentPlayer.adjustPlayerVolume(javax.telephony.media.Symbol)
public Async_PlayerEvent async_jumpPlayer(Symbol symbol0)
Async_Player
async_jumpPlayer
in interface Async_Player
javax.telephony.media.async.Async_Player
jump
- a Symbol specifying the type of jumpPlayer.jumpPlayer(javax.telephony.media.Symbol)
public Async_PlayerEvent async_pausePlayer()
Async_Player
async_pausePlayer
in interface Async_Player
javax.telephony.media.async.Async_Player
Player.pausePlayer()
public Async_PlayerEvent async_resumePlayer()
Async_Player
async_resumePlayer
in interface Async_Player
javax.telephony.media.async.Async_Player
Player.resumePlayer()
public Async_PlayerEvent async_stopPlayer()
Async_Player
async_stopPlayer
in interface Async_Player
javax.telephony.media.async.Async_Player
Player.stopPlayer()
public Async_PlayerEvent async_loadTTSDictionary(java.lang.String[] string0, java.util.Dictionary dictionary1)
Async_TTSPlayer
Load a collection of TTS dictionaries into a Player. The dictionary is placed at the top of the dictionary stack, and is deactivated.
async_loadTTSDictionary
in interface Async_TTSPlayer
javax.telephony.media.async.Async_TTSPlayer
dictNames
- a String[] of DataObject fullNames.optargs
- a Dictionary of optional args.public Async_PlayerEvent async_activateTTSDictionary(java.lang.String[] string0, java.util.Dictionary dictionary1)
Async_TTSPlayer
Activates a collection of TTS dictionaries. The dictionaries must already be loaded.
async_activateTTSDictionary
in interface Async_TTSPlayer
javax.telephony.media.async.Async_TTSPlayer
dictNames
- a String[] of DataObject fullNames.optargs
- a Dictionary of optional args.public Async_PlayerEvent async_deactivateTTSDictionary(java.lang.String[] string0, java.util.Dictionary dictionary1)
Async_TTSPlayer
Deactivates a collection of loaded TTS dictionaries.
async_deactivateTTSDictionary
in interface Async_TTSPlayer
javax.telephony.media.async.Async_TTSPlayer
dictNames
- a String[] of DataObject fullNames.optargs
- a Dictionary of optional args.public Async_PlayerEvent async_unloadTTSDictionary(java.lang.String[] string0, java.util.Dictionary dictionary1)
Async_TTSPlayer
Unloads a collection of TTS dictionaries from a Player.
async_unloadTTSDictionary
in interface Async_TTSPlayer
javax.telephony.media.async.Async_TTSPlayer
dictNames
- a String[] of DataObject fullNames.optargs
- a Dictionary of optional args.public Async_RecorderEvent async_record(java.lang.String string0, RTC[] rtc1, java.util.Dictionary dictionary2)
Async_Recorder
Record data from the Terminal into the named
Media Data Object (MDO).
Encode and store data from the telephony network.
record()
encodes the media stream
from the bound Terminal, and stores the result in
the Media Stream Container identified by
the given streamID
.
async_record
in interface Async_Recorder
javax.telephony.media.async.Async_Recorder
streamID
- the String name of a MDO where recording is to be storedrtc
- an Array of RTC (Run-Time-Control) objectsoptargs,
- a Dictionary of optional argumentsRecorder.record(java.lang.String, javax.telephony.media.RTC[], java.util.Dictionary)
public Async_RecorderEvent async_pauseRecorder()
Async_Recorder
async_pauseRecorder
in interface Async_Recorder
javax.telephony.media.async.Async_Recorder
Recorder.pauseRecorder()
public Async_RecorderEvent async_resumeRecorder()
Async_Recorder
async_resumeRecorder
in interface Async_Recorder
javax.telephony.media.async.Async_Recorder
Recorder.resumeRecorder()
public Async_RecorderEvent async_stopRecorder()
Async_Recorder
async_stopRecorder
in interface Async_Recorder
javax.telephony.media.async.Async_Recorder
Recorder.stopRecorder()
public Async_SignalDetectorEvent async_retrieveSignals(int int0, Symbol[] symbol1, RTC[] rtc2, java.util.Dictionary dictionary3)
Async_SignalDetector
async_retrieveSignals
in interface Async_SignalDetector
javax.telephony.media.async.Async_SignalDetector
numSignals
- the int number of signals to be retrieved.patterns
- indicates which Patterns should terminate retrieval.rtc
- an Array of RTC (Run Time Control) objects.
The RTC actions may be rtca_Stop or rtca_FlushBuffer.optargs
- a Dictionary of optional arguments.
p_Pattern[i]
may be set here as temporary parameters.public Async_SignalDetectorEvent async_flushBuffer()
Async_SignalDetector
async_flushBuffer
in interface Async_SignalDetector
javax.telephony.media.async.Async_SignalDetector
public Async_SignalGeneratorEvent async_sendSignals(java.lang.String string0, RTC[] rtc1, java.util.Dictionary dictionary2)
Async_SignalGenerator
Each signal is defined by a char in the String.
async_sendSignals
in interface Async_SignalGenerator
javax.telephony.media.async.Async_SignalGenerator
signals
- an array of Symbols that defines a signal.rtc
- an array of RTC objects that controls this transactions.optargs
- a Dictionary of optional argumentspublic Async_SignalGeneratorEvent async_sendSignals(Symbol[] symbol0, RTC[] rtc1, java.util.Dictionary dictionary2)
Async_SignalGenerator
Each signal is defined by a Symbol in the Symbol[].
async_sendSignals
in interface Async_SignalGenerator
javax.telephony.media.async.Async_SignalGenerator
signals
- an array of Symbols that defines a signal.rtc
- an array of RTC objects that controls this transactions.optargs
- a Dictionary of optional arguments
|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |