(Update with the copy of version: 8.5.2DRAFT) |
(Update with the copy of version: 8.5.2DRAFT) |
||
Line 4: | Line 4: | ||
The Media namespace includes the following methods: | The Media namespace includes the following methods: | ||
* [[MediaNamespace#getMediaList|getMediaList]] | * [[MediaNamespace#getMediaList|getMediaList]] | ||
+ | * [[MediaNamespace#getMediaByName|getMediaByName]] | ||
* [[MediaNamespace#setState|setState]] | * [[MediaNamespace#setState|setState]] | ||
Line 13: | Line 14: | ||
|- | |- | ||
! Description | ! Description | ||
− | | Get the media attributes. | + | | Get the list of media with attributes. |
|- | |- | ||
! Returns | ! Returns | ||
Line 19: | Line 20: | ||
|} | |} | ||
+ | ===getMediaByName=== | ||
+ | {| | ||
+ | !Signature | ||
+ | |<static> getMediaByName(''name'') | ||
+ | |- | ||
+ | !Description | ||
+ | |Get the media attributes. | ||
+ | |- | ||
+ | !Parameters | ||
+ | | | ||
+ | {| | ||
+ | !Name | ||
+ | !Type | ||
+ | !Description | ||
+ | |- | ||
+ | |name | ||
+ | |string | ||
+ | |The media name. | ||
+ | |} | ||
+ | |} | ||
===setState=== | ===setState=== | ||
{| | {| | ||
Line 142: | Line 163: | ||
|} | |} | ||
|} | |} | ||
− | |||
[[Category:V:HTCC:8.5.2]] | [[Category:V:HTCC:8.5.2]] |
Latest revision as of 13:16, August 11, 2020
Media Namespace
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 |
|
This page was last edited on August 11, 2020, at 13:16.
Comments or questions about this documentation? Contact us for support!