Pixel Streaming not working in Chrome version 89

app.js

function setupWebRtcPlayer(htmlElement, config)
{
	webRtcPlayerObj = new webRtcPlayer({ peerConnectionOptions: config.peerConnectionOptions });
	htmlElement.appendChild(webRtcPlayerObj.video);
	htmlElement.appendChild(freezeFrameOverlay);

	webRtcPlayerObj.onWebRtcOffer = function (offer)
	{
		if (ws && ws.readyState === WS_OPEN_STATE) {
			offer.sdp = offer.sdp.replace("a=extmap-allow-mixed\r\n", "")
			let offerStr = JSON.stringify(offer);
			console.log(`-> SS: offer:\n${offerStr}`);
			ws.send(offerStr);
		}
	};
2 Likes