how to enable h264 in peerconnection?
问题 many media says firefox support h264 in webrtc, but I can't find any information. How to enable h264 in webrtc? This is my mediaConstraints var mediaConstraints = { video: { mandatory: { maxWidth: 640, maxHeight: 480 } }, audio: true }; 回答1: It would seem that H264 is not supported by default yet. You will have to add the codec line manually into the SDP before setting it as local and sending the offer. It does look like they are hard at work to get it out soon. You can see this with the work