9단계 방송 미리보기(Preview)

    9단계 방송 미리보기(Preview)


    기사 요약

    음소거 상태의 방송을 앱 내 PIP로 시작할 수 있습니다.

    ShopLivePlayerPreviewData

    Property name

    Type

    Description

    campaignKey

    String

    재생할 동영상의 캠페인(방송) 키 (필수)

    useCloseButton

    bool

    닫기 버튼을 활성화. (기본값: false)

    referrer

    String?

    진입경로 통계를 측정할 수 있는 파라미터

    enableSwipeOut

    bool

    앱 내 PIP를 화면 밖으로 이동하여 종료 시킬 지 여부를 설정합니다. (기본값 : true)

    pipRadius

    double?

    InAppPipRadius를 설정합니다. (기본값: 10)

    pipMaxSize

    double?

    InAppPip 최대 사이즈를 지정합니다.

    marginTop

    double?

    상단 마진을 설정합니다.

    marginBottom

    double?

    하단 마진을 설정합니다.

    marginLeft

    double?

    좌측 마진을 설정합니다.

    postition

    String?

    InAppPip 초기 위치를 설정합니다 (ex. “TOP_LEFT”, “TOP_RIGHT”, “BOTTOM_LEFT”, “BOTTOM_RIGHT”)

    late final _shopLivePlayerPlugin = ShopLivePlayer();
    _shopLivePlayerPlugin.showPreview(data: data);
    _shopLivePlayer.showPreview(
      data: ShopLivePlayerPreviewData(
        campaignKey: "CampaignKey",
        useCloseButton: true,
        enableSwipeOut: true,
        pipRadius: 10,
        pipMaxSize: 400,
        marginTop: 10,
        marginBottom: 10,
        marginLeft: 10,
        marginRight: 10,
        position: "TOP_LEFT",
      ),
    );