음소거 상태 유지하기

    음소거 상태 유지하기


    The content is currently unavailable in Ja - 日本語. You are viewing the default Korean version.
    記事の要約

    Shoplive 숏폼에서 소리 상태를 유지 할 수 있습니다. 숏폼 상세에서는 음소거 기능이 유지됩니다.

    음소거 버튼클릭 시 콜백

    private var isMuted = false
    override fun onEvent(context: Context, command: String, payload: String?) {
        when (command) {
            "VIDEO_MUTED" -> {
                isMuted = true
            }
            "VIDEO_UNMUTED" -> {
                isMuted = false
            }
        }
    }


    음소거설정 상태를 Shoplive 숏폼 Preview로 전달

    private var isMuted = false
    ShopLiveShortform.showPreview(
        this@YourActivity,
        ShopLiveShortformPreviewData().apply {
            isMuted = this@YourActivity.isMuted
        })


    What's Next