Difference between revisions of "PEC-Developer/Current/SCAPI/MediaNamespace"
From Genesys Documentation
(Published) |
|||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
|DisplayName=Media namespace | |DisplayName=Media namespace | ||
|TocName=Media namespace | |TocName=Media namespace | ||
− | |Context=Learn about the Media namespace methods and type definitions in the Service Client API | + | |Context=Learn about the Media namespace methods and type definitions in the Service Client API. |
|ComingSoon=No | |ComingSoon=No | ||
|Platform=GenesysEngage-cloud | |Platform=GenesysEngage-cloud | ||
Line 19: | Line 19: | ||
{{{!}} | {{{!}} | ||
!Signature | !Signature | ||
− | {{!}}<static> getMediaList() → {Array.<{{Link-SomewhereInThisManual|topic=MediaNamespace|anchor=State|display text=media.Media}}>} | + | {{!}}<static> getMediaList(succeeded, failed) → {Array.<{{Link-SomewhereInThisManual|topic=MediaNamespace|anchor=State|display text=media.Media}}>} |
{{!}}- | {{!}}- | ||
!Description | !Description | ||
{{!}}Get the list of media with attributes. | {{!}}Get the list of media with attributes. | ||
+ | {{!}}- | ||
+ | !Parameters | ||
+ | {{!}} | ||
+ | {{{!}} | ||
+ | !Name | ||
+ | !Type | ||
+ | !Description | ||
+ | {{!}}- | ||
+ | {{!}}succeeded | ||
+ | {{!}}function | ||
+ | {{!}}A function called when the operation succeeds. | ||
+ | {{!}}- | ||
+ | {{!}}failed | ||
+ | {{!}}function | ||
+ | {{!}}A function called when the operation fails. | ||
+ | {{!}}} | ||
{{!}}- | {{!}}- | ||
!Returns | !Returns | ||
Line 31: | Line 47: | ||
{{{!}} | {{{!}} | ||
!Signature | !Signature | ||
− | {{!}}<static> getMediaByName(''name'') | + | {{!}}<static> getMediaByName(''name'', succeeded, failed) |
{{!}}- | {{!}}- | ||
!Description | !Description | ||
Line 46: | Line 62: | ||
{{!}}string | {{!}}string | ||
{{!}}The media name. | {{!}}The media name. | ||
+ | {{!}}- | ||
+ | {{!}}succeeded | ||
+ | {{!}}function | ||
+ | {{!}}A function called when the operation succeeds. | ||
+ | {{!}}- | ||
+ | {{!}}failed | ||
+ | {{!}}function | ||
+ | {{!}}A function called when the operation fails. | ||
{{!}}} | {{!}}} | ||
{{!}}} | {{!}}} | ||
Line 52: | Line 76: | ||
{{{!}} | {{{!}} | ||
!Signature | !Signature | ||
− | {{!}}<static> setState(''name'', ''stateOperationName'') | + | {{!}}<static> setState(''name'', ''stateOperationName'', succeeded, failed) |
{{!}}- | {{!}}- | ||
!Description | !Description | ||
Line 71: | Line 95: | ||
{{!}}string | {{!}}string | ||
{{!}}An <tt>operationName</tt> from the agent states list. See {{Link-SomewhereInThisManual|topic=MediaNamespace|anchor=State|display text=State}}. | {{!}}An <tt>operationName</tt> from the agent states list. See {{Link-SomewhereInThisManual|topic=MediaNamespace|anchor=State|display text=State}}. | ||
+ | {{!}}- | ||
+ | {{!}}succeeded | ||
+ | {{!}}function | ||
+ | {{!}}A function called when the operation succeeds. | ||
+ | {{!}}- | ||
+ | {{!}}failed | ||
+ | {{!}}function | ||
+ | {{!}}A function called when the operation fails. | ||
{{!}}} | {{!}}} | ||
{{!}}} | {{!}}} |
Latest revision as of 13:44, February 22, 2023
Contents
Learn about the Media namespace methods and type definitions in the Service Client API.
Methods
The Media namespace includes the following methods:
getMediaList
Signature | <static> getMediaList(succeeded, failed) → {Array.<media.Media>} | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Description | Get the list of media with attributes. | |||||||||
Parameters |
| |||||||||
Returns | Array.<media.Media> |
getMediaByName
Signature | <static> getMediaByName(name, succeeded, failed) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description | Get the media attributes. | ||||||||||||
Parameters |
|
setState
Signature | <static> setState(name, stateOperationName, succeeded, failed) | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description | Sets the media state. | |||||||||||||||
Parameters |
|
Type definitions
The Media namespace includes the following object types:
Media
Description | Represents the JSON structure of a media. | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Type | Object | |||||||||
Properties |
|
State
Description | Represents the JSON structure of a media state. | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type | Object | ||||||||||||
Properties |
|
* States that are limited to an event and can't be applied by code
Device
Description | Represents the JSON structure of a media. | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Type | Object | |||||||||
Properties |
|
Comments or questions about this documentation? Contact us for support!