I am working on a podcast application and achieved all the streaming-related parts of the application. The problem explained below, how can I achieve this?
Current:
The player view is hidden by default. When the user presses the "Play" button, the player view unhides and the player starts streaming. But it won't stop streaming if the user presses another "Play" button so both streams play simultaneously.
Goal:
When the user starts playing a new podcast by pressing another Play button, I want other players would stop playing and disappear.
Extra:
The whole podcast view awakes from the xib cell. So, the problem is, how can I manipulate another cell view's member when pressing a button in another cell view
Current:
The player view is hidden by default. When the user presses the "Play" button, the player view unhides and the player starts streaming. But it won't stop streaming if the user presses another "Play" button so both streams play simultaneously.
Goal:
When the user starts playing a new podcast by pressing another Play button, I want other players would stop playing and disappear.
Extra:
The whole podcast view awakes from the xib cell. So, the problem is, how can I manipulate another cell view's member when pressing a button in another cell view