Skip to content

Commit b8c559e

Browse files
authored
Merge pull request #8 from androidx/main
Merge latest code from androidx/media main branch
2 parents 2fc189d + 47964ff commit b8c559e

File tree

2,776 files changed

+427951
-50176
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,776 files changed

+427951
-50176
lines changed

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,29 @@ body:
55
- type: markdown
66
attributes:
77
value: |
8-
We can only process bug reports that are actionable. Unclear bug reports or reports with
9-
insufficient information may not get attention.
8+
We can only process bug reports that are actionable. Unclear bug reports or reports with insufficient information may not get attention.
109
1110
Before filing a bug:
1211
-------------------------
1312
14-
- Search existing issues, including issues that are closed:
15-
https://github.com/androidx/media/issues?q=is%3Aissue
16-
- For ExoPlayer-related bugs, please also check for existing issues on the ExoPlayer
17-
tracker: https://github.com/google/ExoPlayer/issues?q=is%3Aissue
13+
- Search existing issues, including issues that are closed: https://github.com/androidx/media/issues?q=is%3Aissue
14+
- For ExoPlayer-related bugs, please also check for existing issues on the ExoPlayer tracker: https://github.com/google/ExoPlayer/issues?q=is%3Aissue
1815
- type: dropdown
1916
attributes:
20-
label: Media3 Version
17+
label: Version
2118
description: What version of Media3 (or ExoPlayer) are you using?
2219
options:
23-
- Media3 1.1.0-alpha01
24-
- Media3 1.0.2
25-
- Media3 1.0.1
26-
- Media3 1.0.0
27-
- Media3 1.0.0-rc02
28-
- Media3 1.0.0-rc01
29-
- Media3 1.0.0-beta03
30-
- Media3 1.0.0-beta02
31-
- Media3 1.0.0-beta01
32-
- Media3 1.0.0-alpha03
33-
- Media3 1.0.0-alpha02
34-
- Media3 1.0.0-alpha01
35-
- Media3 `main` branch
36-
- ExoPlayer 2.18.7
37-
- ExoPlayer 2.18.6
38-
- ExoPlayer 2.18.5
20+
- Media3 main branch
21+
- Media3 pre-release (alpha, beta or RC not in this list)
22+
- Media3 1.3.1
23+
- Media3 1.3.0
24+
- Media3 1.2.1
25+
- Media3 1.2.0
26+
- Media3 1.1.1 / ExoPlayer 2.19.1
27+
- Media3 1.1.0 / ExoPlayer 2.19.0
28+
- Media3 1.0.2 / ExoPlayer 2.18.7
29+
- Media3 1.0.1 / ExoPlayer 2.18.6
30+
- Media3 1.0.0 / ExoPlayer 2.18.5
3931
- ExoPlayer 2.18.4
4032
- ExoPlayer 2.18.3
4133
- ExoPlayer 2.18.2
@@ -50,10 +42,16 @@ body:
5042
- ExoPlayer 2.14.2
5143
- ExoPlayer 2.14.1
5244
- ExoPlayer 2.14.0
53-
- ExoPlayer `dev-v2` branch
45+
- ExoPlayer dev-v2 branch
5446
- Older (unsupported)
5547
validations:
5648
required: true
49+
- type: textarea
50+
attributes:
51+
label: More version details
52+
description: >
53+
Required if you selected `main` or `dev-v2` (please provide an exact commit SHA),
54+
or 'pre-release' or 'older' (please provide the version).
5755
- type: textarea
5856
attributes:
5957
label: Devices that reproduce the issue
@@ -114,7 +112,7 @@ body:
114112
* Attach a file here
115113
* Include a media URL
116114
* Refer to a piece of media from the demo app (e.g. `Misc > Dizzy (MP4)`)
117-
* If you don't want to post media publicly please email the info to dev.exoplayer@gmail.com with subject 'Issue #\<issuenumber\>' after filing this issue, and note that you will do this here.
115+
* If you don't want to post media publicly please email the info to android-media-github@google.com with subject 'Issue #\<issuenumber\>' after filing this issue, and note that you will do this here.
118116
* If you are certain the issue does not depend on the media being played, enter "Not applicable" here.
119117
120118
For DRM-protected media please also include the scheme and license server URL.
@@ -124,8 +122,8 @@ body:
124122
attributes:
125123
label: Bug Report
126124
description: |
127-
After filing this issue please run `adb bugreport` shortly after reproducing the problem (ideally in the [demo app](https://github.com/androidx/media/tree/release/demos/main)) to capture a zip file, and email this to dev.exoplayer@gmail.com with subject 'Issue #\<issuenumber\>'.
125+
After filing this issue please run `adb bugreport` shortly after reproducing the problem (ideally in the [demo app](https://github.com/androidx/media/tree/release/demos/main)) to capture a zip file, and email this to android-media-github@google.com with subject 'Issue #\<issuenumber\>'.
128126
129127
**Note:** Logcat output is **not** the same as a full bug report, and is often missing information that's useful for diagnosing issues. Please ensure you're sending a full bug report zip file.
130128
options:
131-
- label: You will email the zip file produced by `adb bugreport` to dev.exoplayer@gmail.com after filing this issue.
129+
- label: You will email the zip file produced by `adb bugreport` to android-media-github@google.com after filing this issue.

.github/ISSUE_TEMPLATE/question.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ Don't forget to check ExoPlayer's supported formats and devices, if applicable
3939
(https://developer.android.com/guide/topics/media/exoplayer/supported-formats).
4040

4141
If there's something you don't want to post publicly, please submit the issue,
42-
then email the link/bug report to dev.exoplayer@gmail.com using a subject in the
43-
format "Issue #1234", where #1234 is your issue number (we don't reply to
44-
emails).
42+
then email the link/bug report to android-media-github@google.com using a
43+
subject in the format "Issue #1234", where #1234 is your issue number (we don't
44+
reply to emails).

.idea/icon.svg

Lines changed: 10 additions & 0 deletions
Loading

CONTRIBUTING.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,24 @@ you made on top of `main` using
3838
$ git diff -U0 main... | google-java-format-diff.py -p1 -i
3939
```
4040

41+
### Push access to PR branches
42+
43+
Please ensure maintainers of this repository have push access to your PR branch
44+
by ticking the `Allow edits from maintainers` checkbox when creating the PR (or
45+
after it's created). See the
46+
[GitHub docs](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork)
47+
for more info. This allows us to make changes and fixes to the PR while it goes
48+
through internal review, and ensures we don't create an
49+
['evil' merge](https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefevilmergeaevilmerge)
50+
when it gets merged.
51+
52+
This checkbox only appears on PRs from individual-owned forks
53+
(https://github.com/orgs/community/discussions/5634). If you open a PR from an
54+
organization-owned fork we will ask you to open a new one from an
55+
individual-owned fork. If this isn't possible we can still merge the PR, but it
56+
will result in an 'evil' merge because the changes and fixes we make during
57+
internal review will be part of the merge commit.
58+
4159
## Contributor license agreement
4260

4361
Contributions to any Google project must be accompanied by a Contributor

README.md

Lines changed: 67 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
# AndroidX Media
22

33
AndroidX Media is a collection of libraries for implementing media use cases on
4-
Android, including local playback (via ExoPlayer) and media sessions.
4+
Android, including local playback (via ExoPlayer), video editing (via Transformer) and media sessions.
55

66
## Documentation
77

88
* The [developer guide][] provides a wealth of information.
99
* The [class reference][] documents the classes and methods.
1010
* The [release notes][] document the major changes in each release.
11+
* The [media dev center][] provides samples and guidelines.
1112
* Follow our [developer blog][] to keep up to date with the latest
1213
developments!
1314

1415
[developer guide]: https://developer.android.com/guide/topics/media/media3
1516
[class reference]: https://developer.android.com/reference/androidx/media3/common/package-summary
1617
[release notes]: RELEASENOTES.md
18+
[media dev center]: https://developer.android.com/media
1719
[developer blog]: https://medium.com/google-exoplayer
1820

1921
## Migration for existing ExoPlayer and MediaSession projects
@@ -45,13 +47,21 @@ also possible to clone this GitHub repository and depend on the modules locally.
4547
#### 1. Add module dependencies
4648

4749
The easiest way to get started using AndroidX Media is to add gradle
48-
dependencies on the libraries you need in the `build.gradle` file of your app
49-
module.
50+
dependencies on the libraries you need in the `build.gradle.kts` file of your
51+
app module.
5052

5153
For example, to depend on ExoPlayer with DASH playback support and UI components
5254
you can add dependencies on the modules like this:
5355

54-
```gradle
56+
```kotlin
57+
implementation("androidx.media3:media3-exoplayer:1.X.X")
58+
implementation("androidx.media3:media3-exoplayer-dash:1.X.X")
59+
implementation("androidx.media3:media3-ui:1.X.X")
60+
```
61+
62+
Or in Gradle Groovy DSL `build.gradle`:
63+
64+
```groovy
5565
implementation 'androidx.media3:media3-exoplayer:1.X.X'
5666
implementation 'androidx.media3:media3-exoplayer-dash:1.X.X'
5767
implementation 'androidx.media3:media3-ui:1.X.X'
@@ -73,10 +83,18 @@ details.
7383
#### 2. Turn on Java 8 support
7484

7585
If not enabled already, you also need to turn on Java 8 support in all
76-
`build.gradle` files depending on AndroidX Media, by adding the following to the
77-
`android` section:
86+
`build.gradle.kts` files depending on AndroidX Media, by adding the following to
87+
the `android` section:
88+
89+
```kotlin
90+
compileOptions {
91+
targetCompatibility = JavaVersion.VERSION_1_8
92+
}
93+
```
94+
95+
Or in Gradle Groovy DSL `build.gradle`:
7896

79-
```gradle
97+
```groovy
8098
compileOptions {
8199
targetCompatibility JavaVersion.VERSION_1_8
82100
}
@@ -101,23 +119,61 @@ git clone https://github.com/androidx/media.git
101119
cd media
102120
```
103121

104-
Next, add the following to your project's `settings.gradle` file, replacing
122+
Next, add the following to your project's `settings.gradle.kts` file, replacing
105123
`path/to/media` with the path to your local copy:
106124

107-
```gradle
125+
```kotlin
126+
gradle.extra.apply {
127+
set("androidxMediaModulePrefix", "media-")
128+
}
129+
apply(from = file("path/to/media/core_settings.gradle"))
130+
```
131+
132+
Or in Gradle Groovy DSL `settings.gradle`:
133+
134+
```groovy
108135
gradle.ext.androidxMediaModulePrefix = 'media-'
109136
apply from: file("path/to/media/core_settings.gradle")
110137
```
111138

112139
You should now see the AndroidX Media modules appear as part of your project.
113-
You can depend on them as you would on any other local module, for example:
140+
You can depend on them from `build.gradle.kts` as you would on any other local
141+
module, for example:
114142

115-
```gradle
143+
```kotlin
144+
implementation(project(":media-lib-exoplayer"))
145+
implementation(project(":media-lib-exoplayer-dash"))
146+
implementation(project(":media-lib-ui"))
147+
```
148+
149+
Or in Gradle Groovy DSL `build.gradle`:
150+
151+
```groovy
116152
implementation project(':media-lib-exoplayer')
117153
implementation project(':media-lib-exoplayer-dash')
118154
implementation project(':media-lib-ui')
119155
```
120156

157+
#### MIDI module
158+
159+
By default the [MIDI module](libraries/decoder_midi) is disabled as a local
160+
dependency, because it requires additional Maven repository config. If you want
161+
to use it as a local dependency, please configure the JitPack repository as
162+
[described in the module README](libraries/decoder_midi/README.md#getting-the-module),
163+
and then enable building the module in your `settings.gradle.kts` file:
164+
165+
```kotlin
166+
gradle.extra.apply {
167+
set("androidxMediaEnableMidiModule", true)
168+
}
169+
```
170+
171+
Or in Gradle Groovy DSL `settings.gradle`:
172+
173+
```groovy
174+
gradle.ext.androidxMediaEnableMidiModule = true
175+
```
176+
121177
## Developing AndroidX Media
122178

123179
#### Project branches

0 commit comments

Comments
 (0)