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