On Androd OS 10/11, the following error message is reported to appear and the application crashes when trying to use the VP8 hardware decoder.
Texture width must be positive, but was 0
This error is reported below as an error caused by the hardware decoder implementation in the Android OS.
Issue 12492: Android: avoid crashing if HW decoder reports zero width or height
Environment
The above issue occurs when running a WebRTC application that uses hardware acceleration on a device with a VP8 hardware decoder that has Android OS 10/11 installed.
This may also occur with applications using SkyWay Android SDK, regardless of version.
Workaround
The workaround to avoid the above error is as follows
- Disable the use of hardware codecs
You can disable the use of hardware codecs by setting hwcodec in PeerOption to false.
- Use a codec other than VP8
The above problem can be solved by specifying a video codec other than VP8 (H.264, VP9, etc.) to be used during the call.
You can specify the video codec to be used from CallOption, AnswerOption, and RoomOption.- CallOption
- AnswerOption
- RoomOption *SFU Room can only use VP8, so please use the workaround of 1.
Future support for SkyWay
The WebRTC engine used in the Android SDK has been updated to address this issue, and we are considering updating the SDK.
We will update this article with the latest information on the support status.
Comments
0 comments
Article is closed for comments.