@livo-tv/blocks 1.30.1 → 1.31.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/dist/index.d.cts CHANGED
@@ -930,6 +930,11 @@ interface VideoPlayerProps {
930
930
  className?: string;
931
931
  /** Optional initial CC language. Defaults to Off. UI locale / `?lang=` do not enable captions. */
932
932
  defaultCaptionLocale?: CaptionLocale;
933
+ /**
934
+ * When false, hide the CC menu and do not attach sidecar or live caption
935
+ * tracks. Defaults to true so existing callers keep current behavior.
936
+ */
937
+ captionsEnabled?: boolean;
933
938
  /** Live poll base, e.g. `https://api.livo.tv/public/streams/{id}/captions`. */
934
939
  liveCaptionsBaseUrl?: string | null;
935
940
  }
@@ -942,7 +947,7 @@ interface VideoPlayerProps {
942
947
  *
943
948
  * hls.js is a peer dependency loaded on demand; see {@link useHlsPlayback}.
944
949
  */
945
- declare function VideoPlayer({ src, mode, poster, autoPlay, muted, stats, labels, showQualitySelector, paused, onPlayingChange, onFirstPlay, onError, onPlaybackProgress, onRebuffer, onQualityChange, fit, className, defaultCaptionLocale, liveCaptionsBaseUrl, }: VideoPlayerProps): React.JSX.Element;
950
+ declare function VideoPlayer({ src, mode, poster, autoPlay, muted, stats, labels, showQualitySelector, paused, onPlayingChange, onFirstPlay, onError, onPlaybackProgress, onRebuffer, onQualityChange, fit, className, defaultCaptionLocale, captionsEnabled, liveCaptionsBaseUrl, }: VideoPlayerProps): React.JSX.Element;
946
951
 
947
952
  interface FeedVideoPlayerProps extends VideoPlayerProps {
948
953
  /** Stable id for exclusive playback (typically the feed post id). */
package/dist/index.d.ts CHANGED
@@ -930,6 +930,11 @@ interface VideoPlayerProps {
930
930
  className?: string;
931
931
  /** Optional initial CC language. Defaults to Off. UI locale / `?lang=` do not enable captions. */
932
932
  defaultCaptionLocale?: CaptionLocale;
933
+ /**
934
+ * When false, hide the CC menu and do not attach sidecar or live caption
935
+ * tracks. Defaults to true so existing callers keep current behavior.
936
+ */
937
+ captionsEnabled?: boolean;
933
938
  /** Live poll base, e.g. `https://api.livo.tv/public/streams/{id}/captions`. */
934
939
  liveCaptionsBaseUrl?: string | null;
935
940
  }
@@ -942,7 +947,7 @@ interface VideoPlayerProps {
942
947
  *
943
948
  * hls.js is a peer dependency loaded on demand; see {@link useHlsPlayback}.
944
949
  */
945
- declare function VideoPlayer({ src, mode, poster, autoPlay, muted, stats, labels, showQualitySelector, paused, onPlayingChange, onFirstPlay, onError, onPlaybackProgress, onRebuffer, onQualityChange, fit, className, defaultCaptionLocale, liveCaptionsBaseUrl, }: VideoPlayerProps): React.JSX.Element;
950
+ declare function VideoPlayer({ src, mode, poster, autoPlay, muted, stats, labels, showQualitySelector, paused, onPlayingChange, onFirstPlay, onError, onPlaybackProgress, onRebuffer, onQualityChange, fit, className, defaultCaptionLocale, captionsEnabled, liveCaptionsBaseUrl, }: VideoPlayerProps): React.JSX.Element;
946
951
 
947
952
  interface FeedVideoPlayerProps extends VideoPlayerProps {
948
953
  /** Stable id for exclusive playback (typically the feed post id). */