-1

In AVKit how it can be used this three lines of codes and also how to mute the music ?

moviePlayer!.scalingMode = MPMovieScalingMode.AspectFill

moviePlayer!.controlStyle = MPMovieControlStyle.None

moviePlayer!.shouldAutoplay = true
byJeevan
  • 3,728
  • 3
  • 37
  • 60
FRHAS
  • 1

1 Answers1

0

You may consider using AVFoundation to mute audio playback using .muted on your AVPlayer. See https://developer.apple.com/library/content/qa/qa1716/_index.html

Mihir Thanekar
  • 508
  • 4
  • 8