2단계 Shoplive Player 실행하기

    2단계 Shoplive Player 실행하기


    기사 요약

    준비된 액세스 키(Access Key)를 사용하여, Shoplive iOS SDK를 초기화하세요.

    import ShopliveSDKCommon
    ShopLiveCommon.setAccessKey("{AccessKey}")

    방송 재생

    캠페인(방송) 키를 사용하여, 방송을 재생할 수 있습니다.

    ShopLive.play(data: .init(campaignKey:"CampaignKey"))


    방송 미리보기

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

    ShopLive.preview(data: .init(campaignKey :"CampaignKey"), completion: nil)