@grizzshutsdown/simpleplayer 0.1.7 → 0.1.9
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 +2 -2
- package/dist/simple-player.js +122 -94
- package/dist/simple-player.js.map +1 -1
- package/package.json +1 -1
- package/skill/simpleplayer/SKILL.md +2 -2
package/README.md
CHANGED
|
@@ -97,9 +97,9 @@ declare module 'react' {
|
|
|
97
97
|
- `src`: video URL.
|
|
98
98
|
- `aspect-ratio`: player aspect ratio. Default: `16 / 9`.
|
|
99
99
|
- `preload-margin`: lazy-load margin before the video enters view. Default: `360px 0px`.
|
|
100
|
-
- `controls`: add a controls tray with volume, Picture-in-Picture, and fullscreen buttons.
|
|
100
|
+
- `controls`: add a controls tray with volume, Picture-in-Picture, and fullscreen buttons. The volume control automatically disables itself if the video has no audio track.
|
|
101
101
|
- `disable-autoplay`: turn off default autoplay. Autoplay starts muted so browsers allow it.
|
|
102
|
-
- `show-time`: dual-mode timestamp. When used with `controls`, shows a pinned glass timestamp tray in the bottom-left alongside the controls tray. When used without `controls`, shows a hover tooltip above the scrubber as you drag or hover it. Clicking the timestamp toggles between elapsed and remaining time.
|
|
102
|
+
- `show-time`: dual-mode timestamp. When used with `controls`, shows a pinned glass timestamp tray in the bottom-left alongside the controls tray. When used without `controls`, shows a hover tooltip above the scrubber as you drag or hover it. Clicking the timestamp toggles between elapsed and remaining time. The tray automatically resizes to fit the text as the time changes during playback.
|
|
103
103
|
|
|
104
104
|
The default player matches the simple preview: play/pause, scrubber, muted autoplay, and no extra side controls.
|
|
105
105
|
|