@give-tech/ec-player 0.0.1-beta.55 → 0.0.1-beta.56

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/dist/index.js CHANGED
@@ -4423,7 +4423,7 @@ class Canvas2DRenderer {
4423
4423
  render(frame) {
4424
4424
  if (!frame || !frame.data) return;
4425
4425
  const { width, height, data } = frame;
4426
- if (this.canvas.width !== width || this.canvas.height !== height) {
4426
+ if (this.canvas.width !== width || this.canvas.height !== height || !this.cachedImageData) {
4427
4427
  this.canvas.width = width;
4428
4428
  this.canvas.height = height;
4429
4429
  this.cachedImageData = this.ctx.createImageData(width, height);