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.
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.
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.
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.