-1

AVKit如何使用这三行代码以及如何使音乐静音?

moviePlayer!.scalingMode = MPMovieScalingMode.AspectFill

moviePlayer!.controlStyle = MPMovieControlStyle.None

moviePlayer!.shouldAutoplay = true
4

1 回答 1

0

您可以考虑使用 AVFoundation 在您的 AVPlayer 上使用 .muted 来静音音频播放。请参阅https://developer.apple.com/library/content/qa/qa1716/_index.html

于 2017-06-25T05:40:13.853 回答