1# Multimedia Subsystem Changelog
2
3## cl.multimedia.1 getValidCommandsSync Changed
4
5**Access Level**
6
7Public
8
9**Reason for Change**
10
11In earlier versions, the return value of **getValidCommandsSync()** is incorrectly defined as int. It is corrected to **AVControlCommandType**.
12
13**Change Impact**
14
15The change is not compatible with earlier versions. You are advised to use new APIs.
16
17**Change Since**
18
19OpenHarmony SDK 4.1.3.5
20
21**Key API/Component Changes**
22
23getValidCommandsSync(): Array<AVControlCommandType>
24
25**Adaptation Guide**
26
27Before change:
28
29When you use a created **AVSession** object to obtain the commands supported by the controller, the return value is an int array.
30
31let validCommands = avsession.getController().getValidCommandsSync();
32
33For example, if the application registers only the **play** command callback, validCommands[0] is 0.
34
35After change:
36
37When you use a created **AVSession** object to obtain the commands supported by the controller, the return value is an array of **AVControlCommandType** strings.
38
39let validCommands = avsession.getController().getValidCommandsSync();
40
41For example, if the application registers only the **play** command callback, validCommands[0] is **'play'**.
42