softbuilders-react-video-player 1.1.53 → 1.1.54

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ const BufferTracker = () => {
6
6
  useEffect(() => {
7
7
  const intervalId = setInterval(() => {
8
8
  if (player)
9
- setDownloadedBufferTimeufferTime(player.bufferedEnd());
9
+ setDownloadedBufferTimeufferTime(player === null || player === void 0 ? void 0 : player.bufferedEnd());
10
10
  }, 1000);
11
11
  // Cleanup function to clear the interval
12
12
  return () => clearInterval(intervalId);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/BufferTracker/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AAErF,MAAM,aAAa,GAAG,GAAG,EAAE;IACzB,MAAM,EAAE,MAAM,EAAE,gCAAgC,EAAE,GAChD,iCAAiC,EAAE,CAAC;IAEtC,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,EAAE;YAClC,IAAI,MAAM;gBAAE,gCAAgC,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC;QACrE,CAAC,EAAE,IAAI,CAAC,CAAC;QAET,yCAAyC;QACzC,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACzC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACb,OAAO,mBAAK,CAAC;AACf,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/BufferTracker/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;AAErF,MAAM,aAAa,GAAG,GAAG,EAAE;IACzB,MAAM,EAAE,MAAM,EAAE,gCAAgC,EAAE,GAChD,iCAAiC,EAAE,CAAC;IAEtC,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,EAAE;YAClC,IAAI,MAAM;gBAAE,gCAAgC,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,WAAW,EAAE,CAAC,CAAC;QACtE,CAAC,EAAE,IAAI,CAAC,CAAC;QAET,yCAAyC;QACzC,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACzC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACb,OAAO,mBAAK,CAAC;AACf,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -7,7 +7,7 @@ const BufferTracker = () => {
7
7
 
8
8
  useEffect(() => {
9
9
  const intervalId = setInterval(() => {
10
- if (player) setDownloadedBufferTimeufferTime(player.bufferedEnd());
10
+ if (player) setDownloadedBufferTimeufferTime(player?.bufferedEnd());
11
11
  }, 1000);
12
12
 
13
13
  // Cleanup function to clear the interval
package/dist/index.mjs CHANGED
@@ -1089,7 +1089,7 @@ var BufferTracker = () => {
1089
1089
  const { player, setDownloadedBufferTimeufferTime } = useSoftBuildersVideoPlayerContext();
1090
1090
  useEffect10(() => {
1091
1091
  const intervalId = setInterval(() => {
1092
- if (player) setDownloadedBufferTimeufferTime(player.bufferedEnd());
1092
+ if (player) setDownloadedBufferTimeufferTime(player == null ? void 0 : player.bufferedEnd());
1093
1093
  }, 1e3);
1094
1094
  return () => clearInterval(intervalId);
1095
1095
  }, [player]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "softbuilders-react-video-player",
3
3
  "description": "Standalone video player component",
4
- "version": "1.1.53",
4
+ "version": "1.1.54",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [