HEVC support on android

Does H265 (HEVC) work for you in React-native-webrtc?
I have a problem where it works fine in Chrome, but when I try to run it through the React app, I get an error saying that the codec is not supported.

Moreover H265 works over HLS, but not over Webrtc.

H.265 support in WebRTC depends on the underlying libwebrtc build and on what the device hardware codec exposes, so it often works in desktop Chrome but not in a mobile build. You could check RTCRtpSender.getCapabilities(“video”) in your app to see whether H265 is listed at all. If it is not, falling back to H.264 or VP8 is usually the safest option for now.

On Android, even if the phone has an HEVC hardware encoder, react-native-webrtc can only offer it if the bundled libwebrtc was built with HEVC enabled and the SDP negotiation includes it. HLS working only shows the decoder exists; it doesn’t mean WebRTC signaling supports the codec. If the capability check omits H265, there likely isn’t a JS-only fix—use H264/VP8, or build a custom native WebRTC library with HEVC enabled.