I want to play stream audio from the Internet. I wrote code that plays stream but it don\'t have any buffer so if signal is weak application stop playing audio. This is my code:
change
playerItem = AVPlayerItem?()
to
playerItem:AVPlayerItem?