Difference between revisions of "PEC-Developer/Current/SCAPI/MediaNamespace"
From Genesys Documentation
m (Text replacement - "\|Platform=([^\|]*)GenesysEngage-onpremises([\|]*)" to "|Platform=$1GenesysEngage-cloud$2") |
(Published) |
||
Line 6: | Line 6: | ||
|ComingSoon=No | |ComingSoon=No | ||
|Platform=GenesysEngage-cloud | |Platform=GenesysEngage-cloud | ||
− | |||
|Section={{Section | |Section={{Section | ||
|sectionHeading=Methods | |sectionHeading=Methods | ||
|anchor=Methods | |anchor=Methods | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
− | |||
|structuredtext=The Media namespace includes the following methods: | |structuredtext=The Media namespace includes the following methods: | ||
*{{Link-SomewhereInThisManual|topic=MediaNamespace|anchor=getMediaList|display text=getMediaList}} | *{{Link-SomewhereInThisManual|topic=MediaNamespace|anchor=getMediaList|display text=getMediaList}} | ||
+ | *{{Link-SomewhereInThisManual|topic=MediaNamespace|anchor=getMediaByName|display text=getMediaByName}} | ||
*{{Link-SomewhereInThisManual|topic=MediaNamespace|anchor=setState|display text=setState}} | *{{Link-SomewhereInThisManual|topic=MediaNamespace|anchor=setState|display text=setState}} | ||
Line 24: | Line 22: | ||
{{!}}- | {{!}}- | ||
!Description | !Description | ||
− | {{!}}Get the media attributes. | + | {{!}}Get the list of media with attributes. |
{{!}}- | {{!}}- | ||
!Returns | !Returns | ||
{{!}}Array.<{{Link-SomewhereInThisManual|topic=MediaNamespace|anchor=State|display text=media.Media}}> | {{!}}Array.<{{Link-SomewhereInThisManual|topic=MediaNamespace|anchor=State|display text=media.Media}}> | ||
+ | {{!}}} | ||
+ | |||
+ | ===getMediaByName=== | ||
+ | {{{!}} | ||
+ | !Signature | ||
+ | {{!}}<static> getMediaByName(''name'') | ||
+ | {{!}}- | ||
+ | !Description | ||
+ | {{!}}Get the media attributes. | ||
+ | {{!}}- | ||
+ | !Parameters | ||
+ | {{!}} | ||
+ | {{{!}} | ||
+ | !Name | ||
+ | !Type | ||
+ | !Description | ||
+ | {{!}}- | ||
+ | {{!}}name | ||
+ | {{!}}string | ||
+ | {{!}}The media name. | ||
+ | {{!}}} | ||
{{!}}} | {{!}}} | ||
Line 54: | Line 73: | ||
{{!}}} | {{!}}} | ||
{{!}}} | {{!}}} | ||
− | |||
− | |||
|Status=No | |Status=No | ||
}}{{Section | }}{{Section | ||
Line 61: | Line 78: | ||
|anchor=Typedefinitions | |anchor=Typedefinitions | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
− | |||
|structuredtext=The Media namespace includes the following object types: | |structuredtext=The Media namespace includes the following object types: | ||
Line 162: | Line 177: | ||
{{!}}} | {{!}}} | ||
{{!}}} | {{!}}} | ||
− | |||
− | |||
|Status=No | |Status=No | ||
}} | }} | ||
}} | }} |
Revision as of 13:17, August 11, 2020
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() → {Array.<media.Media>} |
---|---|
Description | Get the list of media with attributes. |
Returns | Array.<media.Media> |
getMediaByName
Signature | <static> getMediaByName(name) | ||||||
---|---|---|---|---|---|---|---|
Description | Get the media attributes. | ||||||
Parameters |
|
setState
Signature | <static> setState(name, stateOperationName) | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
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!