@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.mjs CHANGED
@@ -74905,6 +74905,9 @@ var BradmaxMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
74905
74905
  {
74906
74906
  key: "handlePlayEvent",
74907
74907
  value: function handlePlayEvent() {
74908
+ if (!this.ready) {
74909
+ this.mediaIsReady();
74910
+ }
74908
74911
  this.emit("PLAY");
74909
74912
  this.context.store.dispatch({
74910
74913
  type: "PLAY"
@@ -74914,6 +74917,9 @@ var BradmaxMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
74914
74917
  {
74915
74918
  key: "handlePauseEvent",
74916
74919
  value: function handlePauseEvent() {
74920
+ if (!this.ready) {
74921
+ this.mediaIsReady();
74922
+ }
74917
74923
  this.emit("PAUSED");
74918
74924
  this.context.store.dispatch({
74919
74925
  type: "PAUSE"
@@ -74923,12 +74929,18 @@ var BradmaxMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
74923
74929
  {
74924
74930
  key: "handleSeekingEvent",
74925
74931
  value: function handleSeekingEvent() {
74932
+ if (!this.ready) {
74933
+ this.mediaIsReady();
74934
+ }
74926
74935
  this.emit("SEEKING");
74927
74936
  }
74928
74937
  },
74929
74938
  {
74930
74939
  key: "handleSeekedEvent",
74931
74940
  value: function handleSeekedEvent() {
74941
+ if (!this.ready) {
74942
+ this.mediaIsReady();
74943
+ }
74932
74944
  this.emit("SEEKED");
74933
74945
  }
74934
74946
  },