Keeping mute status
- Print
Keeping mute status
- Print
Article summary
Did you find this summary helpful?
Thank you for your feedback
You can keep the sound state in Shoplive Player.
messageCallback of a Mute
button click
private var isMuted = false
override fun log(data: ShopLiveLog.Data) {
when (data.name) {
"video_muted" -> {
isMuted = true
}
"video_unmuted" -> {
isMuted = false
}
}
}
API reference: ShopLiveHandler.onReceivedCommand
Pass the status settings of Mute
to Shoplive Player
private var isMuted = false
ShopLive.setMuteWhenPlayStart(isMuted)
API reference: ShopLive.setMuteWhenPlayStart