So, if a user is currently listening to a podcast, player.is_playing will return true. While player.currently_playiing will return:
NoMethodError: undefined method `[]' for nil:NilClass
If there was a player check that could tell whether songs or podcasts are currently being played, or if currently_playing could return the podcast details, that could avoid the break.
So, if a user is currently listening to a podcast, player.is_playing will return true. While player.currently_playiing will return:
NoMethodError: undefined method `[]' for nil:NilClass
If there was a player check that could tell whether songs or podcasts are currently being played, or if currently_playing could return the podcast details, that could avoid the break.