@@ -19,7 +19,9 @@ const Players: PlayerEntry[] = [
1919 name : 'hls.js' ,
2020 canPlay : canPlay . hls ,
2121 canEnablePIP : ( ) => true ,
22- player : lazy ( ( ) => import ( /* webpackChunkName: 'reactPlayerHls' */ 'hls-video-element/react' ) ) ,
22+ player : lazy (
23+ ( ) => import ( /* webpackChunkName: 'reactPlayerHls' */ 'hls-video-element/react' )
24+ ) as React . LazyExoticComponent < React . ComponentType < VideoElementProps > > ,
2325 } ,
2426 {
2527 key : 'dash' ,
@@ -28,7 +30,7 @@ const Players: PlayerEntry[] = [
2830 canEnablePIP : ( ) => true ,
2931 player : lazy (
3032 ( ) => import ( /* webpackChunkName: 'reactPlayerDash' */ 'dash-video-element/react' )
31- ) ,
33+ ) as React . LazyExoticComponent < React . ComponentType < VideoElementProps > > ,
3234 } ,
3335 {
3436 key : 'mux' ,
@@ -45,15 +47,15 @@ const Players: PlayerEntry[] = [
4547 canPlay : canPlay . youtube ,
4648 player : lazy (
4749 ( ) => import ( /* webpackChunkName: 'reactPlayerYouTube' */ 'youtube-video-element/react' )
48- ) ,
50+ ) as React . LazyExoticComponent < React . ComponentType < VideoElementProps > > ,
4951 } ,
5052 {
5153 key : 'vimeo' ,
5254 name : 'Vimeo' ,
5355 canPlay : canPlay . vimeo ,
5456 player : lazy (
5557 ( ) => import ( /* webpackChunkName: 'reactPlayerVimeo' */ 'vimeo-video-element/react' )
56- ) ,
58+ ) as React . LazyExoticComponent < React . ComponentType < VideoElementProps > > ,
5759 } ,
5860 {
5961 key : 'wistia' ,
@@ -62,7 +64,7 @@ const Players: PlayerEntry[] = [
6264 canEnablePIP : ( ) => true ,
6365 player : lazy (
6466 ( ) => import ( /* webpackChunkName: 'reactPlayerWistia' */ 'wistia-video-element/react' )
65- ) ,
67+ ) as React . LazyExoticComponent < React . ComponentType < VideoElementProps > > ,
6668 } ,
6769 {
6870 key : 'html' ,
0 commit comments