webrtc-sdk / android

WebRTC pre-compiled library for android.
MIT License
151 stars 23 forks source link

h.264 high is sent whether or not the option is enabled #25

Open mondain opened 3 months ago

mondain commented 3 months ago

Setting up the decoder factory for the peer connection factory doesn't appear to regard the enableH264HighProfile

DefaultVideoEncoderFactory defaultVideoEncoderFactory =
                    new DefaultVideoEncoderFactory(eglContext, true, false);
            peerConnectionFactory = PeerConnectionFactory.builder()
                    .setOptions(options)
                    .setVideoEncoderFactory(defaultVideoEncoderFactory)
                    .createPeerConnectionFactory();

In addition, the answer SDP also specifies the profile as 42e01f and the video packets will still contain high profile. How do I prevent this behavior?

Here the encoder detail

      Buffer csd-0 = {
        00000000:  00 00 00 01 67 64 00 34  ac b4 09 05 b4 d4 08 08  ....gd.4........
        00000010:  08 1e 28 55 40 00 00 00  01 68 ee 0d 8b           ..(U@....h...
      }
      Buffer csd-1 = {
        00000000:  00 00 00 01 68 ee 0d 8b                           ....h...
      }