Closed JolChrSA closed 4 years ago
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.
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.