
# 开启兼容性
**接口描述**
该接口会设置是否开启兼容性，用于兼容现网CBC加密模式。注意：当前现网均是CBC加密模式，此接口必须设置成开启兼容性。
**注意事项**
- 投屏前必须调用此接口，设置成开启状态，否者投屏会失败。
**方法定义**
```
/**
```
```
* 设置自定义通知
```
```
* @param customNotification 自定义通知对象  
     * @param notificationId 通知id
```
```
*/
```
```
int setCompatibility(boolean enabled);
```
**参数描述**
| 参数      | 是否必须 | 类型      | 描述             |
|:---|:---|:---|:---|
| enabled | 是    | boolean | 开启兼容性 0不开启 1开启 |
   
**示例代码**
```
shareServiceController.enableAudio(RemoteActivity.this, true);
```
