AVPlayer Volume Control

后端 未结 5 794
醉梦人生
醉梦人生 2021-01-18 03:57

I want to create a button that mutes the audio from an AVPlayer.

Why can´t I use .volume with AVPlayer, only with AVAudioPlayer? Is there another way to change the v

5条回答
  •  遥遥无期
    2021-01-18 04:36

    As of iOS 7 there is also a muted property on AVPlayer:

    @property (nonatomic, getter=isMuted) BOOL muted NS_AVAILABLE(10_7, 7_0);
    

提交回复
热议问题