OGPlayer React Native SDK
    Preparing search index...

    Interface OGPlayerViewRef

    interface OGPlayerViewRef {
        enterFullscreen(): void;
        enterPip(): void;
        exitFullscreen(): void;
        exitPip(): void;
        getLiveInfo(): Promise<LiveInfo | null>;
        pause(): void;
        play(): void;
        retry(): void;
        seekBackward(): void;
        seekForward(): void;
        seekTo(positionMs: number): void;
        seekToLiveEdge(): void;
        selectAudioTrack(id: string): void;
        selectTextTrack(id: string | null): void;
        selectVideoQuality(id: string | null): void;
        skipToNext(): void;
        skipToPrevious(): void;
    }
    Index
    • Expands/leaves picture-in-picture; no-op when not in it.

      Returns void

    • The current live stream's runtime facts (window, edge distance, the playhead's wall-clock time); null for VOD or when nothing is loaded.

      Returns Promise<LiveInfo | null>

    • null = subtitles off

      Parameters

      • id: string | null

      Returns void

    • null = automatic ABR

      Parameters

      • id: string | null

      Returns void

    • Skips to the next playlist item now (what the "Up next" card's tap does).

      Returns void