1# Multimedia Subsystem Changelog
2
3## cl.multimedia.1 Deprecated the muteCamera API
4
5**Access Level**
6
7System API
8
9**Reason for Change**
10
11To meet the requirements for future evolution, the **muteCamera** API in the **@ohos.multimedia.camera.d.ts** file is deprecated.
12
13**Change Impact**
14
15This change is a non-compatible change.
16
17When the **muteCamera** API is used, a message is displayed, indicating that the API has been deprecated. You are advised to use the substitute API.
18
19**Start API Level**
20
2110
22
23**Change Since**
24
25OpenHarmony SDK 5.0.0.37
26
27**Deprecated APIs/Components**
28
29|            Deprecated API           |               Description              |           Substitute API           |
30| :----------------------------: | :----------------------------------: | :---------------------------: |
31| muteCamera | Replaced by **muteCameraPersistent**. | muteCameraPersistent |
32
33**Adaptation Guide**
34
35Change **muteCamera** to **muteCameraPersistent** during application development.
36
37For details about how to use the new API, see [muteCameraPersistent](../../../application-dev/reference/apis-camera-kit/js-apis-camera-sys.md#mutecamerapersistent12).
38
39## cl.multimedia.2 Deprecated the CameraPosition.CAMERA_POSITION_FOLD_INNER API
40
41**Access Level**
42
43Public API
44
45**Reason for Change**
46
47Originally, 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.
48
49**Change Impact**
50
51This change is a non-compatible change.
52
53When 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.
54
55**Start API Level**
56
5711
58
59**Change Since**
60
61OpenHarmony SDK 5.0.0.37
62
63**Deprecated APIs/Components**
64
65|            Deprecated API           | Description |           Substitute API           |
66| :----------------------------: |:----:| :---------------------------: |
67| CAMERA_POSITION_FOLD_INNER |  Deprecated. | There is no substitute API. |
68
69**Adaptation Guide**
70
71Solution 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.
72
73When 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.
74
75The 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**.
76
77Solution 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.
78
79When 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.