user1960169 user1960169 - 1 year ago 68
iOS Question

How to play Audio only in a video file in AVPlayer

Is there any way to play audio only in

AVPlayer
Even though the url stream has both Audio and video?

Answer Source

Make your video player size 0x0 or place it outside of the screen.