libpag 4.5.3 → 4.5.4

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/lib/libpag.cjs.js CHANGED
@@ -1937,6 +1937,7 @@ class VideoReader {
1937
1937
  if (UHD_RESOLUTION < width || UHD_RESOLUTION < height) {
1938
1938
  this.disablePlaybackRate = true;
1939
1939
  }
1940
+ this.linkPlayer(PAGModule.currentPlayer);
1940
1941
  }
1941
1942
  static create(source, width, height, frameRate, staticTimeRanges) {
1942
1943
  return new VideoReader(source, width, height, frameRate, staticTimeRanges);
@@ -1952,6 +1953,7 @@ class VideoReader {
1952
1953
  await waitVideoCanPlay(this.videoEl);
1953
1954
  } else {
1954
1955
  try {
1956
+ await waitVideoCanPlay(this.videoEl);
1955
1957
  await this.play();
1956
1958
  } catch (e) {
1957
1959
  this.setError(e);
@@ -8456,8 +8458,8 @@ var PAGInit$1 = (() => {
8456
8458
  var wasmExports = await createWasm();
8457
8459
  wasmExports["Dc"];
8458
8460
  var ___getTypeName = wasmExports["Ec"];
8459
- var _malloc = wasmExports["Gc"];
8460
- var _free = wasmExports["Hc"];
8461
+ var _malloc = Module["_malloc"] = wasmExports["Gc"];
8462
+ var _free = Module["_free"] = wasmExports["Hc"];
8461
8463
  Module["GL"] = GL;
8462
8464
  function run() {
8463
8465
  if (runDependencies > 0) {