ashish0309/AutoVideoPlayer

How to add Mute button on Tableview cell ?

JolChrSA opened this issue · 1 comments

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.

cell.videoLayer.player?.isMuted = false

This worked for me.