@brndts/brndts-ads 1.14.3 → 1.14.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/dist/index.js CHANGED
@@ -74819,6 +74819,9 @@ var BradmaxMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
74819
74819
  {
74820
74820
  key: "handlePlayEvent",
74821
74821
  value: function handlePlayEvent() {
74822
+ if (!this.ready) {
74823
+ this.mediaIsReady();
74824
+ }
74822
74825
  this.emit("PLAY");
74823
74826
  this.context.store.dispatch({
74824
74827
  type: "PLAY"
@@ -74828,6 +74831,9 @@ var BradmaxMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
74828
74831
  {
74829
74832
  key: "handlePauseEvent",
74830
74833
  value: function handlePauseEvent() {
74834
+ if (!this.ready) {
74835
+ this.mediaIsReady();
74836
+ }
74831
74837
  this.emit("PAUSED");
74832
74838
  this.context.store.dispatch({
74833
74839
  type: "PAUSE"
@@ -74837,12 +74843,18 @@ var BradmaxMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
74837
74843
  {
74838
74844
  key: "handleSeekingEvent",
74839
74845
  value: function handleSeekingEvent() {
74846
+ if (!this.ready) {
74847
+ this.mediaIsReady();
74848
+ }
74840
74849
  this.emit("SEEKING");
74841
74850
  }
74842
74851
  },
74843
74852
  {
74844
74853
  key: "handleSeekedEvent",
74845
74854
  value: function handleSeekedEvent() {
74855
+ if (!this.ready) {
74856
+ this.mediaIsReady();
74857
+ }
74846
74858
  this.emit("SEEKED");
74847
74859
  }
74848
74860
  },