@livedigital/client 2.3.1 → 2.3.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
@@ -2,7 +2,7 @@
2
2
  "name": "@livedigital/client",
3
3
  "author": "vlprojects",
4
4
  "license": "MIT",
5
- "version": "2.3.1",
5
+ "version": "2.3.2",
6
6
  "private": false,
7
7
  "bugs": {
8
8
  "url": "https://github.com/vlprojects/livedigital-sdk/issues"
@@ -108,7 +108,12 @@ class PeerConsumer {
108
108
  }
109
109
 
110
110
  parseSpatialLayerParams(encoding: RtpEncodingParameters): SpatialLayerParams {
111
- const { trackTransformParams: { width, height } } = this.appData.producerData;
111
+ const { trackTransformParams } = this.appData.producerData;
112
+ if (!trackTransformParams) {
113
+ return encoding;
114
+ }
115
+
116
+ const { width, height } = trackTransformParams;
112
117
  const coefficient = encoding.scaleResolutionDownBy || 1;
113
118
  if (width && height) {
114
119
  return {