From 30e5d213cb9b837105c17763b06038e9aba5963b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 22 Nov 2022 12:18:08 +0100 Subject: [PATCH] fix(android) sort codecs in the same order as iOS --- .../main/java/org/jitsi/meet/sdk/WebRTCVideoDecoderFactory.java | 2 +- .../main/java/org/jitsi/meet/sdk/WebRTCVideoEncoderFactory.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/sdk/src/main/java/org/jitsi/meet/sdk/WebRTCVideoDecoderFactory.java b/android/sdk/src/main/java/org/jitsi/meet/sdk/WebRTCVideoDecoderFactory.java index f66bc2a975..b9b877fa43 100644 --- a/android/sdk/src/main/java/org/jitsi/meet/sdk/WebRTCVideoDecoderFactory.java +++ b/android/sdk/src/main/java/org/jitsi/meet/sdk/WebRTCVideoDecoderFactory.java @@ -42,10 +42,10 @@ public class WebRTCVideoDecoderFactory implements VideoDecoderFactory { public VideoCodecInfo[] getSupportedCodecs() { List codecs = new ArrayList<>(); + codecs.add(H264Utils.DEFAULT_H264_BASELINE_PROFILE_CODEC); codecs.add(new VideoCodecInfo(VideoCodecMimeType.VP8.name(), new HashMap<>())); codecs.add(new VideoCodecInfo(VideoCodecMimeType.VP9.name(), new HashMap<>())); codecs.add(new VideoCodecInfo(VideoCodecMimeType.AV1.name(), new HashMap<>())); - codecs.add(H264Utils.DEFAULT_H264_BASELINE_PROFILE_CODEC); return codecs.toArray(new VideoCodecInfo[codecs.size()]); } diff --git a/android/sdk/src/main/java/org/jitsi/meet/sdk/WebRTCVideoEncoderFactory.java b/android/sdk/src/main/java/org/jitsi/meet/sdk/WebRTCVideoEncoderFactory.java index 12d83a987e..173fad1724 100644 --- a/android/sdk/src/main/java/org/jitsi/meet/sdk/WebRTCVideoEncoderFactory.java +++ b/android/sdk/src/main/java/org/jitsi/meet/sdk/WebRTCVideoEncoderFactory.java @@ -43,10 +43,10 @@ public class WebRTCVideoEncoderFactory implements VideoEncoderFactory { public VideoCodecInfo[] getSupportedCodecs() { List codecs = new ArrayList<>(); + codecs.add(H264Utils.DEFAULT_H264_BASELINE_PROFILE_CODEC); codecs.add(new VideoCodecInfo(VideoCodecMimeType.VP8.name(), new HashMap<>())); codecs.add(new VideoCodecInfo(VideoCodecMimeType.VP9.name(), new HashMap<>())); codecs.add(new VideoCodecInfo(VideoCodecMimeType.AV1.name(), new HashMap<>())); - codecs.add(H264Utils.DEFAULT_H264_BASELINE_PROFILE_CODEC); return codecs.toArray(new VideoCodecInfo[codecs.size()]); }