Persistent Media Player Notification
As a user, I need an Android notification so that I can listen to a sermon for extended periods of time.
Right now, since the SermonService is not attached to a media notification, Android often kills the service after a few minutes to free up resources. This service needs to be persisted with a notification to allow playback for extended periods of time.
Acceptance Criteria:
-
GIVEN a user is in the Android Auto interface
- WHEN playing a sermon
-
THEN an Android media notification appears to persist the playback SermonService -
THEN the Sermon name in the notification matches the Sermon name in the Android Auto player -
THEN the Artist name in the notification matches the Artist name in the Android Auto player
-
- WHEN playing a sermon
-
GIVEN an Android notification
- WHEN pressing the play button
-
THEN the selected sermon begins playing
-
- WHEN pressing the pause button
-
THEN the selected sermon pauses
-
- WHEN pressing the next button
-
THEN the next sermon plays
-
- WHEN pressing the previous button
-
THEN the previous sermon plays
-
- WHEN the user is at the last sermon in the list
- AND the user presses the next button
-
THEN the first sermon plays
-
- WHEN the user is at the first sermon in the list
- AND the user presses the previous button
-
THEN the last sermon plays
-
- WHEN tapping on the notification
-
THEN the app opens to the home screen
-
- WHEN pressing the play button