amosproj / amos2022ws02-automotive-test-app

Android Automotive Testapp
MIT License
12 stars 0 forks source link

Implement functionality of activating/deactivating a MediaBrowserService #167

Closed i315315 closed 1 year ago

i315315 commented 1 year ago

User story

  1. As a user
  2. I want to be able to simulate a media source
  3. So that I can test if an app to be tested handles events correctly.

With this user story, the activating/deactivating of a MediaBrowserService is to be implemented. The toggle button to activate/deactive a MediaBrowserService has been implemented in #165 .

The MediaBrowserService should be used in order to simulate a media source. Therefore, three sample songs (Be aware of licensing!) should be stored in our app that can be played when the MediaBrowserService was chosen as the desired media source from the user.

If the MediaBrowserService is deactivated, when clicking on the toggle button, the MediaBrowserService should be activated.

As soon as the MediaBrowserService is activated, all events from the MediaBrowserService should be logged in the terminal window. Ideally, the logs get an identifier that identify them as MediaBrowserService-logs.

As soon as the MediaBrowserService is deactivated, no events should be logged anymore.

Acceptance criteria

Definition of done (DoD)

DoD general criteria

BETuncay commented 1 year ago

The feature should be possible to implement, however we could not find a way to make it work. The connection between the client (MainActivity, MediaBrowser/Controller/UI) with the server (MediaBrowserService/MediaSession/MediaPlayer) did not work. Even after we implemented everything according to the documentation, the MediaSession did not respond to UI events according to the defined callbacks.