@banou/media-player 0.7.0 → 0.8.0
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/README.md +3 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.js +329 -285
- package/dist/react/components/chrome.d.ts +5 -2
- package/dist/react/hooks/use-playback.d.ts +4 -2
- package/dist/react/hooks/use-thumbnails.d.ts +3 -2
- package/dist/react/media.d.ts +98 -0
- package/dist/react/player.d.ts +7 -6
- package/dist/react/source-feature.d.ts +35 -13
- package/dist/react/video-player.d.ts +45 -5
- package/dist/utils/track-label.d.ts +12 -0
- package/package.json +13 -4
- package/src/lib/index.tsx +16 -1
- package/src/lib/react/components/chrome.tsx +7 -3
- package/src/lib/react/components/overlay.tsx +14 -10
- package/src/lib/react/components/progress-bar.tsx +29 -26
- package/src/lib/react/components/settings.tsx +22 -29
- package/src/lib/react/components/sound.tsx +1 -1
- package/src/lib/react/components/tooltip-display.tsx +4 -4
- package/src/lib/react/hooks/use-playback.ts +34 -22
- package/src/lib/react/hooks/use-thumbnails.ts +4 -3
- package/src/lib/react/media.ts +124 -0
- package/src/lib/react/source-feature.ts +31 -13
- package/src/lib/react/video-player.tsx +118 -14
- package/src/lib/utils/fonts.ts +66 -66
- package/src/lib/utils/track-label.ts +15 -0
package/README.md
CHANGED
|
@@ -96,8 +96,9 @@ const jassubWorkerUrl = URL.createObjectURL(
|
|
|
96
96
|
)
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
The chrome
|
|
100
|
-
|
|
99
|
+
The chrome brings its own scale and needs nothing from the host page's root font. Everything is sized
|
|
100
|
+
against `--mp-unit`, which defaults to `10px` on the player element; set it there to rescale the whole
|
|
101
|
+
chrome at once.
|
|
101
102
|
|
|
102
103
|
## What it does
|
|
103
104
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { MediaPlayer, default } from './react/video-player';
|
|
2
|
-
export type { MediaPlayerOptions, MediaPlayerSource } from './react/video-player';
|
|
2
|
+
export type { MediaPlayerOptions, MediaPlayerLocalOptions, MediaPlayerRemoteOptions, MediaPlayerSource, } from './react/video-player';
|
|
3
|
+
export { isDelegatedTracks, isExternalThumbnails } from './react/media';
|
|
4
|
+
export type { DelegatedSelection, DelegatedTracks, ExternalThumbnails, PlayerMedia, TimeRangesLike, } from './react/media';
|
|
3
5
|
export { Player, usePlayer } from './react/player';
|
|
4
6
|
export type { PlayerStore } from './react/player';
|
|
5
7
|
export { sourceFeature } from './react/source-feature';
|