@nikelroot/video-player 0.3.3 → 0.3.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.cjs CHANGED
@@ -958,6 +958,7 @@ var VideoPlayerBase = (props, ref) => {
958
958
  videoOnlySrc,
959
959
  audioRanges,
960
960
  onAudioFallbackChange,
961
+ afterScroll,
961
962
  ...videoProps
962
963
  } = props;
963
964
  const primarySrc = rawVideoSrc.replaceAll(" ", "%20").replaceAll("#", "%23");
@@ -1217,6 +1218,7 @@ var VideoPlayerBase = (props, ref) => {
1217
1218
  block: "center",
1218
1219
  inline: "nearest"
1219
1220
  });
1221
+ afterScroll && afterScroll();
1220
1222
  }
1221
1223
  }
1222
1224
  }, [
package/dist/index.d.cts CHANGED
@@ -90,6 +90,7 @@ interface VideoPlayerProps extends Omit<React.VideoHTMLAttributes<HTMLVideoEleme
90
90
  onPointerUp?: PointerHandler;
91
91
  onPointerCancel?: PointerHandler;
92
92
  accentColor?: string;
93
+ afterScroll?: () => void;
93
94
  }
94
95
  declare function hasNativeHlsSupport(): boolean;
95
96
  declare const VideoPlayer: React.NamedExoticComponent<VideoPlayerProps & React.RefAttributes<VideoPlayerHandle>>;
package/dist/index.d.ts CHANGED
@@ -90,6 +90,7 @@ interface VideoPlayerProps extends Omit<React.VideoHTMLAttributes<HTMLVideoEleme
90
90
  onPointerUp?: PointerHandler;
91
91
  onPointerCancel?: PointerHandler;
92
92
  accentColor?: string;
93
+ afterScroll?: () => void;
93
94
  }
94
95
  declare function hasNativeHlsSupport(): boolean;
95
96
  declare const VideoPlayer: React.NamedExoticComponent<VideoPlayerProps & React.RefAttributes<VideoPlayerHandle>>;
package/dist/index.js CHANGED
@@ -929,6 +929,7 @@ var VideoPlayerBase = (props, ref) => {
929
929
  videoOnlySrc,
930
930
  audioRanges,
931
931
  onAudioFallbackChange,
932
+ afterScroll,
932
933
  ...videoProps
933
934
  } = props;
934
935
  const primarySrc = rawVideoSrc.replaceAll(" ", "%20").replaceAll("#", "%23");
@@ -1188,6 +1189,7 @@ var VideoPlayerBase = (props, ref) => {
1188
1189
  block: "center",
1189
1190
  inline: "nearest"
1190
1191
  });
1192
+ afterScroll && afterScroll();
1191
1193
  }
1192
1194
  }
1193
1195
  }, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nikelroot/video-player",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Standalone React video player with HLS support.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -48,5 +48,5 @@
48
48
  "access": "public",
49
49
  "registry": "https://registry.npmjs.org/"
50
50
  },
51
- "gitHead": "00fca415c7ef041917872f1349ff3739b1b8da47"
51
+ "gitHead": "7397c01305b40debca1523d771784247db250de0"
52
52
  }