Skip to content

Commit

Permalink
docs(dash): add section to readme on how to use DASH as MediaType
Browse files Browse the repository at this point in the history
closes #58
  • Loading branch information
aelnonym committed Jun 13, 2023
1 parent 5a387f8 commit b73eb7e
Showing 1 changed file with 30 additions and 9 deletions.
39 changes: 30 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ Enhanced Video Player for Android built on top of Exoplayer compliant with Andro

## Table of Contents

- [Table of Contents](#table-of-contents)
- [Setup](#setup)
- [Pre-requirements](#pre-requirements)
- [Install Node](#install-node)
- [Install Ruby Dependencies](#install-ruby-dependencies)
- [Install JS Dependencies](#install-js-dependencies)
- [Install Ktlint to IDE](#install-ktlint-to-ide)
- [Running the project](#running-the-project)
- [Documentation](#documentation)
- [Table of Contents](#table-of-contents)
- [Setup](#setup)
- [Pre-requirements](#pre-requirements)
- [Install Node](#install-node)
- [Install Ruby Dependencies](#install-ruby-dependencies)
- [Install JS Dependencies](#install-js-dependencies)
- [Install Ktlint to IDE](#install-ktlint-to-ide)
- [Running the project](#running-the-project)
- [Media Types](#media-types)
- [DASH](#dash)
- [Documentation](#documentation)

## Setup

Expand Down Expand Up @@ -97,6 +99,25 @@ EnhancedVideoPlayer(
)
```

### DASH

Add the following module to the app's `build.gradle`

```groovy
implementation "androidx.media3:media3-exoplayer-dash:$mediaVersion"
```

When creating the `MediaItem` you can simply pass the URI if it ends with `.mpd` or you can pass `MimeTypes.APPLICATION_MPD` to `setMimeType` of `MediaItem.Builder`

```kotlin
val mediaItem = MediaItem.Builder()
.setMimeType(MimeTypes.APPLICATION_MPD)
.setUri(SOME_URI)
.build()

EnhancedVideoPlayer(mediaItem = mediaItem)
```

## Documentation

- [Releasing](docs/RELEASING.md)

0 comments on commit b73eb7e

Please sign in to comment.