videosphere
    Preparing search index...
    interface YouTubePreviewPlayerProps {
        youtubeVideoId: string;
        streamUrl: string;
        previewExpiresAt: number;
        onDurationKnown?: (seconds: number) => void;
        playerRef?: RefObject<YouTubePlayerHandle>;
    }
    Index

    Properties

    youtubeVideoId: string

    YouTube video id to preview.

    streamUrl: string

    Same-origin proxied preview stream URL from resolve.

    previewExpiresAt: number

    Approximate Unix expiry for the proxied preview media URL.

    onDurationKnown?: (seconds: number) => void

    Called once when the player is ready and duration is known.

    Type Declaration

      • (seconds: number): void
      • Parameters

        • seconds: number

          Total video duration in seconds.

        Returns void

    playerRef?: RefObject<YouTubePlayerHandle>

    Optional ref receiving imperative playback controls.