Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/volvo-cars/automotive-media-sample


https://github.com/volvo-cars/automotive-media-sample

Last synced: 14 days ago
JSON representation

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.