stormcloud-video-player 0.7.44 → 0.7.45

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.
@@ -344,27 +344,6 @@ function isOverlayActive(overlay, currentTime) {
344
344
  if (durationSec <= 0) return false;
345
345
  return currentTime >= startSec && currentTime < startSec + durationSec;
346
346
  }
347
- var SWIRL_HD_AUTHORING_WIDTH = 1920;
348
- var SWIRL_HD_AUTHORING_HEIGHT = 1080;
349
- var NAB_DEMO_NAME_PREFIX = "NAB Demo \u2014 ";
350
- function overlayAuthoringDimensions(overlay, decodeWidth, decodeHeight) {
351
- if (overlay.name.startsWith(NAB_DEMO_NAME_PREFIX)) {
352
- return {
353
- width: SWIRL_HD_AUTHORING_WIDTH,
354
- height: SWIRL_HD_AUTHORING_HEIGHT
355
- };
356
- }
357
- if (!decodeWidth || !decodeHeight) {
358
- return {
359
- width: decodeWidth || SWIRL_HD_AUTHORING_WIDTH,
360
- height: decodeHeight || SWIRL_HD_AUTHORING_HEIGHT
361
- };
362
- }
363
- return {
364
- width: decodeWidth,
365
- height: decodeHeight
366
- };
367
- }
368
347
  function resolveImageUrl(imageUrl) {
369
348
  var apiBaseUrl = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : OVERLAY_API_BASE;
370
349
  if (!imageUrl) return "";
@@ -2185,13 +2164,8 @@ var OverlayRenderer = function OverlayRenderer(param) {
2185
2164
  },
2186
2165
  children: _to_consumable_array(fadeMap.values()).map(function(param) {
2187
2166
  var overlay = param.overlay, visible = param.visible;
2188
- var uniform = coordinateSpace && coordinateSpace.width > 0 && coordinateSpace.height > 0;
2189
- var auth = uniform ? {
2190
- width: coordinateSpace.width,
2191
- height: coordinateSpace.height
2192
- } : overlayAuthoringDimensions(overlay, dims.nativeWidth, dims.nativeHeight);
2193
- var scaleX = dims.displayWidth / auth.width;
2194
- var scaleY = dims.displayHeight / auth.height;
2167
+ var scaleX = (coordinateSpace === null || coordinateSpace === void 0 ? void 0 : coordinateSpace.width) ? dims.displayWidth / coordinateSpace.width : dims.scaleX;
2168
+ var scaleY = (coordinateSpace === null || coordinateSpace === void 0 ? void 0 : coordinateSpace.height) ? dims.displayHeight / coordinateSpace.height : dims.scaleY;
2195
2169
  var left = overlay.x * scaleX;
2196
2170
  var top = overlay.y * scaleY;
2197
2171
  var width = overlay.width * scaleX;