@halibegic/react-video-player 0.0.53 → 0.0.54

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.
@@ -1052,7 +1052,7 @@ const cr = () => zn(), ur = (e, t) => ({
1052
1052
  },
1053
1053
  handleLoadStart: () => {
1054
1054
  const n = t().techRef.current;
1055
- n && (t().eventEmitter.emit("loadStart"), e({ isReady: !0 }), n.play().then(() => {
1055
+ n && (t().eventEmitter.emit("loadStart"), e({ isReady: !0 }), !(t().isStarted && !t().isPlaying) && n.play().then(() => {
1056
1056
  e({
1057
1057
  isEnded: !1,
1058
1058
  isLoading: !1,
@@ -1150,12 +1150,12 @@ const cr = () => zn(), ur = (e, t) => ({
1150
1150
  },
1151
1151
  seek: (n) => {
1152
1152
  const r = t().techRef.current;
1153
- r && (r.currentTime = n, (r.paused || r.ended) && r.play(), e({
1153
+ r && (r.currentTime = n, e({
1154
1154
  seekTime: -1,
1155
1155
  currentTime: n,
1156
1156
  isStarted: !0,
1157
- isEnded: !1,
1158
- isPlaying: !0
1157
+ isEnded: !1
1158
+ // isPlaying: true,
1159
1159
  }));
1160
1160
  },
1161
1161
  setIsLoading: (n) => e({ isLoading: n }),
@@ -1228,7 +1228,7 @@ const f = (e) => {
1228
1228
  if (!t)
1229
1229
  throw new Error("usePlayerStore must be used within PlayerStoreProvider");
1230
1230
  return Dt(t, e);
1231
- }, _r = "0.0.53", Je = {
1231
+ }, _r = "0.0.54", Je = {
1232
1232
  version: _r
1233
1233
  }, Ye = 11e3, Ze = {
1234
1234
  DEBUG: 2,
@@ -1729,7 +1729,6 @@ function tn({
1729
1729
  ref: P,
1730
1730
  className: Wr.playerVideo,
1731
1731
  playsInline: !0,
1732
- autoPlay: !0,
1733
1732
  controls: !1,
1734
1733
  muted: n,
1735
1734
  preload: "auto",