ios - AVPlayer Audio can not mute - Swift 3 -


i trying mute video sound while playing.

i using below code playing mp4 file.

let path = bundle.main.path(forresource: "spalsh", oftype: "mp4")   let player = avplayer(url: url(fileurlwithpath: path!))  let playerlayer = avplayerlayer(player: player)  playerlayer.frame = uiscreen.main.bounds  playerlayer.videogravity = avlayervideogravityresizeaspectfill  player.seek(to: kcmtimezero)  player.ismuted = true  player.play()   player.ismuted  not working 


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -