@grizzshutsdown/simpleplayer 0.1.6 → 0.1.8

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 CHANGED
@@ -97,7 +97,7 @@ 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
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.
103
103
 
@@ -1,2 +1,4 @@
1
1
  export declare function formatVideoTime(time: number): string;
2
- export declare function detectAudioAvailability(video: HTMLVideoElement, fallback: boolean): boolean;
2
+ export type AudioAvailability = 'available' | 'unavailable' | 'unknown';
3
+ export declare function detectAudioAvailability(video: HTMLVideoElement): AudioAvailability;
4
+ export declare function isAudioAvailabilityPending(video: HTMLVideoElement): boolean;