diff --git a/patches/shaka-player+4.11.7.patch b/patches/shaka-player+4.11.7.patch new file mode 100644 index 00000000..ee5b340f --- /dev/null +++ b/patches/shaka-player+4.11.7.patch @@ -0,0 +1,39 @@ +diff --git a/node_modules/shaka-player/dist/shaka-player.compiled.d.ts b/node_modules/shaka-player/dist/shaka-player.compiled.d.ts +index 19c0930..cc0a3fd 100644 +--- a/node_modules/shaka-player/dist/shaka-player.compiled.d.ts ++++ b/node_modules/shaka-player/dist/shaka-player.compiled.d.ts +@@ -5117,3 +5117,5 @@ declare namespace shaka.extern { + declare namespace shaka.extern { + type TransmuxerPlugin = ( ) => shaka.extern.Transmuxer ; + } ++ ++export default shaka; +diff --git a/node_modules/shaka-player/dist/shaka-player.ui.d.ts b/node_modules/shaka-player/dist/shaka-player.ui.d.ts +index 1618ca0..a6076c6 100644 +--- a/node_modules/shaka-player/dist/shaka-player.ui.d.ts ++++ b/node_modules/shaka-player/dist/shaka-player.ui.d.ts +@@ -5830,3 +5830,5 @@ declare namespace shaka.extern { + declare namespace shaka.extern { + type UIVolumeBarColors = { base : string , level : string } ; + } ++ ++export default shaka; +diff --git a/node_modules/shaka-player/index.d.ts b/node_modules/shaka-player/index.d.ts +new file mode 100644 +index 0000000..3ebfd96 +--- /dev/null ++++ b/node_modules/shaka-player/index.d.ts +@@ -0,0 +1,2 @@ ++/// ++/// +\ No newline at end of file +diff --git a/node_modules/shaka-player/ui.d.ts b/node_modules/shaka-player/ui.d.ts +new file mode 100644 +index 0000000..84a3be0 +--- /dev/null ++++ b/node_modules/shaka-player/ui.d.ts +@@ -0,0 +1,3 @@ ++import shaka from 'shaka-player/dist/shaka-player.ui' ++export * from 'shaka-player/dist/shaka-player.ui' ++export default shaka; +\ No newline at end of file diff --git a/src/Video.web.tsx b/src/Video.web.tsx index 22768074..2dfd72a7 100644 --- a/src/Video.web.tsx +++ b/src/Video.web.tsx @@ -6,7 +6,7 @@ import React, { useRef, type RefObject, } from 'react'; -import shaka from 'shaka-player'; +import shaka from 'shaka-player/ui'; import type { VideoRef, ReactVideoProps, VideoMetadata } from './types'; const Video = forwardRef(