-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Huawei honor 8 (Kirin 950) H.264 only Group Call #467
Comments
Hi @artit91 , Thanks for writing in with your issue. We will take a look and get back to you. Thanks, Manjesh Malavalli |
Hi @artit91 , Our internal logs show that Chrome on Android did not detect that the phone supports H.264. This discussion may provide some context as to why certain H264 hardware decoders are not recognized by Chrome on Android. Please let me know if this helps. Thanks, Manjesh Malavalli |
It's weird because it works with: https://github.com/webrtc/apprtc/tree/master/src/web_app if I override the codec using this code: window.forceH264forSDP = function(sdp) {
var h264regex = /^a=rtpmap:(\d+) H264\/(?:\d+)/mg
, h264match = h264regex.exec(sdp)
, h264ids = [];
while (null != h264match) {
h264ids.push(h264match[1]);
h264match = h264regex.exec(sdp)
}
var myregexp = /(m=video 9 UDP\/TLS\/RTP\/SAVPF )(\d+(?: \d+)+)/;
sdp = sdp.replace(myregexp, function(match, p1, p2) {
var i, others = p2.split(" ");
for (i = 0; i < h264ids.length; i++) {
others = others.filter(function(e) {
return e !== h264ids[i]
})
}
return p1 + h264ids.join(" ") + " " + others.join(" ")
});
return sdp
}
sessionDescription.sdp = forceH264forSDP(sessionDescription.sdp, this.params_);
sessionDescription.sdp = sessionDescription.sdp.replace("42001f", "42e01f"); I don't have the required knowledge to figure out what it's doing but it just works... |
So if you replace the “e0” is required for the baseline profile and it’s missing in the device I’m talking about. I understand, you have maybe better things to do, could you tell me which file should I modify to get the desired result, please? I need it to be fixed SAP. |
Hi @artit91 , It looks like you're maintaining your own fork of twilio-video.js. So, in _offer() {
...
return this._setLocalDescription({
type: 'offer',
sdp: forceH264forSDP(updatedSdp)
});
} Please let me know if this works for you. Manjesh Malavalli |
Already done that :) I can only test tomorrow on a real device. Thank you. |
seemingly same issue https://groups.google.com/forum/m/#!topic/meetecho-janus/jKg5u9421kM |
Apparently a vast amount Huawei phones are affected. (tested on P9) chrome bug: https://bugs.chromium.org/p/chromium/issues/detail?id=862087 Overriding 42001f to 42e01f solves the problem in the apprtc demo not in twilio-video.js. It's a possible workaround till they get it fixed. |
or sensitive account information (API keys, credentials, etc.) when reporting this issue.
Code to reproduce the issue:
Expected behavior:
Connect to the room and show video because the device supports h.264.
I have seen it working with another library.
Actual behavior:
TwilioError: No supported codec
The room is audio only.
The text was updated successfully, but these errors were encountered: