stormcloud-video-player 0.8.76 → 0.8.77

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/Player.d.cts CHANGED
@@ -11,7 +11,7 @@ interface PlayerProps extends BaseStormcloudPlayerProps {
11
11
  }
12
12
  declare class Player extends Component<PlayerProps> {
13
13
  static displayName: string;
14
- static defaultProps: Required<Omit<BaseStormcloudPlayerProps, "ctvAdRequest" | keyof React.VideoHTMLAttributes<HTMLVideoElement> | "onReady">>;
14
+ static defaultProps: Required<Omit<BaseStormcloudPlayerProps, "onReady" | "vastTagUrl" | "ctvAdRequest" | "minRemainingMsToRequestAd" | "maxNoFillsPerBreak" | "maxAdBreakExtensionMs" | keyof React.VideoHTMLAttributes<HTMLVideoElement>>>;
15
15
  private mounted;
16
16
  private isReady;
17
17
  private isPlaying;
@@ -80,9 +80,13 @@ declare class Player extends Component<PlayerProps> {
80
80
  licenseKey?: string;
81
81
  isVmap?: boolean;
82
82
  vmapUrl?: string;
83
+ vastTagUrl?: string;
83
84
  adFailsafeTimeoutMs?: number;
84
85
  minSegmentsBeforePlay?: number;
85
86
  ctvAdRequest?: boolean;
87
+ minRemainingMsToRequestAd?: number;
88
+ maxNoFillsPerBreak?: number;
89
+ maxAdBreakExtensionMs?: number;
86
90
  onStart?: () => void;
87
91
  onBuffer?: () => void;
88
92
  onBufferEnd?: () => void;
@@ -130,9 +134,13 @@ declare class Player extends Component<PlayerProps> {
130
134
  licenseKey?: string;
131
135
  isVmap?: boolean;
132
136
  vmapUrl?: string;
137
+ vastTagUrl?: string;
133
138
  adFailsafeTimeoutMs?: number;
134
139
  minSegmentsBeforePlay?: number;
135
140
  ctvAdRequest?: boolean;
141
+ minRemainingMsToRequestAd?: number;
142
+ maxNoFillsPerBreak?: number;
143
+ maxAdBreakExtensionMs?: number;
136
144
  onStart?: () => void;
137
145
  onBuffer?: () => void;
138
146
  onBufferEnd?: () => void;
@@ -13496,6 +13496,12 @@ var HlsPlayer = /*#__PURE__*/ function(_import_react2_Component) {
13496
13496
  if (_this1.props.adFailsafeTimeoutMs !== void 0) config.adFailsafeTimeoutMs = _this1.props.adFailsafeTimeoutMs;
13497
13497
  if (_this1.props.minSegmentsBeforePlay !== void 0) config.minSegmentsBeforePlay = _this1.props.minSegmentsBeforePlay;
13498
13498
  if (_this1.props.ctvAdRequest !== void 0) config.ctvAdRequest = _this1.props.ctvAdRequest;
13499
+ if (_this1.props.vastTagUrl !== void 0) config.vastTagUrl = _this1.props.vastTagUrl;
13500
+ if (_this1.props.isVmap !== void 0) config.isVmap = _this1.props.isVmap;
13501
+ if (_this1.props.vmapUrl !== void 0) config.vmapUrl = _this1.props.vmapUrl;
13502
+ if (_this1.props.minRemainingMsToRequestAd !== void 0) config.minRemainingMsToRequestAd = _this1.props.minRemainingMsToRequestAd;
13503
+ if (_this1.props.maxNoFillsPerBreak !== void 0) config.maxNoFillsPerBreak = _this1.props.maxNoFillsPerBreak;
13504
+ if (_this1.props.maxAdBreakExtensionMs !== void 0) config.maxAdBreakExtensionMs = _this1.props.maxAdBreakExtensionMs;
13499
13505
  _this1.player = new StormcloudVideoPlayer(config);
13500
13506
  (_this_props_onMount = (_this_props = _this1.props).onMount) === null || _this_props_onMount === void 0 ? void 0 : _this_props_onMount.call(_this_props, _this1);
13501
13507
  return [
@@ -14259,9 +14265,13 @@ var SUPPORTED_PROPS = [
14259
14265
  "licenseKey",
14260
14266
  "isVmap",
14261
14267
  "vmapUrl",
14268
+ "vastTagUrl",
14262
14269
  "adFailsafeTimeoutMs",
14263
14270
  "minSegmentsBeforePlay",
14264
14271
  "ctvAdRequest",
14272
+ "minRemainingMsToRequestAd",
14273
+ "maxNoFillsPerBreak",
14274
+ "maxAdBreakExtensionMs",
14265
14275
  "onReady",
14266
14276
  "onStart",
14267
14277
  "onPlay",