         
         // Update StationsVC
         //self.delegate?.trackPlayingToggled(track: self.track)
+        
+        NotificationCenter.default.addObserver(self, selector: #selector(playerItemFailedToPlayToEndTime(_:)), name: NSNotification.Name.AVPlayerItemPlaybackStalled, object: nil)
        }
     
     @IBAction func pausePressed() {

        
        // Update StationsVC
        //self.delegate?.trackPlayingToggled(track: self.track)
    }
    
    @IBAction func volumeChanged(_ sender:UISlider) {

        radioPlayer.replaceCurrentItem(with: playerItem)
    }
    
    @objc internal func playerItemFailedToPlayToEndTime(_ aNotification: Notification) {
        if kDebugLog {
            print("Network ERROR")
        }
        resetStream()
    }
    //*****************************************************************
    // MARK: - Player Controls (Play/Pause/Volume)
    //*****************************************************************
