Keeping mute status

    Keeping mute status


    Article summary

    You can keep mute status on Shoplive Player.

    Callback for the Mute button click event

    private var isMuted = false
    override func log(name: String, feature: ShopLiveLog.Feature, campaign: String, payload: [String: Any]) {
        switch name {
            case "video_muted":
                isMuted = true
            case "video_unmuted":
                isMuted = false
        }
    }


    Pass the Mute button settings to Shoplive Player

    private var isMuted = false
    ShopLive.setMuteWhenPlayStart(isMuted)