How to add Mute button on Tableview cell ?
JolChrSA opened this issue · 1 comments
JolChrSA commented
I've added one button for Mute - Unmute Video, but not able to do it .
func mutePressed(indexPath: IndexPath) {
guard let cell = feedTbl.cellForRow(at: indexPath) as? HomeVideoCell else {
return
}
cell.playerController?.mute = cell.playerController?.mute ?? false ? false : true
}
Please give me a solution for that.
JolChrSA commented
cell.videoLayer.player?.isMuted = false
This worked for me.