Keeping mute status
- Print
Keeping mute status
- Print
Article summary
Did you find this summary helpful?
Thank you for your feedback
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
}
}
API reference: log(name :, feature :,campaign:,payload:)
Pass the Mute button settings to Shoplive Player
private var isMuted = false
ShopLive.setMuteWhenPlayStart(isMuted)
API reference: ShopLive.setMuteWhenPlayStart