... | ... | @@ -738,4 +738,29 @@ int MEDIA_ERROR_IO = -1004;//IO 错误 |
|
|
int MEDIA_ERROR_MALFORMED = -1007;比特流不符合相关的编码标准和文件规范
|
|
|
int MEDIA_ERROR_UNSUPPORTED = -1010;//数据不支持
|
|
|
int MEDIA_ERROR_TIMED_OUT = -110;//数据超时
|
|
|
``` |
|
|
\ No newline at end of file |
|
|
```
|
|
|
|
|
|
## 6.6 适配Android 9.0
|
|
|
在AndroidManifest.xml文件下进行以下配置
|
|
|
|
|
|
```
|
|
|
1.添加android:usesCleartextTraffic="true"
|
|
|
|
|
|
<application
|
|
|
android:name="com.bokecc.sdk.mobile.demo.drm.DemoApplication"
|
|
|
android:allowBackup="true"
|
|
|
android:icon="@drawable/ic_launcher"
|
|
|
android:label="@string/app_name"
|
|
|
android:theme="@style/AppTheme"
|
|
|
android:usesCleartextTraffic="true">
|
|
|
|
|
|
2.添加如下配置
|
|
|
<application>
|
|
|
...
|
|
|
<uses-library
|
|
|
android:name="org.apache.http.legacy"
|
|
|
android:required="false" />
|
|
|
...
|
|
|
</application>
|
|
|
|
|
|
``` |