# Pixel Streaming not working in chrome version 89 , ue4 will crash when i access SignallingWebServer

**URL:** <https://forums.unrealengine.com/t/pixel-streaming-not-working-in-chrome-version-89-ue4-will-crash-when-i-access-signallingwebserver/224385>\
**Category:** Feedback & Requests\
**Tags:** unreal-engine\
**Created:** [March 8, 2021, 6:17am UTC](https://forums.unrealengine.com/t/pixel-streaming-not-working-in-chrome-version-89-ue4-will-crash-when-i-access-signallingwebserver/224385 "2021-03-08T06:17:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZhouSyou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZhouSyou](https://forums.unrealengine.com/u/ZhouSyou)\
**Post date:** [March 8, 2021, 6:17am UTC](https://forums.unrealengine.com/t/pixel-streaming-not-working-in-chrome-version-89-ue4-will-crash-when-i-access-signallingwebserver/224385/1 "2021-03-08T06:17:14Z")

</div>

this happends since google chrome version 89 and same thing in Microsoft Edge

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6a1487741](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6a1487741](https://forums.unrealengine.com/u/anonymous_user_6a1487741)\
**Post date:** [December 18, 2021, 2:06pm UTC](https://forums.unrealengine.com/t/pixel-streaming-not-working-in-chrome-version-89-ue4-will-crash-when-i-access-signallingwebserver/224385/2 "2021-12-18T14:06:53Z")

</div>

Does anyone had a fix or workaround for this?

---

<div class="post-metadata">

**Author:** ![purisarr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@purisarr](https://forums.unrealengine.com/u/purisarr)\
**Post date:** [January 7, 2022, 9:06pm UTC](https://forums.unrealengine.com/t/pixel-streaming-not-working-in-chrome-version-89-ue4-will-crash-when-i-access-signallingwebserver/224385/3 "2022-01-07T21:06:43Z")

</div>

> **[Pixel Streaming not working in Chrome version 89](https://forums.unrealengine.com/questions/1015837/pixel-streaming-not-working-in-chrome-version-89.html)**
>
> Pixel Streaming was working fine in previous versions of Google Chrome (88 and earlier), but it now makes the unreal game crash when a user tries to connect. (in both the editor and packaged game) This happens since google chrome version 89, and...

this worked for me, chrome 97 !!!

so we edit webRtcPlayer.js under Config section

```
     this.cfg = parOptions.peerConnectionOptions || {};
     this.cfg.sdpSemantics = 'unified-plan';
     this.pcClient = null;
     this.dcClient = null;
     this.tnClient = null;

     this.sdpConstraints = {
       offerToReceiveAudio: 1,
       offerToReceiveVideo: 1
     };
     
     // Temporary hotfix for Chrome >=89
     const tempChromeInfo = navigator.userAgent.match( /Chrom(e|ium)\/([0-9]+)\./ );
     if ( tempChromeInfo )
     {
             const tempVersion = parseInt( tempChromeInfo[2], 10 );
             if ( tempVersion >= 89 )
             {
                     this.cfg.offerExtmapAllowMixed = false;
             }
     }

```

AND THEN

edit 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);
     }
 };
```
