@locpd/vidstack 1.12.14
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/LICENSE +21 -0
- package/README.md +22 -0
- package/analyze.json.d.ts +8 -0
- package/bundle.d.ts +1 -0
- package/cdn/chunks/vidstack-2f5gzOW6.js +1 -0
- package/cdn/chunks/vidstack-BYgY9wmd.js +1 -0
- package/cdn/chunks/vidstack-BfBBPhXV.js +1 -0
- package/cdn/chunks/vidstack-Bjo5esRp.js +1 -0
- package/cdn/chunks/vidstack-BuL67v3q.js +1 -0
- package/cdn/chunks/vidstack-C0msPRTd.js +3 -0
- package/cdn/chunks/vidstack-CJNLoJPa.js +1 -0
- package/cdn/chunks/vidstack-CQSpZ7X8.js +16 -0
- package/cdn/chunks/vidstack-C_AxqLKV.js +1 -0
- package/cdn/chunks/vidstack-CioT3Yw2.js +1 -0
- package/cdn/chunks/vidstack-CrqkytHl.js +1 -0
- package/cdn/chunks/vidstack-D0M8R0ZU.js +1 -0
- package/cdn/chunks/vidstack-D40FSa5B.js +3 -0
- package/cdn/chunks/vidstack-DD2JwFVU.js +1 -0
- package/cdn/chunks/vidstack-DRH_1tFW.js +1 -0
- package/cdn/chunks/vidstack-DfDZuHNP.js +1 -0
- package/cdn/chunks/vidstack-DiNS2Vx5.js +1 -0
- package/cdn/chunks/vidstack-xjJ-ui_l.js +1 -0
- package/cdn/providers/vidstack-audio-2Dt_Ivbp.js +1 -0
- package/cdn/providers/vidstack-dash-CUtD4e6q.js +1 -0
- package/cdn/providers/vidstack-google-cast-BdORATUX.js +1 -0
- package/cdn/providers/vidstack-hls-R25Kb6DP.js +1 -0
- package/cdn/providers/vidstack-html-DaAUJYsD.js +1 -0
- package/cdn/providers/vidstack-video-Csvox7SO.js +1 -0
- package/cdn/providers/vidstack-vimeo-D4Z96kg2.js +1 -0
- package/cdn/providers/vidstack-youtube-DiND6h3s.js +1 -0
- package/cdn/vidstack.js +1 -0
- package/cdn/with-layouts/chunks/vidstack-2f5gzOW6.js +1 -0
- package/cdn/with-layouts/chunks/vidstack-45yH5los.js +1 -0
- package/cdn/with-layouts/chunks/vidstack-BBVMdOnf.js +1 -0
- package/cdn/with-layouts/chunks/vidstack-BB_ulI_T.js +1 -0
- package/cdn/with-layouts/chunks/vidstack-BcAewM33.js +1 -0
- package/cdn/with-layouts/chunks/vidstack-BfBBPhXV.js +1 -0
- package/cdn/with-layouts/chunks/vidstack-Bxv1Qnxe.js +1 -0
- package/cdn/with-layouts/chunks/vidstack-C2ZbG62f.js +3 -0
- package/cdn/with-layouts/chunks/vidstack-CCYIOKgL.js +1 -0
- package/cdn/with-layouts/chunks/vidstack-CL6PeIO1.js +1 -0
- package/cdn/with-layouts/chunks/vidstack-C_AxqLKV.js +1 -0
- package/cdn/with-layouts/chunks/vidstack-CifDkwDH.js +795 -0
- package/cdn/with-layouts/chunks/vidstack-Cry7aD59.js +3 -0
- package/cdn/with-layouts/chunks/vidstack-D065okCn.js +1 -0
- package/cdn/with-layouts/chunks/vidstack-DGuMoXmI.js +1 -0
- package/cdn/with-layouts/chunks/vidstack-DRH_1tFW.js +1 -0
- package/cdn/with-layouts/chunks/vidstack-DVBs1XoQ.js +1 -0
- package/cdn/with-layouts/chunks/vidstack-Dge3KT8k.js +1 -0
- package/cdn/with-layouts/chunks/vidstack-DiNS2Vx5.js +1 -0
- package/cdn/with-layouts/chunks/vidstack-HvYfJoen.js +1 -0
- package/cdn/with-layouts/providers/vidstack-audio-DE5vKIzW.js +1 -0
- package/cdn/with-layouts/providers/vidstack-dash-CA2agUuZ.js +1 -0
- package/cdn/with-layouts/providers/vidstack-google-cast-CGs-t8HM.js +1 -0
- package/cdn/with-layouts/providers/vidstack-hls-BHMbMFFR.js +1 -0
- package/cdn/with-layouts/providers/vidstack-html-Dm9gmNk6.js +1 -0
- package/cdn/with-layouts/providers/vidstack-video-C5it_Lbl.js +1 -0
- package/cdn/with-layouts/providers/vidstack-vimeo-BabLn9sy.js +1 -0
- package/cdn/with-layouts/providers/vidstack-youtube-D8UlccUL.js +1 -0
- package/cdn/with-layouts/vidstack.js +1 -0
- package/dev/chunks/vidstack-B7Zi3v_O.js +104 -0
- package/dev/chunks/vidstack-BFg1ZqiG.js +91 -0
- package/dev/chunks/vidstack-BGB2pa9s.js +58 -0
- package/dev/chunks/vidstack-BaIbHZE3.js +1519 -0
- package/dev/chunks/vidstack-Bb2rASIc.js +5188 -0
- package/dev/chunks/vidstack-Bcmx8pmK.js +224 -0
- package/dev/chunks/vidstack-Bl4b0Nen.js +29 -0
- package/dev/chunks/vidstack-Bo5OTJ06.js +58 -0
- package/dev/chunks/vidstack-BoAGnlRt.js +58 -0
- package/dev/chunks/vidstack-Bpr4fI4n.js +7 -0
- package/dev/chunks/vidstack-Bt8MP2DK.js +204 -0
- package/dev/chunks/vidstack-Bu2kfzUd.js +1637 -0
- package/dev/chunks/vidstack-C-ffXlSV.js +2995 -0
- package/dev/chunks/vidstack-C-ztJq-f.js +109 -0
- package/dev/chunks/vidstack-CFNlaVTR.js +55 -0
- package/dev/chunks/vidstack-C_l97D5j.js +254 -0
- package/dev/chunks/vidstack-CjhKISI0.js +114 -0
- package/dev/chunks/vidstack-CofXIJAy.js +57 -0
- package/dev/chunks/vidstack-CwTj4H1w.js +18 -0
- package/dev/chunks/vidstack-DDwbYVHV.js +66 -0
- package/dev/chunks/vidstack-DFImIcIL.js +11 -0
- package/dev/chunks/vidstack-DGDvUbvO.js +33 -0
- package/dev/chunks/vidstack-DO0kqA99.js +107 -0
- package/dev/chunks/vidstack-DXxIKXmd.js +50 -0
- package/dev/chunks/vidstack-DajrMUR0.js +297 -0
- package/dev/chunks/vidstack-DbBJlz7I.js +10 -0
- package/dev/chunks/vidstack-Dihypf8P.js +11 -0
- package/dev/chunks/vidstack-DlAhl87f.js +1193 -0
- package/dev/chunks/vidstack-Dm1xEU9Q.js +34 -0
- package/dev/chunks/vidstack-Dv_LIPFu.js +14 -0
- package/dev/chunks/vidstack-igYn0Apa.js +254 -0
- package/dev/chunks/vidstack-krOAtKMi.js +32 -0
- package/dev/chunks/vidstack-qh1N5_f_.js +26 -0
- package/dev/chunks/vidstack-rB-wqXw1.js +107 -0
- package/dev/chunks/vidstack-zG6PIeGg.js +66 -0
- package/dev/define/plyr-layout.js +51 -0
- package/dev/define/templates/plyr-layout.js +571 -0
- package/dev/define/templates/vidstack-audio-layout.js +167 -0
- package/dev/define/templates/vidstack-video-layout.js +390 -0
- package/dev/define/vidstack-icons.js +1 -0
- package/dev/define/vidstack-player-default-layout.js +21 -0
- package/dev/define/vidstack-player-layouts.js +25 -0
- package/dev/define/vidstack-player-ui.js +70 -0
- package/dev/define/vidstack-player.js +19 -0
- package/dev/global/plyr.js +501 -0
- package/dev/global/vidstack-player.js +129 -0
- package/dev/providers/vidstack-audio.js +35 -0
- package/dev/providers/vidstack-dash.js +516 -0
- package/dev/providers/vidstack-google-cast.js +474 -0
- package/dev/providers/vidstack-hls.js +408 -0
- package/dev/providers/vidstack-html.js +567 -0
- package/dev/providers/vidstack-video.js +207 -0
- package/dev/providers/vidstack-vimeo.js +554 -0
- package/dev/providers/vidstack-youtube.js +286 -0
- package/dev/vidstack-elements.js +36 -0
- package/dev/vidstack.js +91 -0
- package/dom.d.ts +91 -0
- package/elements.d.ts +1433 -0
- package/empty.vtt +1 -0
- package/global/player.d.ts +52 -0
- package/global/plyr.d.ts +343 -0
- package/google-cast.d.ts +1422 -0
- package/icons.d.ts +1 -0
- package/index.d.ts +402 -0
- package/package.json +199 -0
- package/player/index.d.ts +3 -0
- package/player/layouts/default.d.ts +3 -0
- package/player/layouts/index.d.ts +3 -0
- package/player/layouts/plyr.d.ts +3 -0
- package/player/styles/base.css +153 -0
- package/player/styles/default/buffering.css +55 -0
- package/player/styles/default/buttons.css +175 -0
- package/player/styles/default/captions.css +181 -0
- package/player/styles/default/chapter-title.css +26 -0
- package/player/styles/default/controls.css +56 -0
- package/player/styles/default/gestures.css +19 -0
- package/player/styles/default/icons.css +6 -0
- package/player/styles/default/keyboard.css +148 -0
- package/player/styles/default/layouts/audio.css +417 -0
- package/player/styles/default/layouts/video.css +590 -0
- package/player/styles/default/menus.css +959 -0
- package/player/styles/default/poster.css +52 -0
- package/player/styles/default/sliders.css +391 -0
- package/player/styles/default/theme.css +2461 -0
- package/player/styles/default/thumbnail.css +40 -0
- package/player/styles/default/time.css +45 -0
- package/player/styles/default/tooltips.css +141 -0
- package/player/styles/plyr/theme.css +1237 -0
- package/player/ui.d.ts +3 -0
- package/plugins.d.ts +19 -0
- package/plugins.js +13 -0
- package/prod/chunks/vidstack-B01xzxC4.js +7 -0
- package/prod/chunks/vidstack-BCeb7ryV.js +201 -0
- package/prod/chunks/vidstack-BGSTndAW.js +1590 -0
- package/prod/chunks/vidstack-BPitBBjh.js +1519 -0
- package/prod/chunks/vidstack-BQlOPwOu.js +45 -0
- package/prod/chunks/vidstack-BSDzlwxO.js +4778 -0
- package/prod/chunks/vidstack-BT0m6zEi.js +109 -0
- package/prod/chunks/vidstack-BTigPj2h.js +55 -0
- package/prod/chunks/vidstack-BiyXcJ_M.js +107 -0
- package/prod/chunks/vidstack-BoVf5n1M.js +2985 -0
- package/prod/chunks/vidstack-Bq6c3Bam.js +58 -0
- package/prod/chunks/vidstack-ByLCIBtB.js +297 -0
- package/prod/chunks/vidstack-C2US-gSO.js +248 -0
- package/prod/chunks/vidstack-C9vIqaYT.js +10 -0
- package/prod/chunks/vidstack-CF6fixCQ.js +1193 -0
- package/prod/chunks/vidstack-CTojmhKq.js +66 -0
- package/prod/chunks/vidstack-ChQTHmIQ.js +77 -0
- package/prod/chunks/vidstack-Cm6_unwd.js +246 -0
- package/prod/chunks/vidstack-CwTj4H1w.js +18 -0
- package/prod/chunks/vidstack-D3ltXc3a.js +33 -0
- package/prod/chunks/vidstack-D5EzK014.js +14 -0
- package/prod/chunks/vidstack-DDXt6fpN.js +58 -0
- package/prod/chunks/vidstack-DJDnh4xT.js +11 -0
- package/prod/chunks/vidstack-DXxIKXmd.js +50 -0
- package/prod/chunks/vidstack-D_-9AA6_.js +29 -0
- package/prod/chunks/vidstack-DbkZGjSn.js +107 -0
- package/prod/chunks/vidstack-Dihypf8P.js +11 -0
- package/prod/chunks/vidstack-Dm1xEU9Q.js +34 -0
- package/prod/chunks/vidstack-Dq5Yu0Vr.js +205 -0
- package/prod/chunks/vidstack-DqAw8m9J.js +26 -0
- package/prod/chunks/vidstack-DsPOyKtl.js +57 -0
- package/prod/chunks/vidstack-krOAtKMi.js +32 -0
- package/prod/chunks/vidstack-nLyr4NEP.js +58 -0
- package/prod/chunks/vidstack-xMS8dnYq.js +114 -0
- package/prod/chunks/vidstack-yEGTpgeA.js +104 -0
- package/prod/define/plyr-layout.js +51 -0
- package/prod/define/templates/plyr-layout.js +571 -0
- package/prod/define/templates/vidstack-audio-layout.js +167 -0
- package/prod/define/templates/vidstack-video-layout.js +390 -0
- package/prod/define/vidstack-icons.js +1 -0
- package/prod/define/vidstack-player-default-layout.js +21 -0
- package/prod/define/vidstack-player-layouts.js +25 -0
- package/prod/define/vidstack-player-ui.js +70 -0
- package/prod/define/vidstack-player.js +19 -0
- package/prod/global/plyr.js +493 -0
- package/prod/global/vidstack-player.js +129 -0
- package/prod/providers/vidstack-audio.js +35 -0
- package/prod/providers/vidstack-dash.js +501 -0
- package/prod/providers/vidstack-google-cast.js +468 -0
- package/prod/providers/vidstack-hls.js +393 -0
- package/prod/providers/vidstack-html.js +555 -0
- package/prod/providers/vidstack-video.js +204 -0
- package/prod/providers/vidstack-vimeo.js +548 -0
- package/prod/providers/vidstack-youtube.js +286 -0
- package/prod/vidstack-elements.js +36 -0
- package/prod/vidstack.js +158 -0
- package/server/chunks/vidstack-6juFdkKy.js +29 -0
- package/server/chunks/vidstack-B7iHmv7_.js +307 -0
- package/server/chunks/vidstack-BmxyML9v.js +1619 -0
- package/server/chunks/vidstack-BskfxwD3.js +566 -0
- package/server/chunks/vidstack-BvLV0SMz.js +4642 -0
- package/server/chunks/vidstack-BvWwluXZ.js +205 -0
- package/server/chunks/vidstack-C-413dj2.js +8 -0
- package/server/chunks/vidstack-C26K8z_-.js +55 -0
- package/server/chunks/vidstack-CJJiksDz.js +107 -0
- package/server/chunks/vidstack-CUNv52x1.js +141 -0
- package/server/chunks/vidstack-CqyBCODe.js +295 -0
- package/server/chunks/vidstack-CwTj4H1w.js +18 -0
- package/server/chunks/vidstack-DHAyGSOl.js +1502 -0
- package/server/chunks/vidstack-DLU3cjcp.js +381 -0
- package/server/chunks/vidstack-DXxIKXmd.js +50 -0
- package/server/chunks/vidstack-DbtDXDS2.js +104 -0
- package/server/chunks/vidstack-Dm1xEU9Q.js +34 -0
- package/server/chunks/vidstack-DzTHw_bw.js +207 -0
- package/server/chunks/vidstack-Wn3NH5Sg.js +1566 -0
- package/server/chunks/vidstack-krOAtKMi.js +32 -0
- package/server/chunks/vidstack-wNViAkr4.js +3045 -0
- package/server/define/plyr-layout.js +16 -0
- package/server/define/vidstack-icons.js +1 -0
- package/server/define/vidstack-player-default-layout.js +13 -0
- package/server/define/vidstack-player-layouts.js +16 -0
- package/server/define/vidstack-player-ui.js +11 -0
- package/server/define/vidstack-player.js +6 -0
- package/server/global/plyr.js +322 -0
- package/server/global/vidstack-player.js +58 -0
- package/server/vidstack-elements.js +46 -0
- package/server/vidstack.js +148 -0
- package/tailwind.cjs +101 -0
- package/tailwind.d.cts +15 -0
- package/types/vidstack-BOvzfZjK.d.ts +1269 -0
- package/types/vidstack-Cttpg6GU.d.ts +7474 -0
package/icons.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IconType } from 'media-icons';
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
/// <reference path="./dom.d.ts" />
|
|
2
|
+
/// <reference path="./google-cast.d.ts" />
|
|
3
|
+
|
|
4
|
+
import { TextRenderer, TextTrack, TextTrackList, VideoQuality, MediaKeyShortcuts, AudioProvider, DASHProvider, GoogleCastProvider, HLSProvider, VideoProvider, VimeoProvider, YouTubeProvider, MediaProviderLoader, Src, MediaType, MediaContext, Thumbnail, SliderOrientation } from './types/vidstack-Cttpg6GU.js';
|
|
5
|
+
export { AirPlayButton, AirPlayButtonEvents, AirPlayButtonProps, AnyMediaProvider, AudioGainRadioGroup, AudioGainRadioGroupChangeEvent, AudioGainRadioGroupEvents, AudioGainRadioGroupProps, AudioGainSlider, AudioGainSliderCSSVars, AudioGainSliderEvents, AudioGainSliderProps, AudioGainSliderState, AudioMimeType, AudioRadioGroup, AudioRadioGroupChangeEvent, AudioRadioGroupEvents, AudioRadioGroupProps, AudioRadioOption, AudioSrc, AudioSrcMeta, AudioTrack, AudioTrackAddEvent, AudioTrackChangeEvent, AudioTrackList, AudioTrackListEvent, AudioTrackListEvents, AudioTrackRemoveEvent, CaptionButton, CaptionButtonEvents, CaptionButtonProps, Captions, CaptionsProps, CaptionsRadioGroup, CaptionsRadioGroupChangeEvent, CaptionsRadioGroupEvents, CaptionsRadioGroupProps, CaptionsRadioOption, ChangeAudioTrackEventDetail, ChapterRadioGroupProps, ChaptersRadioGroup, ChaptersRadioGroupChangeEvent, ChaptersRadioGroupEvents, ChaptersRadioOption, Controls, ControlsChangeEvent, ControlsEvents, ControlsGroup, ControlsProps, DASHAdaptationSetRemovedNoCapabilitiesEvent, DASHAllTextTracksAddedEvent, DASHAstInFutureEvent, DASHBaseUrlsUpdatedEvent, DASHBufferLevelUpdatedEvent, DASHBufferLoadedEvent, DASHBufferStalledEvent, DASHBufferStateChangedEvent, DASHCanPlayEvent, DASHCanPlayThroughEvent, DASHCaptionContainerResizeEvent, DASHCaptionRenderedEvent, DASHConformanceViolationEvent, DASHConstructor, DASHConstructorLoader, DASHContentSteeringRequestCompletedEvent, DASHCueEnterEvent, DASHCueExitEvent, DASHDvbFontDownloadAddedEvent, DASHDvbFontDownloadCompleteEvent, DASHDvbFontDownloadFailedEvent, DASHDynamicToStaticEvent, DASHErrorEvent, DASHEventModeOnReceiveEvent, DASHEventModeOnStartEvent, DASHFragmentLoadingAbandonedEvent, DASHFragmentLoadingCompletedEvent, DASHFragmentLoadingProgressEvent, DASHFragmentLoadingStartedEvent, DASHInbandPrftEvent, DASHInstanceCallback, DASHInstanceEvent, DASHLibLoadErrorEvent, DASHLibLoadStartEvent, DASHLibLoadedEvent, DASHLibrary, DASHLogEvent, DASHManagedMediaSourceEndStreamingEvent, DASHManagedMediaSourceStartStreamingEvent, DASHManifestLoadedEvent, DASHManifestLoadingFinishedEvent, DASHManifestLoadingStartedEvent, DASHManifestValidityChangedEvent, DASHMediaEvent, DASHMetricAddedEvent, DASHMetricChangedEvent, DASHMetricUpdatedEvent, DASHMetricsChangedEvent, DASHMimeType, DASHNamespace, DASHNamespaceLoader, DASHPeriodSwitchCompletedEvent, DASHPeriodSwitchStartedEvent, DASHPlaybackEndedEvent, DASHPlaybackErrorEvent, DASHPlaybackLoadedDataEvent, DASHPlaybackMetaDataLoadedEvent, DASHPlaybackNotAllowedEvent, DASHPlaybackPausedEvent, DASHPlaybackPlayingEvent, DASHPlaybackProgressEvent, DASHPlaybackRateChangedEvent, DASHPlaybackSeekedEvent, DASHPlaybackSeekingEvent, DASHPlaybackStalledEvent, DASHPlaybackStartedEvent, DASHPlaybackTimeUpdatedEvent, DASHPlaybackVolumeChangedEvent, DASHPlaybackWaitingEvent, DASHProviderEvents, DASHQualityChangeRenderedEvent, DASHQualityChangeRequestedEvent, DASHRepresentationSwitchEvent, DASHSrc, DASHStreamActivatedEvent, DASHStreamDeactivatedEvent, DASHStreamInitializedEvent, DASHStreamInitializingEvent, DASHStreamTeardownCompleteEvent, DASHStreamUpdatedEvent, DASHTextTrackAddedEvent, DASHThroughputMeasurementStoredEvent, DASHTrackChangeRenderedEvent, DASHTtmlParsedEvent, DASHTtmlToParseEvent, DASHUnsupportedEvent, DEFAULT_AUDIO_GAINS, DEFAULT_PLAYBACK_RATES, DefaultLayoutProps, DefaultLayoutTranslations, DefaultLayoutWord, FileDownloadInfo, FindMediaPlayerEvent, FindMediaPlayerEventDetail, FullscreenAdapter, FullscreenButton, FullscreenButtonEvents, FullscreenButtonProps, FullscreenChangeEvent, FullscreenController, FullscreenErrorEvent, FullscreenEvents, Gesture, GestureAction, GestureEvent, GestureEventType, GestureEvents, GestureProps, GestureTriggerEvent, GestureWillTriggerEvent, GoogleCastButton, GoogleCastButtonEvents, GoogleCastButtonProps, GoogleCastEvent, GoogleCastEvents, GoogleCastLoadStartEvent, GoogleCastLoadedEvent, GoogleCastPromptError, GoogleCastPromptErrorCode, GoogleCastPromptErrorEvent, GoogleCastPromptEvent, HLSAudioTrackLoadedEvent, HLSAudioTrackLoadingEvent, HLSAudioTrackSwitchedEvent, HLSAudioTrackSwitchingEvent, HLSAudioTracksUpdatedEvent, HLSBackBufferReachedEvent, HLSBufferAppendedEvent, HLSBufferAppendingEvent, HLSBufferCodecsEvent, HLSBufferCreatedEvent, HLSBufferEosEvent, HLSBufferFlushedEvent, HLSBufferFlushingEvent, HLSBufferResetEvent, HLSConstructor, HLSConstructorLoader, HLSCuesParsedEvent, HLSDestroyingEvent, HLSErrorEvent, HLSFpsDropEvent, HLSFpsDropLevelCappingEvent, HLSFragBufferedDataEvent, HLSFragChangedEvent, HLSFragDecryptedEvent, HLSFragLoadEmergencyAbortedEvent, HLSFragLoadedEvent, HLSFragLoadingEvent, HLSFragParsedEvent, HLSFragParsingInitSegmentEvent, HLSFragParsingMetadataEvent, HLSFragParsingUserdataEvent, HLSInitPtsFoundEvent, HLSInstanceCallback, HLSInstanceEvent, HLSKeyLoadedEvent, HLSKeyLoadingEvent, HLSLevelLoadedEvent, HLSLevelLoadingEvent, HLSLevelPtsUpdatedEvent, HLSLevelSwitchedEvent, HLSLevelSwitchingEvent, HLSLevelUpdatedEvent, HLSLevelsUpdatedEvent, HLSLibLoadErrorEvent, HLSLibLoadStartEvent, HLSLibLoadedEvent, HLSLibrary, HLSManifestLoadedEvent, HLSManifestLoadingEvent, HLSManifestParsedEvent, HLSMediaAttachedEvent, HLSMediaAttachingEvent, HLSMediaDetachedEvent, HLSMediaDetachingEvent, HLSMediaEvent, HLSMimeType, HLSNonNativeTextTracksFoundEvent, HLSProviderEvents, HLSSrc, HLSSubtitleFragProcessedEvent, HLSSubtitleTrackLoadedEvent, HLSSubtitleTrackLoadingEvent, HLSSubtitleTrackSwitchEvent, HLSSubtitleTracksClearedEvent, HLSSubtitleTracksUpdatedEvent, HLSUnsupportedEvent, HTMLMediaSrc, List, ListAddEvent, ListEvents, ListItem, ListReadonlyChangeEvent, ListRemoveEvent, LiveButton, LiveButtonEvents, LiveButtonProps, LocalMediaStorage, LogEvent, LogEventDetail, Logger, LoggerEvents, MediaAbortEvent, MediaAirPlayRequestEvent, MediaAnnouncer, MediaAnnouncerEvents, MediaAnnouncerProps, MediaAnnouncerState, MediaAnnouncerTranslations, MediaAnnouncerWord, MediaAudioGainChangeEvent, MediaAudioGainChangeRequestEvent, MediaAudioTrackChangeEvent, MediaAudioTrackChangeRequestEvent, MediaAudioTracksChangeEvent, MediaAutoPlayChangeEvent, MediaAutoPlayEvent, MediaAutoPlayEventDetail, MediaAutoPlayFailEvent, MediaAutoPlayFailEventDetail, MediaCanLoadEvent, MediaCanLoadPosterEvent, MediaCanPlayDetail, MediaCanPlayEvent, MediaCanPlayThroughEvent, MediaClipEndChangeRequestEvent, MediaClipStartChangeRequestEvent, MediaControls, MediaControlsChangeEvent, MediaCrossOrigin, MediaDestroyEvent, MediaDurationChangeEvent, MediaDurationChangeRequestEvent, MediaEmptiedEvent, MediaEndEvent, MediaEndedEvent, MediaEnterFullscreenRequestEvent, MediaEnterPIPRequestEvent, MediaErrorCode, MediaErrorDetail, MediaErrorEvent, MediaEvent, MediaEvents, MediaExitFullscreenRequestEvent, MediaExitPIPRequestEvent, MediaFullscreenAdapter, MediaFullscreenChangeEvent, MediaFullscreenErrorEvent, MediaFullscreenRequestTarget, MediaGoogleCastRequestEvent, MediaHidePosterRequestEvent, MediaKeyShortcut, MediaKeyTarget, MediaKeysCallback, MediaLiveChangeEvent, MediaLiveEdgeChangeEvent, MediaLiveEdgeRequestEvent, MediaLoadStartEvent, MediaLoadedDataEvent, MediaLoadedMetadataEvent, MediaLoadingStrategy, MediaLoopChangeEvent, MediaLoopRequestEvent, MediaMuteRequestEvent, MediaOrientationChangeEvent, MediaOrientationLockRequestEvent, MediaOrientationUnlockRequestEvent, MediaPIPChangeEvent, MediaPIPErrorEvent, MediaPauseControlsRequestEvent, MediaPauseEvent, MediaPauseRequestEvent, MediaPlayEvent, MediaPlayFailEvent, MediaPlayRequestEvent, MediaPlayer, MediaPlayerConnectEvent, MediaPlayerEvents, MediaPlayerProps, MediaPlayerQuery, MediaPlayerState, MediaPlayingEvent, MediaPlaysInlineChangeEvent, MediaPosterChangeEvent, MediaPosterLoadingStrategy, MediaPosterStartLoadingRequestEvent, MediaProgressEvent, MediaProgressEventDetail, MediaProvider, MediaProviderAdapter, MediaProviderChangeEvent, MediaProviderLoaderChangeEvent, MediaProviderProps, MediaProviderSetupEvent, MediaProviderState, MediaQualitiesChangeEvent, MediaQualityChangeEvent, MediaQualityChangeRequestEvent, MediaRateChangeEvent, MediaRateChangeRequestEvent, MediaRemoteControl, MediaRemotePlaybackChangeEvent, MediaRemotePlaybackChangeEventDetail, MediaReplayEvent, MediaRequestEvents, MediaResumeControlsRequestEvent, MediaSeekRequestEvent, MediaSeekedEvent, MediaSeekingEvent, MediaSeekingRequestEvent, MediaShowPosterRequestEvent, MediaSourceChangeEvent, MediaSourcesChangeEvent, MediaSrc, MediaSrcObject, MediaStalledEvent, MediaStartLoadingRequestEvent, MediaStartedEvent, MediaState, MediaStateAccessors, MediaStorage, MediaStore, MediaStreamType, MediaStreamTypeChangeEvent, MediaSuspendEvent, MediaTextTrackChangeEvent, MediaTextTrackChangeRequestEvent, MediaTextTracksChangeEvent, MediaTimeChangeEvent, MediaTimeUpdateEvent, MediaTimeUpdateEventDetail, MediaTitleChangeEvent, MediaTypeChangeEvent, MediaUnmuteRequestEvent, MediaUserDualCaptionsChangeRequestEvent, MediaUserEvents, MediaUserLoopChangeRequestEvent, MediaViewType, MediaViewTypeChangeEvent, MediaVolumeChange, MediaVolumeChangeEvent, MediaVolumeChangeRequestEvent, MediaWaitingEvent, Menu, MenuButton, MenuButtonEvents, MenuButtonProps, MenuButtonSelectEvent, MenuCloseEvent, MenuEvents, MenuItem, MenuItems, MenuItemsProps, MenuOpenEvent, MenuPlacement, MenuPlacementAlign, MenuPlacementSide, MenuPortal, MenuPortalContext, MenuPortalProps, MenuProps, MuteButton, MuteButtonEvents, MuteButtonProps, MuxThumbnailStoryboard, MuxThumbnailTile, PIPButton, PIPButtonEvents, PIPButtonProps, PlayButton, PlayButtonEvents, PlayButtonProps, PlayerSrc, PlayerStore, PlyrControl, PlyrLayoutProps, PlyrLayoutTranslations, PlyrLayoutWord, PlyrMarker, Poster, PosterProps, PosterState, QualityRadioGroup, QualityRadioGroupChangeEvent, QualityRadioGroupEvents, QualityRadioGroupProps, QualityRadioOption, QualitySlider, QualitySliderCSSVars, QualitySliderEvents, QualitySliderProps, QualitySliderState, Radio, RadioChangeEvent, RadioEvents, RadioGroup, RadioGroupChangeEvent, RadioGroupEvents, RadioGroupProps, RadioOption, RadioProps, RadioSelectEvent, RemotePlaybackInfo, RemotePlaybackType, ScreenOrientationChangeEvent, ScreenOrientationChangeEventDetail, ScreenOrientationController, ScreenOrientationEvents, ScreenOrientationLockType, ScreenOrientationType, SeekButton, SeekButtonEvents, SeekButtonProps, SerializedVideoQuality, Slider, SliderCSSVars, SliderChapters, SliderChaptersCSSVars, SliderChaptersProps, SliderController, SliderControllerProps, SliderDelegate, SliderDragEndEvent, SliderDragStartEvent, SliderDragValueChangeEvent, SliderEvent, SliderEvents, SliderPointerValueChangeEvent, SliderPreview, SliderPreviewProps, SliderProps, SliderState, SliderStore, SliderValue, SliderValueChangeEvent, SliderValueProps, SliderVideo, SliderVideoCanPlayEvent, SliderVideoErrorEvent, SliderVideoEvents, SliderVideoProps, SliderVideoState, SpeedRadioGroup, SpeedRadioGroupChangeEvent, SpeedRadioGroupEvents, SpeedRadioGroupProps, SpeedSlider, SpeedSliderCSSVars, SpeedSliderEvents, SpeedSliderProps, SpeedSliderState, TextRenderers, TextTrackAddCueEvent, TextTrackAddEvent, TextTrackCueChangeEvent, TextTrackErrorEvent, TextTrackEvent, TextTrackEvents, TextTrackInit, TextTrackListEvent, TextTrackListEvents, TextTrackListModeChangeEvent, TextTrackLoadEvent, TextTrackLoadStartEvent, TextTrackModeChangeEvent, TextTrackReadyState, TextTrackRemoveCueEvent, TextTrackRemoveEvent, ThumbnailCoords, ThumbnailImage, ThumbnailImageInit, ThumbnailProps, ThumbnailSrc, ThumbnailState, ThumbnailStoryboard, ThumbnailTile, ThumbnailsLoader, Time, TimeProps, TimeSlider, TimeSliderCSSVars, TimeSliderEvents, TimeSliderProps, TimeSliderState, TimeState, ToggleButton, ToggleButtonProps, Tooltip, TooltipContent, TooltipContentProps, TooltipPlacement, TooltipPlacementAlign, TooltipPlacementSide, TooltipProps, TooltipTrigger, VTTContent, VTTCueInit, VTTRegionInit, VideoMimeType, VideoPresentationChangeEvent, VideoPresentationEvents, VideoQualityAddEvent, VideoQualityAutoChangeEvent, VideoQualityChangeEvent, VideoQualityChangeEventDetail, VideoQualityList, VideoQualityListEvent, VideoQualityListEvents, VideoQualityRemoveEvent, VideoSrc, VideoSrcMeta, VimeoSrc, VolumeSlider, VolumeSliderCSSVars, VolumeSliderEvents, VolumeSliderProps, VolumeSliderState, YouTubeSrc, boundTime, canFullscreen, getDownloadFile, isTrackCaptionKind, isVideoQualitySrc, mediaContext, mediaState, menuPortalContext, parseJSONCaptionsFile, sliderState, softResetMediaState, updateSliderPreviewPlacement, usePlyrLayoutClasses } from './types/vidstack-Cttpg6GU.js';
|
|
6
|
+
import { EventsTarget, Dispose, ViewController, ReadSignal, WriteSignal, Context } from './types/vidstack-BOvzfZjK.js';
|
|
7
|
+
export { appendTriggerEvent, findTriggerEvent, hasTriggerEvent, isKeyboardClick, isKeyboardEvent, isPointerEvent, walkTriggerEventChain } from './types/vidstack-BOvzfZjK.js';
|
|
8
|
+
import { VTTCue } from 'media-captions';
|
|
9
|
+
import 'dashjs';
|
|
10
|
+
import 'hls.js';
|
|
11
|
+
|
|
12
|
+
declare class LibASSTextRenderer implements TextRenderer {
|
|
13
|
+
#private;
|
|
14
|
+
readonly loader: LibASSModuleLoader;
|
|
15
|
+
config?: LibASSConfig | undefined;
|
|
16
|
+
readonly priority = 1;
|
|
17
|
+
constructor(loader: LibASSModuleLoader, config?: LibASSConfig | undefined);
|
|
18
|
+
canRender(track: TextTrack, video: HTMLVideoElement | null): boolean;
|
|
19
|
+
attach(video: HTMLVideoElement | null): void;
|
|
20
|
+
changeTrack(track: TextTrack | null): void;
|
|
21
|
+
detach(): void;
|
|
22
|
+
}
|
|
23
|
+
interface LibASSModuleLoader {
|
|
24
|
+
(): Promise<{
|
|
25
|
+
default: LibASSConstructor;
|
|
26
|
+
}>;
|
|
27
|
+
}
|
|
28
|
+
interface LibASSConstructor {
|
|
29
|
+
new (config?: {
|
|
30
|
+
video: HTMLVideoElement;
|
|
31
|
+
canvas?: HTMLCanvasElement;
|
|
32
|
+
subUrl?: string;
|
|
33
|
+
} & LibASSConfig): LibASSInstance;
|
|
34
|
+
}
|
|
35
|
+
interface LibASSInstance extends EventsTarget<LibASSInstanceEvents> {
|
|
36
|
+
_video: HTMLVideoElement;
|
|
37
|
+
_canvas: HTMLVideoElement | null;
|
|
38
|
+
setTrackByUrl(url: string): void;
|
|
39
|
+
setCurrentTime(time: number): void;
|
|
40
|
+
freeTrack(): void;
|
|
41
|
+
destroy(): void;
|
|
42
|
+
}
|
|
43
|
+
interface LibASSInstanceEvents {
|
|
44
|
+
ready: LibASSReadyEvent;
|
|
45
|
+
error: LibASSErrorEvent;
|
|
46
|
+
}
|
|
47
|
+
interface LibASSReadyEvent extends Event {
|
|
48
|
+
}
|
|
49
|
+
interface LibASSErrorEvent extends ErrorEvent {
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @see {@link https://github.com/ThaUnknown/jassub/tree/main#options}
|
|
53
|
+
*/
|
|
54
|
+
interface LibASSConfig {
|
|
55
|
+
/**
|
|
56
|
+
* Which image blending mode to use. WASM will perform better on lower end devices, JS will
|
|
57
|
+
* perform better if the device and browser supports hardware acceleration.
|
|
58
|
+
*
|
|
59
|
+
* @defaultValue "js"
|
|
60
|
+
*/
|
|
61
|
+
blendMode?: 'js' | 'wasm';
|
|
62
|
+
/**
|
|
63
|
+
* Whether or not to use async rendering, which offloads the CPU by creating image bitmaps on
|
|
64
|
+
* the GPU.
|
|
65
|
+
*
|
|
66
|
+
* @defaultValue true
|
|
67
|
+
*/
|
|
68
|
+
asyncRender?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Whether or not to render things fully on the worker, greatly reduces CPU usage.
|
|
71
|
+
*
|
|
72
|
+
* @defaultValue true
|
|
73
|
+
*/
|
|
74
|
+
offscreenRender?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Whether or not to render subtitles as the video player renders frames, rather than predicting
|
|
77
|
+
* which frame the player is on using events.
|
|
78
|
+
*
|
|
79
|
+
* @defaultValue true
|
|
80
|
+
*/
|
|
81
|
+
onDemandRender?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Target FPS to render subtitles at. Ignored when onDemandRender is enabled.
|
|
84
|
+
*
|
|
85
|
+
* @defaultValue 24
|
|
86
|
+
*/
|
|
87
|
+
targetFps?: number;
|
|
88
|
+
/**
|
|
89
|
+
* Subtitle time offset in seconds.
|
|
90
|
+
*
|
|
91
|
+
* @defaultValue 0
|
|
92
|
+
*/
|
|
93
|
+
timeOffset?: number;
|
|
94
|
+
/**
|
|
95
|
+
* Whether or not to print debug information.
|
|
96
|
+
*
|
|
97
|
+
* @defaultValue false
|
|
98
|
+
*/
|
|
99
|
+
debug?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Scale down (< 1.0) the subtitles canvas to improve performance at the expense of quality, or
|
|
102
|
+
* scale it up (> 1.0).
|
|
103
|
+
*
|
|
104
|
+
* @defaultValue 1.0
|
|
105
|
+
*/
|
|
106
|
+
prescaleFactor?: number;
|
|
107
|
+
/**
|
|
108
|
+
* The height in pixels beyond which the subtitles canvas won't be pre-scaled.
|
|
109
|
+
*
|
|
110
|
+
* @defaultValue 1080
|
|
111
|
+
*/
|
|
112
|
+
prescaleHeightLimit?: number;
|
|
113
|
+
/**
|
|
114
|
+
* The maximum rendering height in pixels of the subtitles canvas. Beyond this subtitles will
|
|
115
|
+
* be up-scaled by the browser.
|
|
116
|
+
*
|
|
117
|
+
* @defaultValue 0
|
|
118
|
+
*/
|
|
119
|
+
maxRenderHeight?: number;
|
|
120
|
+
/**
|
|
121
|
+
* Attempt to discard all animated tags. Enabling this may severely mangle complex subtitles
|
|
122
|
+
* and should only be considered as an last ditch effort of uncertain success for hardware
|
|
123
|
+
* otherwise incapable of displaying anything. Will not reliably work with manually edited or
|
|
124
|
+
* allocated events.
|
|
125
|
+
*
|
|
126
|
+
* @defaultValue false
|
|
127
|
+
*/
|
|
128
|
+
dropAllAnimations?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* The URL of the worker.
|
|
131
|
+
*
|
|
132
|
+
* @defaultValue "jassub-worker.js"
|
|
133
|
+
*/
|
|
134
|
+
workerUrl?: string;
|
|
135
|
+
/**
|
|
136
|
+
* The URL of the legacy worker. Only loaded if the browser doesn't support WASM.
|
|
137
|
+
*
|
|
138
|
+
* @defaultValue "jassub-worker-legacy.js"
|
|
139
|
+
*/
|
|
140
|
+
legacyWorkerUrl?: string;
|
|
141
|
+
/**
|
|
142
|
+
* The URL of the subtitle file to play.
|
|
143
|
+
*
|
|
144
|
+
*/
|
|
145
|
+
subUrl?: string;
|
|
146
|
+
/**
|
|
147
|
+
* The content of the subtitle file to play.
|
|
148
|
+
*
|
|
149
|
+
*/
|
|
150
|
+
subContent?: string;
|
|
151
|
+
/**
|
|
152
|
+
* An array of links or `Uint8Array` to the fonts used in the subtitle. If `Uint8Array` is used
|
|
153
|
+
* the array is copied, not referenced. This forces all the fonts in this array to be loaded
|
|
154
|
+
* by the renderer, regardless of if they are used.
|
|
155
|
+
*
|
|
156
|
+
*/
|
|
157
|
+
fonts?: string[] | Uint8Array[];
|
|
158
|
+
/**
|
|
159
|
+
* Object with all available fonts. Key is font family in lower case, value is link or
|
|
160
|
+
* `Uint8Array`. These fonts are selectively loaded if detected as used in the current
|
|
161
|
+
* subtitle track.
|
|
162
|
+
*
|
|
163
|
+
* @defaultValue {'liberation sans': './default.woff2'}}
|
|
164
|
+
*/
|
|
165
|
+
availableFonts?: Record<string, string>;
|
|
166
|
+
/**
|
|
167
|
+
* The font family key of the fallback font in `availableFonts` to use if the other font
|
|
168
|
+
* for the style is missing special glyphs or unicode.
|
|
169
|
+
*
|
|
170
|
+
* @defaultValue "liberation sans"
|
|
171
|
+
*/
|
|
172
|
+
fallbackFont?: string;
|
|
173
|
+
/**
|
|
174
|
+
* If the Local Font Access API is enabled `[chrome://flags/#font-access]`, the library will
|
|
175
|
+
* query for permissions to use local fonts and use them if any are missing. The permission can
|
|
176
|
+
* be queried beforehand using `navigator.permissions.request({ name: 'local-fonts' })`.
|
|
177
|
+
*
|
|
178
|
+
* @defaultValue true
|
|
179
|
+
*/
|
|
180
|
+
useLocalFonts?: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* libass bitmap cache memory limit in MiB (approximate).
|
|
183
|
+
*/
|
|
184
|
+
libassMemoryLimit?: number;
|
|
185
|
+
/**
|
|
186
|
+
* libass glyph cache memory limit in MiB (approximate).
|
|
187
|
+
*/
|
|
188
|
+
libassGlyphLimit?: number;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
declare function findActiveCue(cues: readonly VTTCue[], time: number): VTTCue | null;
|
|
192
|
+
declare function isCueActive(cue: VTTCue, time: number): boolean;
|
|
193
|
+
declare function watchActiveTextTrack(tracks: TextTrackList, kind: TextTrackKind | TextTrackKind[], onChange: (track: TextTrack | null) => void): Dispose;
|
|
194
|
+
declare function watchCueTextChange(tracks: TextTrackList, kind: TextTrackKind | TextTrackKind[], callback: (title: string) => void): void;
|
|
195
|
+
|
|
196
|
+
declare function sortVideoQualities(qualities: VideoQuality[], desc?: boolean): VideoQuality[];
|
|
197
|
+
|
|
198
|
+
declare const MEDIA_KEY_SHORTCUTS: MediaKeyShortcuts;
|
|
199
|
+
|
|
200
|
+
declare class ARIAKeyShortcuts extends ViewController {
|
|
201
|
+
#private;
|
|
202
|
+
constructor(shortcut: string);
|
|
203
|
+
protected onAttach(el: HTMLElement): void;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
type TimeInterval = [start: number, end: number];
|
|
207
|
+
declare class TimeRange implements TimeRanges {
|
|
208
|
+
#private;
|
|
209
|
+
get length(): number;
|
|
210
|
+
constructor(start?: number | TimeInterval[], end?: number);
|
|
211
|
+
start(index: number): number;
|
|
212
|
+
end(index: number): number;
|
|
213
|
+
}
|
|
214
|
+
declare function getTimeRangesStart(range: TimeRanges): number | null;
|
|
215
|
+
declare function getTimeRangesEnd(range: TimeRanges): number | null;
|
|
216
|
+
declare function normalizeTimeIntervals(intervals: TimeInterval[]): TimeInterval[];
|
|
217
|
+
declare function updateTimeIntervals(intervals: TimeInterval[], interval: TimeInterval, value: number): TimeInterval;
|
|
218
|
+
|
|
219
|
+
/** @see {@link https://www.vidstack.io/docs/player/providers/audio} */
|
|
220
|
+
declare function isAudioProvider(provider: any): provider is AudioProvider;
|
|
221
|
+
/** @see {@link https://www.vidstack.io/docs/player/providers/video} */
|
|
222
|
+
declare function isVideoProvider(provider: any): provider is VideoProvider;
|
|
223
|
+
/** @see {@link https://www.vidstack.io/docs/player/providers/hls} */
|
|
224
|
+
declare function isHLSProvider(provider: any): provider is HLSProvider;
|
|
225
|
+
declare function isDASHProvider(provider: any): provider is DASHProvider;
|
|
226
|
+
/** @see {@link https://www.vidstack.io/docs/player/providers/youtube} */
|
|
227
|
+
declare function isYouTubeProvider(provider: any): provider is YouTubeProvider;
|
|
228
|
+
/** @see {@link https://www.vidstack.io/docs/player/providers/vimeo} */
|
|
229
|
+
declare function isVimeoProvider(provider: any): provider is VimeoProvider;
|
|
230
|
+
/** @see {@link https://www.vidstack.io/docs/player/providers/google-cast} */
|
|
231
|
+
declare function isGoogleCastProvider(provider: any): provider is GoogleCastProvider;
|
|
232
|
+
/** @see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement} */
|
|
233
|
+
declare function isHTMLAudioElement(element: unknown): element is HTMLAudioElement;
|
|
234
|
+
/** @see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement} */
|
|
235
|
+
declare function isHTMLVideoElement(element: unknown): element is HTMLVideoElement;
|
|
236
|
+
/** @see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement} */
|
|
237
|
+
declare function isHTMLMediaElement(element: unknown): element is HTMLMediaElement;
|
|
238
|
+
/** @see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement} */
|
|
239
|
+
declare function isHTMLIFrameElement(element: unknown): element is HTMLIFrameElement;
|
|
240
|
+
|
|
241
|
+
declare class AudioProviderLoader implements MediaProviderLoader<AudioProvider> {
|
|
242
|
+
readonly name = "audio";
|
|
243
|
+
target: HTMLAudioElement;
|
|
244
|
+
canPlay(src: Src): boolean;
|
|
245
|
+
mediaType(): MediaType;
|
|
246
|
+
load(ctx: MediaContext): Promise<AudioProvider>;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
declare class VideoProviderLoader implements MediaProviderLoader<VideoProvider> {
|
|
250
|
+
readonly name: string;
|
|
251
|
+
target: HTMLVideoElement;
|
|
252
|
+
canPlay(src: Src): boolean;
|
|
253
|
+
mediaType(): MediaType;
|
|
254
|
+
load(ctx: MediaContext): Promise<VideoProvider>;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
declare class HLSProviderLoader extends VideoProviderLoader implements MediaProviderLoader<HLSProvider> {
|
|
258
|
+
static supported: boolean;
|
|
259
|
+
readonly name = "hls";
|
|
260
|
+
canPlay(src: Src): boolean;
|
|
261
|
+
load(context: any): Promise<HLSProvider>;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
declare class DASHProviderLoader extends VideoProviderLoader implements MediaProviderLoader<DASHProvider> {
|
|
265
|
+
static supported: boolean;
|
|
266
|
+
readonly name = "dash";
|
|
267
|
+
canPlay(src: Src): boolean;
|
|
268
|
+
load(context: any): Promise<DASHProvider>;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
declare class GoogleCastLoader implements MediaProviderLoader<GoogleCastProvider> {
|
|
272
|
+
#private;
|
|
273
|
+
readonly name = "google-cast";
|
|
274
|
+
target: HTMLElement;
|
|
275
|
+
/**
|
|
276
|
+
* @see {@link https://developers.google.com/cast/docs/reference/web_sender/cast.framework.CastContext}
|
|
277
|
+
*/
|
|
278
|
+
get cast(): cast.framework.CastContext;
|
|
279
|
+
mediaType(): MediaType;
|
|
280
|
+
canPlay(src: Src): boolean;
|
|
281
|
+
prompt(ctx: MediaContext): Promise<void>;
|
|
282
|
+
load(ctx: MediaContext): Promise<GoogleCastProvider>;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
declare class VimeoProviderLoader implements MediaProviderLoader<VimeoProvider> {
|
|
286
|
+
readonly name = "vimeo";
|
|
287
|
+
target: HTMLIFrameElement;
|
|
288
|
+
preconnect(): void;
|
|
289
|
+
canPlay(src: Src): boolean;
|
|
290
|
+
mediaType(): MediaType;
|
|
291
|
+
load(ctx: MediaContext): Promise<VimeoProvider>;
|
|
292
|
+
loadPoster(src: Src, ctx: MediaContext, abort: AbortController): Promise<string | null>;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
declare class YouTubeProviderLoader implements MediaProviderLoader<YouTubeProvider> {
|
|
296
|
+
readonly name = "youtube";
|
|
297
|
+
target: HTMLIFrameElement;
|
|
298
|
+
preconnect(): void;
|
|
299
|
+
canPlay(src: Src): boolean;
|
|
300
|
+
mediaType(): MediaType;
|
|
301
|
+
load(ctx: MediaContext): Promise<YouTubeProvider>;
|
|
302
|
+
loadPoster(src: Src, ctx: MediaContext, abort: AbortController): Promise<string | null>;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Used to display preview thumbnails when the user is hovering or dragging the time slider.
|
|
307
|
+
* The time ranges in the WebVTT file will automatically be matched based on the current slider
|
|
308
|
+
* pointer position.
|
|
309
|
+
*
|
|
310
|
+
* @attr data-loading - Whether thumbnail image is loading.
|
|
311
|
+
* @attr data-error - Whether an error occurred loading thumbnail.
|
|
312
|
+
* @attr data-hidden - Whether thumbnail is not available or failed to load.
|
|
313
|
+
* @docs {@link https://www.vidstack.io/docs/player/components/sliders/slider-thumbnail}
|
|
314
|
+
*/
|
|
315
|
+
declare class SliderThumbnail extends Thumbnail {
|
|
316
|
+
#private;
|
|
317
|
+
protected onAttach(el: HTMLElement): void;
|
|
318
|
+
protected getTime(): number;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
interface SliderContext {
|
|
322
|
+
disabled: ReadSignal<boolean>;
|
|
323
|
+
orientation: ReadSignal<SliderOrientation>;
|
|
324
|
+
preview: WriteSignal<HTMLElement | null>;
|
|
325
|
+
}
|
|
326
|
+
declare const sliderContext: Context<SliderContext>;
|
|
327
|
+
|
|
328
|
+
interface FormatTimeOptions {
|
|
329
|
+
padHrs?: boolean | null;
|
|
330
|
+
padMins?: boolean | null;
|
|
331
|
+
showHrs?: boolean;
|
|
332
|
+
showMs?: boolean;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Formats the given `duration` into a human readable form that can be displayed to the user.
|
|
336
|
+
*
|
|
337
|
+
* @param duration - The length of time to parse in seconds.
|
|
338
|
+
* @param shouldPadHours - Whether to pad the hours to be length of 2.
|
|
339
|
+
* @param shouldPadMinutes - Whether to pad the minutes to be length of 2.
|
|
340
|
+
* @param shouldAlwaysShowHours - Whether to always show the hours unit.
|
|
341
|
+
* @example `01:20 -> minutes:seconds`
|
|
342
|
+
* @example `3:01:20 -> hours:minutes:seconds`
|
|
343
|
+
* @example If `shouldPadHours` is `true` - `03:01:20`
|
|
344
|
+
* @example If `shouldAlwaysShowHours` is `true` - `0:01:20`
|
|
345
|
+
*/
|
|
346
|
+
declare function formatTime(duration: number, { padHrs, padMins, showHrs, showMs }?: FormatTimeOptions): string;
|
|
347
|
+
/**
|
|
348
|
+
* Formats the given `duration` into human spoken form.
|
|
349
|
+
*
|
|
350
|
+
* @param duration - The length of time to parse in seconds.
|
|
351
|
+
* @example `2 hour 3 min 4 sec`
|
|
352
|
+
*/
|
|
353
|
+
declare function formatSpokenTime(duration: number): string;
|
|
354
|
+
|
|
355
|
+
declare const AUDIO_EXTENSIONS: RegExp;
|
|
356
|
+
declare const AUDIO_TYPES: Set<string>;
|
|
357
|
+
declare const VIDEO_EXTENSIONS: RegExp;
|
|
358
|
+
declare const VIDEO_TYPES: Set<string>;
|
|
359
|
+
declare const HLS_VIDEO_EXTENSIONS: RegExp;
|
|
360
|
+
declare const DASH_VIDEO_EXTENSIONS: RegExp;
|
|
361
|
+
declare const HLS_VIDEO_TYPES: Set<string>;
|
|
362
|
+
declare const DASH_VIDEO_TYPES: Set<string>;
|
|
363
|
+
declare function isAudioSrc({ src, type }: Src): boolean;
|
|
364
|
+
declare function isVideoSrc(src: Src): boolean;
|
|
365
|
+
declare function isHLSSrc({ src, type }: Src): boolean;
|
|
366
|
+
declare function isDASHSrc({ src, type }: Src): boolean;
|
|
367
|
+
declare function canGoogleCastSrc(src: Src): boolean;
|
|
368
|
+
declare function isMediaStream(src: unknown): src is MediaStream;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Checks if the ScreenOrientation API is available.
|
|
372
|
+
*
|
|
373
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation}
|
|
374
|
+
*/
|
|
375
|
+
declare function canOrientScreen(): boolean;
|
|
376
|
+
/**
|
|
377
|
+
* Checks if the screen orientation can be changed.
|
|
378
|
+
*
|
|
379
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation}
|
|
380
|
+
*/
|
|
381
|
+
declare function canRotateScreen(): boolean;
|
|
382
|
+
/**
|
|
383
|
+
* Checks if the native HTML5 video player can play HLS.
|
|
384
|
+
*/
|
|
385
|
+
declare function canPlayHLSNatively(video?: HTMLVideoElement | null): boolean;
|
|
386
|
+
/**
|
|
387
|
+
* Checks if the native HTML5 video player can enter picture-in-picture (PIP) mode when using
|
|
388
|
+
* the Chrome browser.
|
|
389
|
+
*
|
|
390
|
+
* @see {@link https://developers.google.com/web/updates/2018/10/watch-video-using-picture-in-picture}
|
|
391
|
+
*/
|
|
392
|
+
declare function canUsePictureInPicture(video: HTMLVideoElement | null): boolean;
|
|
393
|
+
/**
|
|
394
|
+
* Checks if the native HTML5 video player can use the presentation API in Safari.
|
|
395
|
+
*
|
|
396
|
+
* @see {@link https://developer.apple.com/documentation/webkitjs/htmlvideoelement/1631913-webkitpresentationmode}
|
|
397
|
+
*/
|
|
398
|
+
declare function canUseVideoPresentation(video: HTMLVideoElement | null): boolean;
|
|
399
|
+
declare function canChangeVolume(): Promise<boolean>;
|
|
400
|
+
|
|
401
|
+
export { ARIAKeyShortcuts, AUDIO_EXTENSIONS, AUDIO_TYPES, AudioProvider, AudioProviderLoader, DASHProvider, DASHProviderLoader, DASH_VIDEO_EXTENSIONS, DASH_VIDEO_TYPES, GoogleCastLoader, GoogleCastProvider, HLSProvider, HLSProviderLoader, HLS_VIDEO_EXTENSIONS, HLS_VIDEO_TYPES, LibASSTextRenderer, MEDIA_KEY_SHORTCUTS, MediaContext, MediaKeyShortcuts, MediaProviderLoader, MediaType, SliderOrientation, SliderThumbnail, Src, TextRenderer, TextTrack, TextTrackList, Thumbnail, TimeRange, VIDEO_EXTENSIONS, VIDEO_TYPES, VideoProvider, VideoProviderLoader, VideoQuality, VimeoProvider, VimeoProviderLoader, YouTubeProvider, YouTubeProviderLoader, canChangeVolume, canGoogleCastSrc, canOrientScreen, canPlayHLSNatively, canRotateScreen, canUsePictureInPicture, canUseVideoPresentation, findActiveCue, formatSpokenTime, formatTime, getTimeRangesEnd, getTimeRangesStart, isAudioProvider, isAudioSrc, isCueActive, isDASHProvider, isDASHSrc, isGoogleCastProvider, isHLSProvider, isHLSSrc, isHTMLAudioElement, isHTMLIFrameElement, isHTMLMediaElement, isHTMLVideoElement, isMediaStream, isVideoProvider, isVideoSrc, isVimeoProvider, isYouTubeProvider, normalizeTimeIntervals, sliderContext, sortVideoQualities, updateTimeIntervals, watchActiveTextTrack, watchCueTextChange };
|
|
402
|
+
export type { LibASSConfig, LibASSConstructor, LibASSErrorEvent, LibASSInstance, LibASSInstanceEvents, LibASSModuleLoader, LibASSReadyEvent, SliderContext, TimeInterval };
|
package/package.json
ADDED
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@locpd/vidstack",
|
|
3
|
+
"description": "UI component library for building high-quality, accessible video and audio experiences on the web.",
|
|
4
|
+
"version": "1.12.14",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"types": "index.d.ts",
|
|
8
|
+
"sideEffects": [
|
|
9
|
+
"./src/global/*.ts",
|
|
10
|
+
"./src/elements/bundles/**/*.ts",
|
|
11
|
+
"./dev/define/*.js",
|
|
12
|
+
"./prod/define/*.js",
|
|
13
|
+
"./dev/global/*.js",
|
|
14
|
+
"./prod/global/*.js"
|
|
15
|
+
],
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=18"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@floating-ui/dom": "^1.6.10",
|
|
21
|
+
"lit-html": "^2.8.0",
|
|
22
|
+
"media-captions": "^1.0.4",
|
|
23
|
+
"unplugin": "^1.12.0"
|
|
24
|
+
},
|
|
25
|
+
"contributors": [
|
|
26
|
+
"Rahim Alwer <rahim.alwer@gmail.com>",
|
|
27
|
+
"Dave Furfero <furf@furf.com>",
|
|
28
|
+
"Sam Potts <sam@potts.es>"
|
|
29
|
+
],
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://github.com/vidstack/player.git",
|
|
33
|
+
"directory": "packages/vidstack"
|
|
34
|
+
},
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/vidstack/player/issues"
|
|
37
|
+
},
|
|
38
|
+
"exports": {
|
|
39
|
+
".": {
|
|
40
|
+
"types": "./index.d.ts",
|
|
41
|
+
"worker": "./server/vidstack.js",
|
|
42
|
+
"browser": {
|
|
43
|
+
"development": "./dev/vidstack.js",
|
|
44
|
+
"default": "./prod/vidstack.js"
|
|
45
|
+
},
|
|
46
|
+
"default": "./server/vidstack.js"
|
|
47
|
+
},
|
|
48
|
+
"./elements": {
|
|
49
|
+
"types": "./elements.d.ts",
|
|
50
|
+
"worker": "./server/vidstack-elements.js",
|
|
51
|
+
"browser": {
|
|
52
|
+
"development": "./dev/vidstack-elements.js",
|
|
53
|
+
"default": "./prod/vidstack-elements.js"
|
|
54
|
+
},
|
|
55
|
+
"default": "./server/vidstack-elements.js"
|
|
56
|
+
},
|
|
57
|
+
"./global/player": {
|
|
58
|
+
"types": "./global/player.d.ts",
|
|
59
|
+
"worker": "./server/global/vidstack-player.js",
|
|
60
|
+
"browser": {
|
|
61
|
+
"development": "./dev/global/vidstack-player.js",
|
|
62
|
+
"default": "./prod/global/vidstack-player.js"
|
|
63
|
+
},
|
|
64
|
+
"default": "./server/global/vidstack-player.js"
|
|
65
|
+
},
|
|
66
|
+
"./global/plyr": {
|
|
67
|
+
"types": "./global/plyr.d.ts",
|
|
68
|
+
"worker": "./server/global/plyr.js",
|
|
69
|
+
"browser": {
|
|
70
|
+
"development": "./dev/global/plyr.js",
|
|
71
|
+
"default": "./prod/global/plyr.js"
|
|
72
|
+
},
|
|
73
|
+
"default": "./server/global/plyr.js"
|
|
74
|
+
},
|
|
75
|
+
"./icons": {
|
|
76
|
+
"types": "./icons.d.ts",
|
|
77
|
+
"worker": "./server/define/vidstack-icons.js",
|
|
78
|
+
"browser": {
|
|
79
|
+
"development": "./dev/define/vidstack-icons.js",
|
|
80
|
+
"default": "./prod/define/vidstack-icons.js"
|
|
81
|
+
},
|
|
82
|
+
"default": "./server/define/vidstack-icons.js"
|
|
83
|
+
},
|
|
84
|
+
"./player": {
|
|
85
|
+
"types": "./player/index.d.ts",
|
|
86
|
+
"worker": "./server/define/vidstack-player.js",
|
|
87
|
+
"browser": {
|
|
88
|
+
"development": "./dev/define/vidstack-player.js",
|
|
89
|
+
"default": "./prod/define/vidstack-player.js"
|
|
90
|
+
},
|
|
91
|
+
"default": "./server/define/vidstack-player.js"
|
|
92
|
+
},
|
|
93
|
+
"./player/ui": {
|
|
94
|
+
"types": "./player/ui.d.ts",
|
|
95
|
+
"worker": "./server/define/vidstack-player-ui.js",
|
|
96
|
+
"browser": {
|
|
97
|
+
"development": "./dev/define/vidstack-player-ui.js",
|
|
98
|
+
"default": "./prod/define/vidstack-player-ui.js"
|
|
99
|
+
},
|
|
100
|
+
"default": "./server/define/vidstack-player-ui.js"
|
|
101
|
+
},
|
|
102
|
+
"./player/layouts": {
|
|
103
|
+
"types": "./player/layouts/index.d.ts",
|
|
104
|
+
"worker": "./server/define/vidstack-player-layouts.js",
|
|
105
|
+
"browser": {
|
|
106
|
+
"development": "./dev/define/vidstack-player-layouts.js",
|
|
107
|
+
"default": "./prod/define/vidstack-player-layouts.js"
|
|
108
|
+
},
|
|
109
|
+
"default": "./server/define/vidstack-player-layouts.js"
|
|
110
|
+
},
|
|
111
|
+
"./player/layouts/default": {
|
|
112
|
+
"types": "./player/layouts/default.d.ts",
|
|
113
|
+
"worker": "./server/define/vidstack-player-default-layout.js",
|
|
114
|
+
"browser": {
|
|
115
|
+
"development": "./dev/define/vidstack-player-default-layout.js",
|
|
116
|
+
"default": "./prod/define/vidstack-player-default-layout.js"
|
|
117
|
+
},
|
|
118
|
+
"default": "./server/define/vidstack-player-default-layout.js"
|
|
119
|
+
},
|
|
120
|
+
"./player/layouts/plyr": {
|
|
121
|
+
"types": "./player/layouts/plyr.d.ts",
|
|
122
|
+
"worker": "./server/define/plyr-layout.js",
|
|
123
|
+
"browser": {
|
|
124
|
+
"development": "./dev/define/plyr-layout.js",
|
|
125
|
+
"default": "./prod/define/plyr-layout.js"
|
|
126
|
+
},
|
|
127
|
+
"default": "./server/define/plyr-layout.js"
|
|
128
|
+
},
|
|
129
|
+
"./types/*": "./types/*",
|
|
130
|
+
"./player/styles/*": "./player/styles/*",
|
|
131
|
+
"./package.json": "./package.json",
|
|
132
|
+
"./tailwind.cjs": {
|
|
133
|
+
"types": "./tailwind.d.cts",
|
|
134
|
+
"default": "./tailwind.cjs"
|
|
135
|
+
},
|
|
136
|
+
"./analyze.json": {
|
|
137
|
+
"types": "./analyze.json.d.ts",
|
|
138
|
+
"default": "./analyze.json"
|
|
139
|
+
},
|
|
140
|
+
"./elements.json": "./elements.json",
|
|
141
|
+
"./vue": {
|
|
142
|
+
"types": "./vue.d.ts",
|
|
143
|
+
"default": "./vue.d.ts"
|
|
144
|
+
},
|
|
145
|
+
"./svelte": {
|
|
146
|
+
"types": "./svelte.d.ts",
|
|
147
|
+
"default": "./svelte.d.ts"
|
|
148
|
+
},
|
|
149
|
+
"./solid": {
|
|
150
|
+
"types": "./solid.d.ts",
|
|
151
|
+
"default": "./solid.d.ts"
|
|
152
|
+
},
|
|
153
|
+
"./bundle": {
|
|
154
|
+
"types": "./bundle.d.ts",
|
|
155
|
+
"default": "./bundle.d.ts"
|
|
156
|
+
},
|
|
157
|
+
"./plugins": {
|
|
158
|
+
"types": "./plugins.d.ts",
|
|
159
|
+
"default": "./plugins.js"
|
|
160
|
+
},
|
|
161
|
+
"./dom.d.ts": "./dom.d.ts",
|
|
162
|
+
"./google-cast.d.ts": "./google-cast.d.ts",
|
|
163
|
+
"./vscode.html-data.json": "./vscode.html-data.json"
|
|
164
|
+
},
|
|
165
|
+
"publishConfig": {
|
|
166
|
+
"access": "public"
|
|
167
|
+
},
|
|
168
|
+
"keywords": [
|
|
169
|
+
"accessible",
|
|
170
|
+
"analytics",
|
|
171
|
+
"audio",
|
|
172
|
+
"customizable",
|
|
173
|
+
"dailymotion",
|
|
174
|
+
"elements",
|
|
175
|
+
"extensible",
|
|
176
|
+
"file",
|
|
177
|
+
"framework-agnostic",
|
|
178
|
+
"headless",
|
|
179
|
+
"hls",
|
|
180
|
+
"html5",
|
|
181
|
+
"jwplayer",
|
|
182
|
+
"media",
|
|
183
|
+
"plyr",
|
|
184
|
+
"player",
|
|
185
|
+
"spec-compliant",
|
|
186
|
+
"tailwind",
|
|
187
|
+
"universal",
|
|
188
|
+
"uploader",
|
|
189
|
+
"vds",
|
|
190
|
+
"video",
|
|
191
|
+
"videojs",
|
|
192
|
+
"vidstack",
|
|
193
|
+
"vime",
|
|
194
|
+
"vimeo",
|
|
195
|
+
"web-component",
|
|
196
|
+
"universal",
|
|
197
|
+
"youtube"
|
|
198
|
+
]
|
|
199
|
+
}
|