Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/volvo-cars/automotive-media-sample
https://github.com/volvo-cars/automotive-media-sample
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/volvo-cars/automotive-media-sample
- Owner: volvo-cars
- License: apache-2.0
- Created: 2022-03-09T11:18:37.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-24T14:02:01.000Z (almost 2 years ago)
- Last Synced: 2023-03-09T05:10:53.956Z (almost 2 years ago)
- Language: Kotlin
- Size: 5.15 MB
- Stars: 11
- Watchers: 4
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Media Sample
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/volvo-cars/automotive-media-sample/blob/main/LICENSE.md)
A sample media application designed for Android Automotive.
The app is structured to follow Android's Media playback architecture. For an Android automotive app, this means that the app **doesn't have an activity** of its own. The UI is drawn by the system, and the app is responsible for providing the data to display and play in a structured manner. For more information, and resources on how to build media apps, please read the [official Android documentation](https://developer.android.com/guide/topics/media-apps/media-apps-overview).
## Code Structure
The project is structured as follows.
### Media Playback Layer
This consists of the media playback client components and the media service.
### Domain Layer
Here you will find all the domain models and entities for the application.
### Data Access Layer
This layer is responsible for sourcing the media to play.
### Common
Shared utilities and helpers live here.
## Running the App
### Prerequisites
- Android studio 4.2+
- Android Automotive emulator
- The computer you're testing the app with should have speakers so you can hear the track playing (obvious, but overlooked sometimes)Checkout the [Volvo Cars Developer Portal](https://developer.volvocars.com/android-automotive/) for more information on creating apps for cars.
Once everything is set up, simply clone this repository, build, and run the app on the target emulator.