livekit-client 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "livekit-client",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "JavaScript/TypeScript client SDK for LiveKit",
5
5
  "main": "./dist/livekit-client.umd.js",
6
6
  "unpkg": "./dist/livekit-client.umd.js",
@@ -102,7 +102,7 @@ export default class PCTransport {
102
102
 
103
103
  const mungedMediaSection = mediaSection.replace(
104
104
  new RegExp(`a=rtpmap:(\\d+) ${trackbr.codec}/\\d+`, 'i'),
105
- `$&\r\na=fmtp:$1 x-google-max-bitrate=${trackbr.maxbr}`,
105
+ '$'.concat(`&\r\na=fmtp:$1 x-google-max-bitrate=${trackbr.maxbr}`), // Unity replaces '$&' by some random values when building ( Using concat as a workaround )
106
106
  );
107
107
  sdp = sdp.substring(0, mlineStart) + mungedMediaSection + sdp.substring(mlineEnd);
108
108
  offer.sdp = sdp;