@vindral/web-sdk 4.3.0 → 4.3.1-2-gddd5768ce

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.
@@ -45,7 +45,7 @@ var r = class extends n {
45
45
  var e;
46
46
  let t = this.getInstance();
47
47
  if (!t) throw "cast context should exist";
48
- let n = t.getSessionState(), r = ((e = this.config) == null ? void 0 : e.receiverApplicationId) || void 0;
48
+ let n = t.getSessionState(), r = ((e = this.config) == null ? void 0 : e.receiverApplicationId) || "A5452297";
49
49
  t.setOptions({
50
50
  receiverApplicationId: r,
51
51
  autoJoinPolicy: chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED,
@@ -235,13 +235,13 @@ var u, d = class {
235
235
  this.decoder.unload();
236
236
  }), e(this, "enqueue", (e) => {
237
237
  try {
238
- let t = Date.now(), n = this.decoder.decode(new Uint8Array(e.data));
238
+ let t = performance.now(), n = this.decoder.decode(new Uint8Array(e.data));
239
239
  this.decodedSamples.push(a(a({}, e), {}, {
240
240
  type: "audio",
241
241
  format: "f32",
242
242
  data: n,
243
243
  statistics: {
244
- decodeTime: Date.now() - t,
244
+ decodeTime: performance.now() - t,
245
245
  transportTimeFromWorker: 0,
246
246
  transportTimeToWorker: 0,
247
247
  samplesInBatch: 1