1e41f4b71Sopenharmony_ci# Multimedia Subsystem Changelog
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci## cl.multimedia.1 Deprecated the muteCamera API
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci**Access Level**
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ciSystem API
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci**Reason for Change**
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ciTo meet the requirements for future evolution, the **muteCamera** API in the **@ohos.multimedia.camera.d.ts** file is deprecated.
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci**Change Impact**
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ciThis change is a non-compatible change.
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ciWhen the **muteCamera** API is used, a message is displayed, indicating that the API has been deprecated. You are advised to use the substitute API.
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci**Start API Level**
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci10
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ci**Change Since**
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ciOpenHarmony SDK 5.0.0.37
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci**Deprecated APIs/Components**
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ci|            Deprecated API           |               Description              |           Substitute API           |
30e41f4b71Sopenharmony_ci| :----------------------------: | :----------------------------------: | :---------------------------: |
31e41f4b71Sopenharmony_ci| muteCamera | Replaced by **muteCameraPersistent**. | muteCameraPersistent |
32e41f4b71Sopenharmony_ci
33e41f4b71Sopenharmony_ci**Adaptation Guide**
34e41f4b71Sopenharmony_ci
35e41f4b71Sopenharmony_ciChange **muteCamera** to **muteCameraPersistent** during application development.
36e41f4b71Sopenharmony_ci
37e41f4b71Sopenharmony_ciFor details about how to use the new API, see [muteCameraPersistent](../../../application-dev/reference/apis-camera-kit/js-apis-camera-sys.md#mutecamerapersistent12).
38e41f4b71Sopenharmony_ci
39e41f4b71Sopenharmony_ci## cl.multimedia.2 Deprecated the CameraPosition.CAMERA_POSITION_FOLD_INNER API
40e41f4b71Sopenharmony_ci
41e41f4b71Sopenharmony_ci**Access Level**
42e41f4b71Sopenharmony_ci
43e41f4b71Sopenharmony_ciPublic API
44e41f4b71Sopenharmony_ci
45e41f4b71Sopenharmony_ci**Reason for Change**
46e41f4b71Sopenharmony_ci
47e41f4b71Sopenharmony_ciOriginally, the camera position information collected applies only for some products. To meet the requirements of other products, the **CameraPosition.CAMERA_POSITION_FOLD_INNER** API in the @ohos.multimedia.camera.d.ts file is deprecated.
48e41f4b71Sopenharmony_ci
49e41f4b71Sopenharmony_ci**Change Impact**
50e41f4b71Sopenharmony_ci
51e41f4b71Sopenharmony_ciThis change is a non-compatible change.
52e41f4b71Sopenharmony_ci
53e41f4b71Sopenharmony_ciWhen the **CameraPosition.CAMERA_POSITION_FOLD_INNER** API is used, a message is displayed, indicating that the API has been deprecated. You need to make adaptations accordingly.
54e41f4b71Sopenharmony_ci
55e41f4b71Sopenharmony_ci**Start API Level**
56e41f4b71Sopenharmony_ci
57e41f4b71Sopenharmony_ci11
58e41f4b71Sopenharmony_ci
59e41f4b71Sopenharmony_ci**Change Since**
60e41f4b71Sopenharmony_ci
61e41f4b71Sopenharmony_ciOpenHarmony SDK 5.0.0.37
62e41f4b71Sopenharmony_ci
63e41f4b71Sopenharmony_ci**Deprecated APIs/Components**
64e41f4b71Sopenharmony_ci
65e41f4b71Sopenharmony_ci|            Deprecated API           | Description |           Substitute API           |
66e41f4b71Sopenharmony_ci| :----------------------------: |:----:| :---------------------------: |
67e41f4b71Sopenharmony_ci| CAMERA_POSITION_FOLD_INNER |  Deprecated. | There is no substitute API. |
68e41f4b71Sopenharmony_ci
69e41f4b71Sopenharmony_ci**Adaptation Guide**
70e41f4b71Sopenharmony_ci
71e41f4b71Sopenharmony_ciSolution 1: Use [display.on('foldStatusChange')](../../../application-dev/reference/apis-arkui/js-apis-display.md#displayonfoldstatuschange10) of the @ohos.display.d.ts module to listen for folding status changes of a foldable device.
72e41f4b71Sopenharmony_ci
73e41f4b71Sopenharmony_ciWhen detecting such a change, use [getSupportedCameras](../../../application-dev/reference/apis-camera-kit/js-apis-camera.md#getsupportedcameras) of the @ohos.multimedia.camera.d.ts module to obtain the camera information. Then select the camera to open based on the information.
74e41f4b71Sopenharmony_ci
75e41f4b71Sopenharmony_ciThe camera information obtained by [getSupportedCameras](../../../application-dev/reference/apis-camera-kit/js-apis-camera.md#getsupportedcameras) is the same regardless of whether [FoldStatus](../../../application-dev/reference/apis-arkui/js-apis-display.md#foldstatus10) in the data returned through the callback [display.on('foldStatusChange')](../../../application-dev/reference/apis-arkui/js-apis-display.md#displayonfoldstatuschange10) is **FOLD_STATUS_HALF_FOLDED** or **FOLD_STATUS_EXPANDED**.
76e41f4b71Sopenharmony_ci
77e41f4b71Sopenharmony_ciSolution 2: Use [CameraManager.on('foldStatusChange')](../../../application-dev/reference/apis-camera-kit/js-apis-camera.md#onfoldstatuschange12) of the @ohos.multimedia.camera.d.ts module to listen for folding status changes of a foldable device.
78e41f4b71Sopenharmony_ci
79e41f4b71Sopenharmony_ciWhen detecting such a change, [FoldStatusInfo](../../../application-dev/reference/apis-camera-kit/js-apis-camera.md#foldstatusinfo12) is returned, including the folding status of the device and the list of cameras supported in this status. You can select the camera to open based on the information.