Documentation
    Preparing search index...

    Interface BrowserMediaPlaybackOptions

    Browser playback dependencies; the resource service owns source policy.

    interface BrowserMediaPlaybackOptions {
        document?: Document;
        resource: ServiceHandler;
        stream?: (
            windowId: string,
            url: string,
            signal: AbortSignal,
        ) => Promise<Response>;
        urls?: Pick<
            {
                prototype: URL;
                canParse(url: string | URL, base?: string | URL): boolean;
                createObjectURL(obj: MediaSource | Blob): string;
                parse(url: string | URL, base?: string | URL): URL | null;
                revokeObjectURL(url: string): void;
                new (url: string | URL, base?: string | URL): URL;
            },
            "createObjectURL"
            | "revokeObjectURL",
        >;
    }
    Index

    Properties

    document?: Document
    resource: ServiceHandler
    stream?: (
        windowId: string,
        url: string,
        signal: AbortSignal,
    ) => Promise<Response>

    Host-only live response resolver with endpoint grants and byte classification.

    Type Declaration

      • (windowId: string, url: string, signal: AbortSignal): Promise<Response>
      • Open host-owned playback under the same resource and network approvals as atomic resources.

        Parameters

        • windowId: string

          Authenticated source endpoint.

        • url: string

          Source URL subject to host policy.

        • signal: AbortSignal

          Playback lifetime cancellation.

        Returns Promise<Response>

        A host-classified streaming response; the host consumer owns cancellation.

    urls?: Pick<
        {
            prototype: URL;
            canParse(url: string | URL, base?: string | URL): boolean;
            createObjectURL(obj: MediaSource | Blob): string;
            parse(url: string | URL, base?: string | URL): URL | null;
            revokeObjectURL(url: string): void;
            new (url: string | URL, base?: string | URL): URL;
        },
        "createObjectURL"
        | "revokeObjectURL",
    >