stormcloud-video-player 0.8.2 → 0.8.3

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.
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'react';
2
- import { S as StormcloudVideoPlayerConfig } from '../types-DDwAfBLt.cjs';
2
+ import { S as StormcloudVideoPlayerConfig } from '../types-DWVgdqF-.cjs';
3
3
 
4
4
  interface HlsPlayerProps extends StormcloudVideoPlayerConfig {
5
5
  onMount?: (player: any) => void;
@@ -2531,7 +2531,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
2531
2531
  key: "load",
2532
2532
  value: function load() {
2533
2533
  return _async_to_generator(function() {
2534
- var _this, _this_config_lowLatencyMode, error, _this_config_lowLatencyMode1, _this_video_play;
2534
+ var _this, _this_config_lowLatencyMode, error, _this_config_isLiveStream, _this_config_lowLatencyMode1, _this_video_play;
2535
2535
  return _ts_generator(this, function(_state) {
2536
2536
  switch(_state.label){
2537
2537
  case 0:
@@ -2582,7 +2582,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
2582
2582
  this.nativeHlsMode = true;
2583
2583
  this.videoSrcProtection = this.config.src;
2584
2584
  this.video.src = this.config.src;
2585
- this.isLiveStream = (_this_config_lowLatencyMode1 = this.config.lowLatencyMode) !== null && _this_config_lowLatencyMode1 !== void 0 ? _this_config_lowLatencyMode1 : false;
2585
+ this.isLiveStream = (_this_config_isLiveStream = this.config.isLiveStream) !== null && _this_config_isLiveStream !== void 0 ? _this_config_isLiveStream : (_this_config_lowLatencyMode1 = this.config.lowLatencyMode) !== null && _this_config_lowLatencyMode1 !== void 0 ? _this_config_lowLatencyMode1 : false;
2586
2586
  if (this.config.debugAdTiming) {
2587
2587
  console.log("[StormcloudVideoPlayer] Using native HLS playback - VOD mode:", {
2588
2588
  isLive: this.isLiveStream,
@@ -2633,11 +2633,11 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
2633
2633
  });
2634
2634
  this.hls.on(import_hls2.default.Events.MANIFEST_PARSED, function(_, data) {
2635
2635
  return _async_to_generator(function() {
2636
- var _ref, _this_config_minSegmentsBeforePlay, _this_hls_levels, _this_hls, prerollKey, adBehavior, minSegments, _this_video_play;
2636
+ var _this_config_isLiveStream, _ref, _this_config_minSegmentsBeforePlay, _this_hls_levels, _this_hls, prerollKey, adBehavior, minSegments, _this_video_play;
2637
2637
  return _ts_generator(this, function(_state) {
2638
2638
  switch(_state.label){
2639
2639
  case 0:
2640
- this.isLiveStream = (_ref = (_this_hls = this.hls) === null || _this_hls === void 0 ? void 0 : (_this_hls_levels = _this_hls.levels) === null || _this_hls_levels === void 0 ? void 0 : _this_hls_levels.some(function(level) {
2640
+ this.isLiveStream = (_this_config_isLiveStream = this.config.isLiveStream) !== null && _this_config_isLiveStream !== void 0 ? _this_config_isLiveStream : (_ref = (_this_hls = this.hls) === null || _this_hls === void 0 ? void 0 : (_this_hls_levels = _this_hls.levels) === null || _this_hls_levels === void 0 ? void 0 : _this_hls_levels.some(function(level) {
2641
2641
  var _level_details, _level_details1;
2642
2642
  return (level === null || level === void 0 ? void 0 : (_level_details = level.details) === null || _level_details === void 0 ? void 0 : _level_details.live) === true || (level === null || level === void 0 ? void 0 : (_level_details1 = level.details) === null || _level_details1 === void 0 ? void 0 : _level_details1.type) === "LIVE";
2643
2643
  })) !== null && _ref !== void 0 ? _ref : false;