Skip to content

LocalPosterAdapter — @gj-kit/expo-media

A public interface from @gj-kit/expo-media/core. The signature below is taken directly from the 0.6.1 release declaration.

import { LocalPosterAdapter } from '@gj-kit/expo-media/core';
/**
* 로컬 URI → 포스터 프레임. 기본 구현은 `"./video"`(expo-video-thumbnails).
* `BinaryPosterAdapter`와 입력 타입이 다르므로 자리를 바꿔 끼우면 컴파일 에러가 난다 —
* 브랜드·phantom 각인 없이 오배치가 차단된다.
*/
interface LocalPosterAdapter {
/** ⚠ 실패는 `null`. 포스터 실패가 동영상 업로드를 막지 않는다(§7.1). */
posterFromLocalFile(input: {
readonly uri: string;
readonly atMs: number;
}): Promise<{
readonly uri: string;
} | null>;
}

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-media
  • Version: 0.6.1
  • Public entry: ./core
  • Source: GitHub