AutoMovie API
    Preparing search index...

    Function createViewerDisplaySave

    • Copy a completed display before asynchronously encoding and saving it. The caller owns completion, facts and commitment. One encoder/upload and one latest pending bitmap bound work; failed snapshots retain the previous pending and published frame. Owned superseded surfaces are released. Prepare copies a provisional visible frame without starting an upload; commit admits the same staged bitmap, or copies a direct active display. Commit/change return whether synchronous copying succeeded; asynchronous encoding or HTTP failures are reported separately and do not certify IO.

      Parameters

      • props: {
            canvas: HTMLCanvasElement;
            observe: () => IAutoMovieViewerDisplayMetadata | undefined;
            paint?: (surface: HTMLCanvasElement) => void;
            retain?: (blob: Blob) => void;
        }
        • canvas: HTMLCanvasElement
        • observe: () => IAutoMovieViewerDisplayMetadata | undefined
        • Optionalpaint?: (surface: HTMLCanvasElement) => void

          Paint existing visible layers onto this owned surface, when applicable.

        • Optionalretain?: (blob: Blob) => void

          Keep the encoded completed bitmap for this display's graphics recovery.

      Returns {
          active: () => boolean;
          changed: () => boolean;
          commit: (session: string, generation: number) => boolean;
          dispose: () => void;
          prepare: () => boolean;
      }